all repos — mgba @ d3b78b2fd2b874fa368524c13f0a667a7db244a5

mGBA Game Boy Advance Emulator

Log level for SWI
Jeffrey Pfau jeffrey@endrift.com
Thu, 23 Oct 2014 01:41:52 -0700
commit

d3b78b2fd2b874fa368524c13f0a667a7db244a5

parent

043bb75a6b5eb30e11d3e3fe109e7d69a33a923c

2 files changed, 6 insertions(+), 2 deletions(-)

jump to
M src/gba/gba-bios.csrc/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.hsrc/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 {