summaryrefslogtreecommitdiff
path: root/apps/codecs/spc/spc_emu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/spc/spc_emu.c')
-rw-r--r--apps/codecs/spc/spc_emu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/codecs/spc/spc_emu.c b/apps/codecs/spc/spc_emu.c
index 30aaf5d64b..bd9c005ee5 100644
--- a/apps/codecs/spc/spc_emu.c
+++ b/apps/codecs/spc/spc_emu.c
@@ -27,7 +27,7 @@
27/* DSP Based on Brad Martin's OpenSPC DSP emulator */ 27/* DSP Based on Brad Martin's OpenSPC DSP emulator */
28/* tag reading from sexyspc by John Brawn (John_Brawn@yahoo.com) and others */ 28/* tag reading from sexyspc by John Brawn (John_Brawn@yahoo.com) and others */
29 29
30struct cpu_ram_t ram; 30struct cpu_ram_t ram CACHEALIGN_ATTR;
31 31
32/**************** Timers ****************/ 32/**************** Timers ****************/
33 33
@@ -76,6 +76,10 @@ void SPC_Init( THIS )
76 this->boot_rom [sizeof this->boot_rom - 2] = 0xC0; 76 this->boot_rom [sizeof this->boot_rom - 2] = 0xC0;
77 this->boot_rom [sizeof this->boot_rom - 1] = 0xFF; 77 this->boot_rom [sizeof this->boot_rom - 1] = 0xFF;
78 ci->memset( this->boot_rom, 0, sizeof this->boot_rom - 2 ); 78 ci->memset( this->boot_rom, 0, sizeof this->boot_rom - 2 );
79
80 /* Have DSP in a defined state in case EMU is run and hasn't loaded
81 * a program yet */
82 DSP_reset(&this->dsp);
79} 83}
80 84
81static void SPC_load_state( THIS, struct cpu_regs_t const* cpu_state, 85static void SPC_load_state( THIS, struct cpu_regs_t const* cpu_state,