Previous 15994 Revisions Next

r7366 Tuesday 16th February, 2010 at 06:06:52 UTC by Jonathan Gevaryahu
Minor fix to sn76489: sn76489 wasn't using the correct noise taps
(now matches sn94624, still need to test a real chip)
Removed a piece of useless code, and fixed a comment.
[Lord Nightmare]
[src/emu/sound]sn76496.c

src/emu/sound/sn76496.c
r7365r7366
227227            /* N/512,N/1024,N/2048,Tone #3 output */
228228            R->Period[3] = ((n&3) == 3) ? 2 * R->Period[2] : (1 << (5+(n&3)));
229229            R->RNG = R->FeedbackMask;
230            R->Output[3] = R->RNG & 1;
231230         }
232231         break;
233232   }
r7365r7366
271270         if (R->Count[3] <= 0)
272271         {
273272         // if noisemode is 1, both taps are enabled
274         // if noisemode is 0, the lower tap, whitenoisetap2, is held at 1 or 0 depending on whether FeedbackInvert is set or clear
273         // if noisemode is 0, the lower tap, whitenoisetap2, is held at 0
275274            if (((R->RNG & R->WhitenoiseTap1)?1:0) ^ ((((R->RNG & R->WhitenoiseTap2)?1:0))*(NOISEMODE)))
276275            {
277276               R->RNG >>= 1;
r7365r7366
423422
424423static DEVICE_START( sn76489 )
425424{
426   generic_start(device, 0x10000, 0x04, 0x08, TRUE, FALSE, 8); // SN76489 not verified yet. todo: verify;
425   generic_start(device, 0x4000, 0x01, 0x02, TRUE, FALSE, 8); // SN76489 not verified yet. todo: verify;
427426}
428427
429428static DEVICE_START( sn76489a )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team