From 4410b37e13a16a8b21758b2ed6785197554d0d35 Mon Sep 17 00:00:00 2001 From: Lord-Nightmare Date: Sun, 8 Nov 2020 07:53:41 -0500 Subject: [PATCH] video/avgdvg.cpp: Fix a bug (pre-dating the recent conversion to bitswap) in the sparkle LFSR preset load value, and add a comment explaining what the source is for bits 4, 5 and 6 of the preset load value. [Lord Nightmare] --- src/mame/video/avgdvg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/video/avgdvg.cpp b/src/mame/video/avgdvg.cpp index 27d57109897..fe8727d5688 100644 --- a/src/mame/video/avgdvg.cpp +++ b/src/mame/video/avgdvg.cpp @@ -771,7 +771,7 @@ int avg_mhavoc_device::handler_6() // mhavoc_strobe2 if (m_dvy & 0x800) { m_enspkl = 1; - m_spkl_shift = bitswap<4>(m_dvy, 1, 1, 2, 3) | ((machine().rand() & 0x7) << 4); + m_spkl_shift = bitswap<4>(m_dvy, 0, 1, 2, 3) | ((machine().rand() & 0x7) << 4); // sparkle lfsr bits 4,5,6 here come from address bus bits 0,1,2 from the alpha cpu, they're not truly random. } else {