Previous 199869 Revisions Next

r35033 Saturday 14th February, 2015 at 13:36:10 UTC by David Haywood
the better handling removes the need for this hack actually (nw)
[src/mame/drivers]expro02.c

trunk/src/mame/drivers/expro02.c
r243544r243545
7171                 clock input on any of the pins of these chips. They're not ROMs either
7272                 because the pinout doesn't match any known EPROMs.
7373                 There are no markings on the chips other than 'GP-U27' & 'GP-U41'
74                 If GP-U41 is removed, on bootup the PCB gives an error 'fg_ind8 ERROR' and
74                 If GP-U41 is removed, on bootup the PCB gives an error 'BG ERROR' and
7575                 a memory address. If GP-U27 is removed, the PCB works but there are no
7676                 background graphics.
7777
r243544r243545
255255   READ16_MEMBER(comad_timer_r);
256256   READ8_MEMBER(comad_okim6295_r);
257257   WRITE16_MEMBER(galpanica_6295_bankswitch_w);
258   WRITE16_MEMBER(clear_bg_w);
259258};
260259
261260
r243544r243545
286285      {
287286         UINT16 dat = (m_expro02_bg_rgb555_pixram[count] & 0xfffe)>>1;
288287         dat+=2048;
289         dest[x] = dat;
288
289         // never seen to test
290         //if (!(m_expro02_bg_rgb555_pixram[count] & 0x0001))
291         {
292            dest[x] = dat;
293         }
294         /*
295         else
296         {
297            dest[x] = 0x0000;
298         }
299         */
300
290301         count++;
291302      }
292303   }
r243544r243545
730741ADDRESS_MAP_END
731742
732743
733WRITE16_MEMBER(expro02_state::clear_bg_w)
734{
735    int i;
736    for(i = 0; i < 8; i++)
737    {
738        m_expro02_bg_rgb555_pixram[offset * 8 + i] = 0x0000;
739    }
740}
741744
742745
743746static ADDRESS_MAP_START( galhustl_map, AS_PROGRAM, 16, expro02_state )
744747   AM_RANGE(0x000000, 0x0fffff) AM_ROM
745748   AM_RANGE(0x200000, 0x2fffff) AM_ROM AM_REGION("maincpudata", 0)
746749
747    AM_RANGE(0x580000, 0x583fff) AM_RAM_WRITE(clear_bg_w) // I don't think this is correct, it would be associated with the unused VIEW02 tilemap, although this hardware could have implemented things differently as it's an original game, not a GP hack
748
749750   AM_RANGE(0x800000, 0x800001) AM_READ_PORT("DSW1")
750751   AM_RANGE(0x800002, 0x800003) AM_READ_PORT("DSW2")
751752   AM_RANGE(0x800004, 0x800005) AM_READ_PORT("SYSTEM")


Previous 199869 Revisions Next


© 1997-2024 The MAME Team