From 60dab6aa7c69ab6ce2203464937e68f50d02eeea Mon Sep 17 00:00:00 2001 From: amponzi Date: Fri, 17 Nov 2006 20:27:35 +0000 Subject: [PATCH] - Added preliminary SoundBias BIOS function call --- desmume/src/bios.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/desmume/src/bios.c b/desmume/src/bios.c index f596fbb85..cee199b66 100644 --- a/desmume/src/bios.c +++ b/desmume/src/bios.c @@ -948,6 +948,13 @@ u32 getCRC16(armcpu_t* cpu) return 1; } +void SoundBias(armcpu_t* cpu) +{ + SPU_WriteLong(0x4000504, cpu->R[0] & 0x3FF); + //Insert Delay Statement Here + return; +} + u32 (* ARM9_swi_tab[32])(armcpu_t* cpu)={ bios_nop, // 0x00 bios_nop, // 0x01 @@ -992,7 +999,7 @@ u32 (* ARM7_swi_tab[32])(armcpu_t* cpu)={ waitVBlankARM, // 0x05 wait4IRQ, // 0x06 wait4IRQ, // 0x07 - bios_nop, // 0x08 + SoundBias, // 0x08 devide, // 0x09 bios_nop, // 0x0A copy, // 0x0B