all repos — mgba @ d6a28c8a6e469a6f324740308ba1299186d54301

mGBA Game Boy Advance Emulator

Log SWIs in debug
Jeffrey Pfau jeffrey@endrift.com
Fri, 04 Jul 2014 18:17:34 -0700
commit

d6a28c8a6e469a6f324740308ba1299186d54301

parent

599537a41b816bce444e47717ec580e9ce3e09be

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-bios.csrc/gba/gba-bios.c

@@ -103,6 +103,8 @@ }

void GBASwi16(struct ARMCore* cpu, int immediate) { struct GBA* gba = (struct GBA*) cpu->master; + GBALog(gba, GBA_LOG_DEBUG, "SWI: %02x", immediate); + if (gba->memory.fullBios) { ARMRaiseSWI(cpu); return;