mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Properly narrow down GPIO write validity check
This commit is contained in:
parent
109fbe60f5
commit
655211651a
|
@ -915,7 +915,7 @@ void GBAStore16(struct ARMCore* cpu, uint32_t address, int16_t value, int* cycle
|
|||
break;
|
||||
case GBA_REGION_ROM0:
|
||||
if (IS_GPIO_REGISTER(address & 0xFFFFFE)) {
|
||||
if (memory->hw.devices == HW_NONE) {
|
||||
if (!(memory->hw.devices & HW_GPIO)) {
|
||||
mLOG(GBA_HW, WARN, "Write to GPIO address %08X on cartridge without GPIO", address);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue