Galaga: small fix and some notes. [Couriersud]

- leave some more information about the equivalent galois LFSR like
  taps and seed values.
- All members are now initialized by constructor.
This commit is contained in:
couriersud 2019-11-03 23:21:58 +01:00
parent 60379b658a
commit 76ee24ab7e
2 changed files with 14 additions and 0 deletions

View File

@ -34,6 +34,10 @@ public:
, m_palette(*this, "palette")
, m_leds(*this, "led%u", 0U)
, m_starfield(*this, "starfield")
, m_galaga_gfxbank(0)
, m_main_irq_mask(0)
, m_sub_irq_mask(0)
, m_sub2_nmi_mask(0)
{ }
DECLARE_READ8_MEMBER(bosco_dsw_r);

View File

@ -288,6 +288,16 @@
the Fibonacci form, which is why the latter is used in this
implementation.
The LFSR used by Wolfgang and Jindřich had taps at 15, 12, 10 and 5.
With the same seed values, the following holds true:
Decode_W(lfsr[t-4]) = Decode_J(lfsr[t])
The two decoding algorithm (Wolfgang, Jindřich) thus delivered the
same results but with a 4 clock difference.
Jindřich: Seed Value 0x70cc
Wolfgang: Seed Value 0xe7bf
---------------------------------------------------------------------------