Log level for SWI
Jeffrey Pfau jeffrey@endrift.com
Thu, 23 Oct 2014 01:41:52 -0700
2 files changed,
6 insertions(+),
2 deletions(-)
M
src/gba/gba-bios.c
→
src/gba/gba-bios.c
@@ -116,7 +116,8 @@ }
void GBASwi16(struct ARMCore* cpu, int immediate) { struct GBA* gba = (struct GBA*) cpu->master; - GBALog(gba, GBA_LOG_DEBUG, "SWI: %02x", immediate); + GBALog(gba, GBA_LOG_SWI, "SWI: %02X r0: %08X r1: %08X r2: %08X r3: %08X", + immediate, cpu->gprs[0], cpu->gprs[1], cpu->gprs[2], cpu->gprs[3]); if (gba->memory.fullBios) { ARMRaiseSWI(cpu);
M
src/gba/gba.h
→
src/gba/gba.h
@@ -43,7 +43,10 @@ GBA_LOG_INFO = 0x08,
GBA_LOG_DEBUG = 0x10, GBA_LOG_STUB = 0x20, - GBA_LOG_GAME_ERROR = 0x100 + GBA_LOG_GAME_ERROR = 0x100, + GBA_LOG_SWI = 0x200, + + GBA_LOG_ALL = 0x33F }; enum GBAKey {