trunk/src/mame/drivers/stuntair.c
r22888 | r22889 | |
27 | 27 | stuntair.a9 character gfx |
28 | 28 | stuntair.a11,a12 background gfx |
29 | 29 | stuntair.a13,a15 obj/sprites gfx |
30 | | 82s123.a7 encryption key? (removing it results in garbage boot screen with high score table music) |
| 30 | 82s123.a7 (removing it results in garbage boot screen with high score table music) |
31 | 31 | -bottom pcb- |
32 | 32 | 82s129.l11 green,blue colors |
33 | 33 | 82s129.m11 red color |
r22888 | r22889 | |
80 | 80 | stuntair_state(const machine_config &mconfig, device_type type, const char *tag) |
81 | 81 | : driver_device(mconfig, type, tag), |
82 | 82 | m_maincpu(*this, "maincpu"), |
| 83 | m_audiocpu(*this, "audiocpu"), |
83 | 84 | m_fgram(*this, "fgram") |
84 | 85 | { } |
85 | 86 | |
86 | 87 | required_device<cpu_device> m_maincpu; |
| 88 | required_device<cpu_device> m_audiocpu; |
87 | 89 | required_shared_ptr<UINT8> m_fgram; |
88 | 90 | |
89 | 91 | tilemap_t *m_fg_tilemap; |
r22888 | r22889 | |
133 | 135 | |
134 | 136 | ADDRESS_MAP_END |
135 | 137 | |
136 | | static ADDRESS_MAP_START( stuntair_soound_map, AS_PROGRAM, 8, stuntair_state ) |
| 138 | static ADDRESS_MAP_START( stuntair_sound_map, AS_PROGRAM, 8, stuntair_state ) |
137 | 139 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 140 | AM_RANGE(0x4000, 0x43ff) AM_RAM |
138 | 141 | ADDRESS_MAP_END |
139 | 142 | |
| 143 | static 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 |
| 149 | ADDRESS_MAP_END |
| 150 | |
| 151 | |
140 | 152 | static INPUT_PORTS_START( stuntair ) |
141 | 153 | INPUT_PORTS_END |
142 | 154 | |
r22888 | r22889 | |
162 | 174 | 8*8 |
163 | 175 | }; |
164 | 176 | |
| 177 | static 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 | }; |
165 | 187 | |
| 188 | |
166 | 189 | static GFXDECODE_START( stuntair ) |
167 | 190 | GFXDECODE_ENTRY( "gfx1", 0, tiles8x8_layout, 0, 16 ) |
168 | 191 | 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 ) |
170 | 193 | GFXDECODE_END |
171 | 194 | |
172 | 195 | |
r22888 | r22889 | |
218 | 241 | MCFG_CPU_VBLANK_INT_DRIVER("screen", stuntair_state, stuntair_irq) |
219 | 242 | |
220 | 243 | 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) |
222 | 246 | |
223 | 247 | /* video hardware */ |
224 | 248 | MCFG_SCREEN_ADD("screen", RASTER) |