From 428f85bfac3ac1018758319230cb488a0562fc35 Mon Sep 17 00:00:00 2001 From: cyberwarriorx Date: Thu, 16 Nov 2006 17:14:40 +0000 Subject: [PATCH] -Added proper logging for unimplemented bios functions. This should help when debugging non-working games. --- desmume/src/bios.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/desmume/src/bios.c b/desmume/src/bios.c index eebe54461..055b2ae9e 100644 --- a/desmume/src/bios.c +++ b/desmume/src/bios.c @@ -176,9 +176,14 @@ static u8 getvoltbl[] = { u32 bios_nop(armcpu_t * cpu) { - //sprintf(biostxt, "PROC %d, SWI PO IMPLEMENTE %08X R0:%08X", cpu->proc_ID, (cpu->instruction)&0x1F, cpu->R[0]); - //execute = FALSE; - //log::ajouter(biostxt); + if (cpu->proc_ID == ARMCPU_ARM9) + { + LOG("Unimplemented bios function %02X(ARM9) was used. R0:%08X\n", (cpu->instruction)&0x1F, cpu->R[0]); + } + else + { + LOG("Unimplemented bios function %02X(ARM7) was used. R0:%08X\n", (cpu->instruction)&0x1F, cpu->R[0]); + } return 3; }