Skip to content

Commit

Permalink
S-DSP: Initialize a couple registers to fix Magical Drop.
Browse files Browse the repository at this point in the history
  • Loading branch information
bearoso committed Oct 11, 2024
1 parent 13824a6 commit 8028d3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apu/bapu/dsp/SPC_DSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,8 @@ void SPC_DSP::load( uint8_t const regs [register_count] )
{
memcpy( m.external_regs, regs, sizeof m.regs );
memset( m.regs, 0, sizeof m.regs);
m.regs[66] = 0x01;
m.regs[82] = 0x01;
m.regs[r_flg] = 0xE0;
memset( &m.regs [register_count], 0, offsetof (state_t,ram) - register_count );

Expand Down

0 comments on commit 8028d3b

Please sign in to comment.