[Core/Sound] fixed PSG power-on latched register (verified on VA4 MD1 hardware)

Initial test that indicated power-on latched register was noise attenuation register was flawed because it wasn't done after a "cold" power-on. It appears the latched value is not totally reseted when doing a quick power off/on cycle (which was done with initial test) and would keep last value being set.
This commit is contained in:
ekeeke 2017-04-02 21:40:24 +02:00 committed by GitHub
parent 5a74df31ee
commit cc056b92db

View File

@ -130,8 +130,8 @@ void psg_reset()
psg.chanOut[i][1] = 0;
}
/* noise attenuation register is latched on power-on (verified on 315-5313A & 315-5660 integrated version only) */
psg.latch = 7;
/* tone #2 attenuation register is latched on power-on (verified on 315-5313A integrated version only) */
psg.latch = 3;
/* reset noise shift register */
psg.noiseShiftValue = 1 << psg.noiseShiftWidth;