|Re: [hatari-devel] Removing magic values from PSG?|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
I'm OK with Eero's patch too.
I was refering to the following lines :
memset(PSGRegisters, 0, sizeof(PSGRegisters));
- for ( i=0 ; i<14 ; i++ ) /* Update sound's emulation registers */
+ /* Update sound's emulation registers */
+ for ( i=0 ; i< NUM_PSG_SOUND_REGISTERS; i++ )
Sound_WriteReg ( i , 0 );
Are these lines creating shadow registers for the sound ?
I may misunderstand the code here, it's just in case, as there's no
shadow register on the Falcon for the sound.
Le 03/02/2012 22:54, Nicolas Pomarède a écrit :
On 03/02/2012 22:38, Laurent Sallafranque wrote:
I just saw something from the PSG code you want to remote.
If I understand it well, it generated shadow addresses for the PSG.
But we should test for Falcon as there's no PSG shadow register in the
Sorry if I misundersood something.
To me, Eero's patch only replaces some numerics with some enums, so I
don't see any possible breakage here, unless I missed something, patch
can be applied.