diff --git a/src/gba/gba-memory.c b/src/gba/gba-memory.c index 7c45a65ea..bdcfc0331 100644 --- a/src/gba/gba-memory.c +++ b/src/gba/gba-memory.c @@ -7,6 +7,7 @@ #include "memory.h" #include +#include #include static void GBASetActiveRegion(struct ARMMemory* memory, uint32_t region); @@ -117,8 +118,10 @@ static void GBASetActiveRegion(struct ARMMemory* memory, uint32_t address) { memory->activeMask = SIZE_CART0 - 1; break; default: + GBALog(gbaMemory->p, GBA_LOG_ERROR, "Jumped to invalid address"); memory->activeRegion = 0; memory->activeMask = 0; + abort(); break; } }