ROM images for "The Glob" (c) Eagle

The Glob is a game that is used on a Pacman boardset. Mine consists of 2532s
at 5f & 5e (2532s) and a pair of encrypted 2764s on a processor
daughterboard ala Ms Pacman. There are no ROMs at 6e, 6f, 6h and 6j.

Here's a description of the protection as best as I can give it.

  1)  The decrypted D0 bit fed to the CPU is simply an inversion of the
      D5 bit from the code ROMs.
  2)  The decrypted D1 bit fed to the CPU is simply an inversion of the
      D2 bit from the code ROMs.
  3)  The other 6 data bits are decrypted by a 10H8 PAL.  The PAL also
      takes as input a 4-bit counter.  The counter is incremented and
	  decremented as follows:
	  - the Z-80 command IN($xx) where xx is an odd number decrements the
	    counter; an even number increments the counter.
		Ex:  IN($64) would increment the counter, IN($6B) would decrement
		the counter.
  4)  The PAL output also contains the two ROM enable lines used to enable
      the two encrypted code ROMs.  As long as the system is working 
	  correctly, these ROMs will always be enabled.

As it so happens, only four counter values are ever used, which is
fortunate because the PAL only contains signals to enable the ROMs for
those four counter values.  The valid counter values are $8, $9, $A, and
$B.  The counter's intial value is $A, which is set by jumpers on the 
daughterboard.  Following is a description of the resulting decryptions
for these four counter states.

COUNTER       ENCRYPTED     DECRYPTED
                VALUE         VALUE

              DDDDDDDD      DDDDDDDD
              76543210      76543210

Counter = 8:  abcdefgh      EAhBDgFC
Counter = 9:  abcdefgh      FAgeDBFC
Counter = A:  abcdefgh      EHDBagFC
Counter = B:  abcdefgh      GHDEaBFC

In the above diagram, capital letters represent inverted bits.  Notice
that bits D2 and D5 are the same independent of counter state, this is
because these bits are not decrypted by the PAL.


The PAL was read as a 2716 with A0-A9 as inputs and D0-D7 as outputs.

AAAAAAAAAA
9876543210

XXXXYYYYYY

XXXX = the four bit "counter" input to the PAL
X    = A9
 X   = A8
  X  = A7
   X = A6

    YYYYYY = the six databits input to the PAL

    Y      = A5 (databit 0 from the EPROM)
     Y     = A4 (databit 1 from the EPROM)
      Y    = A3 (databit 3 from the EPROM)
       Y   = A2 (databit 4 from the EPROM)
        Y  = A1 (databit 6 from the EPROM)
         Y = A0 (databit 7 from the EPROM)

(Remember that EPROM bits D2 and D5 go into inverters and out to D1 and
D0 on the Z-80 databus)

The Disclaimer stuff (aka Cover my hinterparts)
============================================================================
The Glob is copyrighted and the property of Eagle 

These ROMs were archived for the sole purpose of aiding troubleshooting of
people who own the actual boardset. Any other use is solely at the risk of
the user. No guarantees are expressed or implied blah blah don't blame me 
if the lawyers break down your door, confiscate everything and shove a 
dozen rabid weasels down your pants blah blah some settling may occur in 
shipping blah blah contents under pressure blah blah my lawyer can beat up 
your lawyer and his brother too blah blah don't come whining to me if you 
destroy your boards or whatever by using any info contained in these files.

