Simpler echo buffer fix

This commit is contained in:
zones 2011-04-20 22:33:12 +09:00
parent a2bd5acf77
commit c9cb2724d9
1 changed files with 3 additions and 7 deletions

View File

@ -717,14 +717,10 @@ inline void SPC_DSP::echo_write( int ch )
{
if ( !(m.t_echo_enabled & 0x20) )
{
SET_LE16A( ECHO_PTR( ch ), m.t_echo_out [ch] );
if ( m.t_echo_ptr >= 0xffc0 )
{
if ( m.t_echo_ptr >= 0xffc0 && rom_enabled )
SET_LE16A( &hi_ram [m.t_echo_ptr + ch * 2 - 0xffc0], m.t_echo_out [ch] );
if ( rom_enabled )
SET_LE16A( ECHO_PTR( ch ), GET_LE16A( &rom [m.t_echo_ptr + ch * 2 - 0xffc0] ) );
}
else
SET_LE16A( ECHO_PTR( ch ), m.t_echo_out [ch] );
}
m.t_echo_out [ch] = 0;