diff --git a/src/gba/memory.c b/src/gba/memory.c index 1561aef91..bdaf22c36 100644 --- a/src/gba/memory.c +++ b/src/gba/memory.c @@ -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; }