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]

This commit is contained in:
Lord-Nightmare 2020-11-08 07:53:41 -05:00
parent 5bc88b1af5
commit 4410b37e13

View File

@ -771,7 +771,7 @@ int avg_mhavoc_device::handler_6() // mhavoc_strobe2
if (m_dvy & 0x800) if (m_dvy & 0x800)
{ {
m_enspkl = 1; 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 else
{ {