Previous 199869 Revisions Next

r22889 Saturday 18th May, 2013 at 10:11:14 UTC by David Haywood
stuntair - better sprite decode
[src/mame/drivers]stuntair.c

trunk/src/mame/drivers/stuntair.c
r22888r22889
2727stuntair.a9 character gfx
2828stuntair.a11,a12 background gfx
2929stuntair.a13,a15 obj/sprites gfx
3082s123.a7 encryption key? (removing it results in garbage boot screen with high score table music)
3082s123.a7 (removing it results in garbage boot screen with high score table music)
3131-bottom pcb-
323282s129.l11 green,blue colors
333382s129.m11 red color
r22888r22889
8080   stuntair_state(const machine_config &mconfig, device_type type, const char *tag)
8181      : driver_device(mconfig, type, tag),
8282      m_maincpu(*this, "maincpu"),
83      m_audiocpu(*this, "audiocpu"),
8384      m_fgram(*this, "fgram")
8485   { }
8586
8687   required_device<cpu_device> m_maincpu;
88   required_device<cpu_device> m_audiocpu;
8789   required_shared_ptr<UINT8> m_fgram;
8890
8991   tilemap_t *m_fg_tilemap;
r22888r22889
133135
134136ADDRESS_MAP_END
135137
136static ADDRESS_MAP_START( stuntair_soound_map, AS_PROGRAM, 8, stuntair_state )
138static ADDRESS_MAP_START( stuntair_sound_map, AS_PROGRAM, 8, stuntair_state )
137139   AM_RANGE(0x0000, 0x1fff) AM_ROM
140   AM_RANGE(0x4000, 0x43ff) AM_RAM
138141ADDRESS_MAP_END
139142
143static ADDRESS_MAP_START( stuntair_sound_portmap, AS_IO, 8, stuntair_state )
144   ADDRESS_MAP_GLOBAL_MASK(0xff)
145   AM_RANGE(0x03, 0x03) AM_WRITENOP
146   AM_RANGE(0x07, 0x07) AM_WRITENOP
147   AM_RANGE(0x0c, 0x0c) AM_WRITENOP
148   AM_RANGE(0x0d, 0x0d) AM_WRITENOP
149ADDRESS_MAP_END
150
151
140152static INPUT_PORTS_START( stuntair )
141153INPUT_PORTS_END
142154
r22888r22889
162174   8*8
163175};
164176
177static const gfx_layout tiles16x8x2_layout =
178{
179   16,16,
180   RGN_FRAC(1,2),
181   2,
182   { RGN_FRAC(0,2), RGN_FRAC(1,2) },
183   { 0, 1, 2, 3, 4, 5, 6, 7,64,65,66,67,68,69,70,71 },
184   { 0*8,1*8,2*8,3*8,4*8,5*8,6*8,7*8, 128+0*8, 128+1*8, 128+2*8, 128+3*8, 128+4*8, 128+5*8, 128+6*8, 128+7*8 },
185   16*16
186};
165187
188
166189static GFXDECODE_START( stuntair )
167190   GFXDECODE_ENTRY( "gfx1", 0, tiles8x8_layout, 0, 16 )
168191   GFXDECODE_ENTRY( "gfx2", 0, tiles8x8x2_layout, 0, 16 )
169   GFXDECODE_ENTRY( "gfx3", 0, tiles8x8x2_layout, 0, 16 )
192   GFXDECODE_ENTRY( "gfx3", 0, tiles16x8x2_layout, 0, 16 )
170193GFXDECODE_END
171194
172195
r22888r22889
218241   MCFG_CPU_VBLANK_INT_DRIVER("screen", stuntair_state,  stuntair_irq)
219242
220243   MCFG_CPU_ADD("audiocpu", Z80,  18432000/4)         /* ? MHz */
221   MCFG_CPU_PROGRAM_MAP(stuntair_soound_map)
244   MCFG_CPU_PROGRAM_MAP(stuntair_sound_map)
245   MCFG_CPU_IO_MAP(stuntair_sound_portmap)
222246
223247   /* video hardware */
224248   MCFG_SCREEN_ADD("screen", RASTER)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team