trunk/src/mame/video/redclash.c
| r20834 | r20835 | |
| 100 | 100 | colortable_entry_set_value(machine().colortable, i, (i - 0x60) + 0x20); |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | | WRITE8_HANDLER( redclash_videoram_w ) |
| 103 | WRITE8_HANDLER( ladybug_state::redclash_videoram_w ) |
| 104 | 104 | { |
| 105 | | ladybug_state *state = space.machine().driver_data<ladybug_state>(); |
| 106 | | |
| 107 | | state->m_videoram[offset] = data; |
| 108 | | state->m_fg_tilemap->mark_tile_dirty(offset); |
| 105 | m_videoram[offset] = data; |
| 106 | m_fg_tilemap->mark_tile_dirty(offset); |
| 109 | 107 | } |
| 110 | 108 | |
| 111 | | WRITE8_HANDLER( redclash_gfxbank_w ) |
| 109 | WRITE8_HANDLER( ladybug_state::redclash_gfxbank_w ) |
| 112 | 110 | { |
| 113 | | ladybug_state *state = space.machine().driver_data<ladybug_state>(); |
| 114 | | |
| 115 | | if (state->m_gfxbank != (data & 0x01)) |
| 111 | if (m_gfxbank != (data & 0x01)) |
| 116 | 112 | { |
| 117 | | state->m_gfxbank = data & 0x01; |
| 118 | | space.machine().tilemap().mark_all_dirty(); |
| 113 | m_gfxbank = data & 0x01; |
| 114 | machine().tilemap().mark_all_dirty(); |
| 119 | 115 | } |
| 120 | 116 | } |
| 121 | 117 | |
| 122 | | WRITE8_HANDLER( redclash_flipscreen_w ) |
| 118 | WRITE8_HANDLER( ladybug_state::redclash_flipscreen_w ) |
| 123 | 119 | { |
| 124 | | ladybug_state *state = space.machine().driver_data<ladybug_state>(); |
| 125 | | state->flip_screen_set(data & 0x01); |
| 120 | flip_screen_set(data & 0x01); |
| 126 | 121 | } |
| 127 | 122 | |
| 128 | | void redclash_set_stars_enable( running_machine &machine, UINT8 on ); //temp |
| 129 | | void redclash_set_stars_speed( running_machine &machine, UINT8 speed ); //temp |
| 130 | | |
| 131 | 123 | /* |
| 132 | 124 | star_speed: |
| 133 | 125 | 0 = unused |
| r20834 | r20835 | |
| 139 | 131 | 6 = backwards medium |
| 140 | 132 | 7 = backwards fast |
| 141 | 133 | */ |
| 142 | | WRITE8_HANDLER( redclash_star0_w ) |
| 134 | WRITE8_HANDLER( ladybug_state::redclash_star0_w ) |
| 143 | 135 | { |
| 144 | | ladybug_state *state = space.machine().driver_data<ladybug_state>(); |
| 145 | | |
| 146 | | state->m_star_speed = (state->m_star_speed & ~1) | ((data & 1) << 0); |
| 147 | | redclash_set_stars_speed(space.machine(), state->m_star_speed); |
| 136 | m_star_speed = (m_star_speed & ~1) | ((data & 1) << 0); |
| 137 | redclash_set_stars_speed(m_star_speed); |
| 148 | 138 | } |
| 149 | 139 | |
| 150 | | WRITE8_HANDLER( redclash_star1_w ) |
| 140 | WRITE8_HANDLER( ladybug_state::redclash_star1_w ) |
| 151 | 141 | { |
| 152 | | ladybug_state *state = space.machine().driver_data<ladybug_state>(); |
| 153 | | |
| 154 | | state->m_star_speed = (state->m_star_speed & ~2) | ((data & 1) << 1); |
| 155 | | redclash_set_stars_speed(space.machine(), state->m_star_speed); |
| 142 | m_star_speed = (m_star_speed & ~2) | ((data & 1) << 1); |
| 143 | redclash_set_stars_speed(m_star_speed); |
| 156 | 144 | } |
| 157 | 145 | |
| 158 | | WRITE8_HANDLER( redclash_star2_w ) |
| 146 | WRITE8_HANDLER( ladybug_state::redclash_star2_w ) |
| 159 | 147 | { |
| 160 | | ladybug_state *state = space.machine().driver_data<ladybug_state>(); |
| 161 | | |
| 162 | | state->m_star_speed = (state->m_star_speed & ~4) | ((data & 1) << 2); |
| 163 | | redclash_set_stars_speed(space.machine(), state->m_star_speed); |
| 148 | m_star_speed = (m_star_speed & ~4) | ((data & 1) << 2); |
| 149 | redclash_set_stars_speed( m_star_speed); |
| 164 | 150 | } |
| 165 | 151 | |
| 166 | | WRITE8_HANDLER( redclash_star_reset_w ) |
| 152 | WRITE8_HANDLER( ladybug_state::redclash_star_reset_w ) |
| 167 | 153 | { |
| 168 | | redclash_set_stars_enable(space.machine(), 1); |
| 154 | redclash_set_stars_enable(1); |
| 169 | 155 | } |
| 170 | 156 | |
| 171 | 157 | TILE_GET_INFO_MEMBER(ladybug_state::get_fg_tile_info) |
| r20834 | r20835 | |
| 182 | 168 | m_fg_tilemap->set_transparent_pen(0); |
| 183 | 169 | } |
| 184 | 170 | |
| 185 | | static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 171 | void ladybug_state::redclash_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 186 | 172 | { |
| 187 | | ladybug_state *state = machine.driver_data<ladybug_state>(); |
| 188 | | UINT8 *spriteram = state->m_spriteram; |
| 173 | UINT8 *spriteram = m_spriteram; |
| 189 | 174 | int i, offs; |
| 190 | 175 | |
| 191 | | for (offs = state->m_spriteram.bytes() - 0x20; offs >= 0; offs -= 0x20) |
| 176 | for (offs = m_spriteram.bytes() - 0x20; offs >= 0; offs -= 0x20) |
| 192 | 177 | { |
| 193 | 178 | i = 0; |
| 194 | 179 | while (i < 0x20 && spriteram[offs + i] != 0) |
| r20834 | r20835 | |
| 209 | 194 | { |
| 210 | 195 | case 3: /* 24x24 */ |
| 211 | 196 | { |
| 212 | | int code = ((spriteram[offs + i + 1] & 0xf0) >> 4) + ((state->m_gfxbank & 1) << 4); |
| 197 | int code = ((spriteram[offs + i + 1] & 0xf0) >> 4) + ((m_gfxbank & 1) << 4); |
| 213 | 198 | |
| 214 | | drawgfx_transpen(bitmap,cliprect,machine.gfx[3], |
| 199 | drawgfx_transpen(bitmap,cliprect,machine().gfx[3], |
| 215 | 200 | code, |
| 216 | 201 | color, |
| 217 | 202 | 0,0, |
| 218 | 203 | sx,sy - 16,0); |
| 219 | 204 | /* wraparound */ |
| 220 | | drawgfx_transpen(bitmap,cliprect,machine.gfx[3], |
| 205 | drawgfx_transpen(bitmap,cliprect,machine().gfx[3], |
| 221 | 206 | code, |
| 222 | 207 | color, |
| 223 | 208 | 0,0, |
| r20834 | r20835 | |
| 228 | 213 | case 2: /* 16x16 */ |
| 229 | 214 | if (spriteram[offs + i] & 0x20) /* zero hour spaceships */ |
| 230 | 215 | { |
| 231 | | int code = ((spriteram[offs + i + 1] & 0xf8) >> 3) + ((state->m_gfxbank & 1) << 5); |
| 216 | int code = ((spriteram[offs + i + 1] & 0xf8) >> 3) + ((m_gfxbank & 1) << 5); |
| 232 | 217 | int bank = (spriteram[offs + i + 1] & 0x02) >> 1; |
| 233 | 218 | |
| 234 | | drawgfx_transpen(bitmap,cliprect,machine.gfx[4+bank], |
| 219 | drawgfx_transpen(bitmap,cliprect,machine().gfx[4+bank], |
| 235 | 220 | code, |
| 236 | 221 | color, |
| 237 | 222 | 0,0, |
| r20834 | r20835 | |
| 239 | 224 | } |
| 240 | 225 | else |
| 241 | 226 | { |
| 242 | | int code = ((spriteram[offs + i + 1] & 0xf0) >> 4) + ((state->m_gfxbank & 1) << 4); |
| 227 | int code = ((spriteram[offs + i + 1] & 0xf0) >> 4) + ((m_gfxbank & 1) << 4); |
| 243 | 228 | |
| 244 | | drawgfx_transpen(bitmap,cliprect,machine.gfx[2], |
| 229 | drawgfx_transpen(bitmap,cliprect,machine().gfx[2], |
| 245 | 230 | code, |
| 246 | 231 | color, |
| 247 | 232 | 0,0, |
| r20834 | r20835 | |
| 250 | 235 | break; |
| 251 | 236 | |
| 252 | 237 | case 1: /* 8x8 */ |
| 253 | | drawgfx_transpen(bitmap,cliprect,machine.gfx[1], |
| 238 | drawgfx_transpen(bitmap,cliprect,machine().gfx[1], |
| 254 | 239 | spriteram[offs + i + 1],// + 4 * (spriteram[offs + i + 2] & 0x10), |
| 255 | 240 | color, |
| 256 | 241 | 0,0, |
| r20834 | r20835 | |
| 266 | 251 | } |
| 267 | 252 | } |
| 268 | 253 | |
| 269 | | static void draw_bullets( running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 254 | void ladybug_state::redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect ) |
| 270 | 255 | { |
| 271 | | ladybug_state *state = machine.driver_data<ladybug_state>(); |
| 272 | 256 | int offs; |
| 273 | 257 | |
| 274 | 258 | for (offs = 0; offs < 0x20; offs++) |
| 275 | 259 | { |
| 276 | | // sx = state->m_videoramoffs]; |
| 277 | | int sx = 8 * offs + (state->m_videoram[offs] & 0x07); /* ?? */ |
| 278 | | int sy = 0xff - state->m_videoram[offs + 0x20]; |
| 260 | // sx = m_videoramoffs]; |
| 261 | int sx = 8 * offs + (m_videoram[offs] & 0x07); /* ?? */ |
| 262 | int sy = 0xff - m_videoram[offs + 0x20]; |
| 279 | 263 | |
| 280 | | if (state->flip_screen()) |
| 264 | if (flip_screen()) |
| 281 | 265 | { |
| 282 | 266 | sx = 240 - sx; |
| 283 | 267 | } |
| r20834 | r20835 | |
| 301 | 285 | */ |
| 302 | 286 | |
| 303 | 287 | /* This line can reset the LFSR to zero and disables the star generator */ |
| 304 | | void redclash_set_stars_enable( running_machine &machine, UINT8 on ) |
| 305 | | { ladybug_state *state = machine.driver_data<ladybug_state>(); |
| 306 | | |
| 307 | | if ((state->m_stars_enable == 0) && (on == 1)) |
| 288 | void ladybug_state::redclash_set_stars_enable(UINT8 on) |
| 289 | { |
| 290 | if ((m_stars_enable == 0) && (on == 1)) |
| 308 | 291 | { |
| 309 | | state->m_stars_offset = 0; |
| 292 | m_stars_offset = 0; |
| 310 | 293 | } |
| 311 | 294 | |
| 312 | | state->m_stars_enable = on; |
| 295 | m_stars_enable = on; |
| 313 | 296 | } |
| 314 | 297 | |
| 315 | 298 | /* This sets up which starfield to draw and the offset, */ |
| 316 | 299 | /* To be called from SCREEN_VBLANK() */ |
| 317 | 300 | |
| 318 | | void redclash_update_stars_state( running_machine &machine ) |
| 301 | void ladybug_state::redclash_update_stars_state() |
| 319 | 302 | { |
| 320 | | ladybug_state *state = machine.driver_data<ladybug_state>(); |
| 321 | | if (state->m_stars_enable == 0) |
| 303 | if (m_stars_enable == 0) |
| 322 | 304 | return; |
| 323 | 305 | |
| 324 | | state->m_stars_count++; |
| 325 | | state->m_stars_count %= 2; |
| 306 | m_stars_count++; |
| 307 | m_stars_count %= 2; |
| 326 | 308 | |
| 327 | | if (state->m_stars_count == 0) |
| 309 | if (m_stars_count == 0) |
| 328 | 310 | { |
| 329 | | state->m_stars_offset += ((state->m_stars_speed * 2) - 0x09); |
| 330 | | state->m_stars_offset %= 256 * 256; |
| 331 | | state->m_stars_state = 0; |
| 311 | m_stars_offset += ((m_stars_speed * 2) - 0x09); |
| 312 | m_stars_offset %= 256 * 256; |
| 313 | m_stars_state = 0; |
| 332 | 314 | } |
| 333 | 315 | else |
| 334 | | state->m_stars_state = 0x1fc71; |
| 316 | m_stars_state = 0x1fc71; |
| 335 | 317 | } |
| 336 | 318 | |
| 337 | 319 | /* Set the speed register (3 bits) */ |
| r20834 | r20835 | |
| 347 | 329 | * 7 right/up fast (+5/2 pix per frame) |
| 348 | 330 | */ |
| 349 | 331 | |
| 350 | | void redclash_set_stars_speed( running_machine &machine, UINT8 speed ) |
| 332 | void ladybug_state::redclash_set_stars_speed(UINT8 speed ) |
| 351 | 333 | { |
| 352 | | ladybug_state *state = machine.driver_data<ladybug_state>(); |
| 353 | | state->m_stars_speed = speed; |
| 334 | m_stars_speed = speed; |
| 354 | 335 | } |
| 355 | 336 | |
| 356 | 337 | /* Draw the stars */ |
| r20834 | r20835 | |
| 358 | 339 | /* Space Raider doesn't use the Va bit, and it is also set up to */ |
| 359 | 340 | /* window the stars to a certain x range */ |
| 360 | 341 | |
| 361 | | void redclash_draw_stars( running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx ) |
| 342 | void ladybug_state::redclash_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx ) |
| 362 | 343 | { |
| 363 | | ladybug_state *redclash = machine.driver_data<ladybug_state>(); |
| 364 | 344 | int i; |
| 365 | 345 | UINT8 tempbit, feedback, star_color, xloc, yloc; |
| 366 | 346 | UINT32 state; |
| 367 | 347 | UINT8 hcond, vcond; |
| 368 | 348 | |
| 369 | | if (redclash->m_stars_enable == 0) |
| 349 | if (m_stars_enable == 0) |
| 370 | 350 | return; |
| 371 | 351 | |
| 372 | | state = redclash->m_stars_state; |
| 352 | state = m_stars_state; |
| 373 | 353 | |
| 374 | 354 | for(i = 0; i < 256 * 256; i++) |
| 375 | 355 | { |
| 376 | | xloc = (redclash->m_stars_offset + i) % 256; |
| 377 | | yloc = ((redclash->m_stars_offset + i) /256 ) % 256; |
| 356 | xloc = (m_stars_offset + i) % 256; |
| 357 | yloc = ((m_stars_offset + i) /256 ) % 256; |
| 378 | 358 | |
| 379 | 359 | if ((state & 0x10000) == 0) |
| 380 | 360 | tempbit = 1; |
| r20834 | r20835 | |
| 420 | 400 | { |
| 421 | 401 | // falling edge |
| 422 | 402 | if (!state) |
| 423 | | redclash_update_stars_state(machine()); |
| 403 | redclash_update_stars_state(); |
| 424 | 404 | } |
| 425 | 405 | |
| 426 | 406 | UINT32 ladybug_state::screen_update_redclash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 427 | 407 | { |
| 428 | 408 | bitmap.fill(get_black_pen(machine()), cliprect); |
| 429 | | redclash_draw_stars(machine(), bitmap, cliprect, 0x60, 0, 0x00, 0xff); |
| 430 | | ::draw_sprites(machine(), bitmap, cliprect); |
| 431 | | draw_bullets(machine(), bitmap, cliprect); |
| 409 | redclash_draw_stars(bitmap, cliprect, 0x60, 0, 0x00, 0xff); |
| 410 | redclash_draw_sprites(bitmap, cliprect); |
| 411 | redclash_draw_bullets(bitmap, cliprect); |
| 432 | 412 | m_fg_tilemap->draw(bitmap, cliprect, 0, 0); |
| 433 | 413 | return 0; |
| 434 | 414 | } |
trunk/src/mame/includes/ladybug.h
| r20834 | r20835 | |
| 82 | 82 | void screen_eof_sraider(screen_device &screen, bool state); |
| 83 | 83 | void screen_eof_redclash(screen_device &screen, bool state); |
| 84 | 84 | void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 85 | | }; |
| 85 | DECLARE_WRITE8_MEMBER( redclash_videoram_w ); |
| 86 | DECLARE_WRITE8_MEMBER( redclash_gfxbank_w ); |
| 87 | DECLARE_WRITE8_MEMBER( redclash_flipscreen_w ); |
| 86 | 88 | |
| 87 | | /*----------- defined in video/redclash.c -----------*/ |
| 89 | DECLARE_WRITE8_MEMBER( redclash_star0_w ); |
| 90 | DECLARE_WRITE8_MEMBER( redclash_star1_w ); |
| 91 | DECLARE_WRITE8_MEMBER( redclash_star2_w ); |
| 92 | DECLARE_WRITE8_MEMBER( redclash_star_reset_w ); |
| 93 | DECLARE_WRITE8_MEMBER( irqack_w ); |
| 88 | 94 | |
| 89 | | DECLARE_WRITE8_HANDLER( redclash_videoram_w ); |
| 90 | | DECLARE_WRITE8_HANDLER( redclash_gfxbank_w ); |
| 91 | | DECLARE_WRITE8_HANDLER( redclash_flipscreen_w ); |
| 92 | | |
| 93 | | DECLARE_WRITE8_HANDLER( redclash_star0_w ); |
| 94 | | DECLARE_WRITE8_HANDLER( redclash_star1_w ); |
| 95 | | DECLARE_WRITE8_HANDLER( redclash_star2_w ); |
| 96 | | DECLARE_WRITE8_HANDLER( redclash_star_reset_w ); |
| 97 | | |
| 98 | | /* sraider uses the zerohour star generator board */ |
| 99 | | void redclash_set_stars_enable(running_machine &machine, UINT8 on); |
| 100 | | void redclash_update_stars_state(running_machine &machine); |
| 101 | | void redclash_set_stars_speed(running_machine &machine, UINT8 speed); |
| 102 | | void redclash_draw_stars(running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx); |
| 95 | /* sraider uses the zerohour star generator board */ |
| 96 | void redclash_set_stars_enable(UINT8 on); |
| 97 | void redclash_update_stars_state(); |
| 98 | void redclash_set_stars_speed(UINT8 speed); |
| 99 | void redclash_draw_stars(bitmap_ind16 &bitmap, const rectangle &cliprect, UINT8 palette_offset, UINT8 sraider, UINT8 firstx, UINT8 lastx); |
| 100 | void redclash_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 101 | void redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect ); |
| 102 | }; |
trunk/src/mame/drivers/redclash.c
| r20834 | r20835 | |
| 25 | 25 | #include "includes/ladybug.h" |
| 26 | 26 | |
| 27 | 27 | |
| 28 | | static WRITE8_HANDLER( irqack_w ) |
| 28 | WRITE8_MEMBER( ladybug_state::irqack_w ) |
| 29 | 29 | { |
| 30 | | ladybug_state *state = space.machine().driver_data<ladybug_state>(); |
| 31 | | state->m_maincpu->set_input_line(0, CLEAR_LINE); |
| 30 | m_maincpu->set_input_line(0, CLEAR_LINE); |
| 32 | 31 | } |
| 33 | 32 | |
| 34 | 33 | static ADDRESS_MAP_START( zerohour_map, AS_PROGRAM, 8, ladybug_state ) |
| 35 | 34 | AM_RANGE(0x0000, 0x2fff) AM_ROM |
| 36 | 35 | AM_RANGE(0x3000, 0x37ff) AM_RAM |
| 37 | 36 | AM_RANGE(0x3800, 0x3bff) AM_RAM AM_SHARE("spriteram") |
| 38 | | AM_RANGE(0x4000, 0x43ff) AM_RAM_WRITE_LEGACY(redclash_videoram_w) AM_SHARE("videoram") |
| 37 | AM_RANGE(0x4000, 0x43ff) AM_RAM_WRITE(redclash_videoram_w) AM_SHARE("videoram") |
| 39 | 38 | AM_RANGE(0x4800, 0x4800) AM_READ_PORT("IN0") /* IN0 */ |
| 40 | 39 | AM_RANGE(0x4801, 0x4801) AM_READ_PORT("IN1") /* IN1 */ |
| 41 | 40 | AM_RANGE(0x4802, 0x4802) AM_READ_PORT("DSW1") /* DSW0 */ |
| 42 | 41 | AM_RANGE(0x4803, 0x4803) AM_READ_PORT("DSW2") /* DSW1 */ |
| 43 | 42 | AM_RANGE(0x5000, 0x5007) AM_WRITENOP /* to sound board */ |
| 44 | | AM_RANGE(0x5800, 0x5800) AM_WRITE_LEGACY(redclash_star0_w) |
| 43 | AM_RANGE(0x5800, 0x5800) AM_WRITE(redclash_star0_w) |
| 45 | 44 | AM_RANGE(0x5801, 0x5804) AM_WRITENOP /* to sound board */ |
| 46 | | AM_RANGE(0x5805, 0x5805) AM_WRITE_LEGACY(redclash_star1_w) |
| 47 | | AM_RANGE(0x5806, 0x5806) AM_WRITE_LEGACY(redclash_star2_w) |
| 48 | | AM_RANGE(0x5807, 0x5807) AM_WRITE_LEGACY(redclash_flipscreen_w) |
| 49 | | AM_RANGE(0x7000, 0x7000) AM_WRITE_LEGACY(redclash_star_reset_w) |
| 50 | | AM_RANGE(0x7800, 0x7800) AM_WRITE_LEGACY(irqack_w) |
| 45 | AM_RANGE(0x5805, 0x5805) AM_WRITE(redclash_star1_w) |
| 46 | AM_RANGE(0x5806, 0x5806) AM_WRITE(redclash_star2_w) |
| 47 | AM_RANGE(0x5807, 0x5807) AM_WRITE(redclash_flipscreen_w) |
| 48 | AM_RANGE(0x7000, 0x7000) AM_WRITE(redclash_star_reset_w) |
| 49 | AM_RANGE(0x7800, 0x7800) AM_WRITE(irqack_w) |
| 51 | 50 | ADDRESS_MAP_END |
| 52 | 51 | |
| 53 | 52 | static ADDRESS_MAP_START( redclash_map, AS_PROGRAM, 8, ladybug_state ) |
| 54 | 53 | AM_RANGE(0x0000, 0x2fff) AM_ROM |
| 55 | 54 | // AM_RANGE(0x3000, 0x3000) AM_WRITENOP |
| 56 | 55 | // AM_RANGE(0x3800, 0x3800) AM_WRITENOP |
| 57 | | AM_RANGE(0x4000, 0x43ff) AM_RAM_WRITE_LEGACY(redclash_videoram_w) AM_SHARE("videoram") |
| 56 | AM_RANGE(0x4000, 0x43ff) AM_RAM_WRITE(redclash_videoram_w) AM_SHARE("videoram") |
| 58 | 57 | AM_RANGE(0x4800, 0x4800) AM_READ_PORT("IN0") /* IN0 */ |
| 59 | 58 | AM_RANGE(0x4801, 0x4801) AM_READ_PORT("IN1") /* IN1 */ |
| 60 | 59 | AM_RANGE(0x4802, 0x4802) AM_READ_PORT("DSW1") /* DSW0 */ |
| 61 | 60 | AM_RANGE(0x4803, 0x4803) AM_READ_PORT("DSW2") /* DSW1 */ |
| 62 | 61 | AM_RANGE(0x5000, 0x5007) AM_WRITENOP /* to sound board */ |
| 63 | | AM_RANGE(0x5800, 0x5800) AM_WRITE_LEGACY(redclash_star0_w) |
| 64 | | AM_RANGE(0x5801, 0x5801) AM_WRITE_LEGACY(redclash_gfxbank_w) |
| 65 | | AM_RANGE(0x5805, 0x5805) AM_WRITE_LEGACY(redclash_star1_w) |
| 66 | | AM_RANGE(0x5806, 0x5806) AM_WRITE_LEGACY(redclash_star2_w) |
| 67 | | AM_RANGE(0x5807, 0x5807) AM_WRITE_LEGACY(redclash_flipscreen_w) |
| 62 | AM_RANGE(0x5800, 0x5800) AM_WRITE(redclash_star0_w) |
| 63 | AM_RANGE(0x5801, 0x5801) AM_WRITE(redclash_gfxbank_w) |
| 64 | AM_RANGE(0x5805, 0x5805) AM_WRITE(redclash_star1_w) |
| 65 | AM_RANGE(0x5806, 0x5806) AM_WRITE(redclash_star2_w) |
| 66 | AM_RANGE(0x5807, 0x5807) AM_WRITE(redclash_flipscreen_w) |
| 68 | 67 | AM_RANGE(0x6000, 0x67ff) AM_RAM |
| 69 | 68 | AM_RANGE(0x6800, 0x6bff) AM_RAM AM_SHARE("spriteram") |
| 70 | | AM_RANGE(0x7000, 0x7000) AM_WRITE_LEGACY(redclash_star_reset_w) |
| 71 | | AM_RANGE(0x7800, 0x7800) AM_WRITE_LEGACY(irqack_w) |
| 69 | AM_RANGE(0x7000, 0x7000) AM_WRITE(redclash_star_reset_w) |
| 70 | AM_RANGE(0x7800, 0x7800) AM_WRITE(irqack_w) |
| 72 | 71 | ADDRESS_MAP_END |
| 73 | 72 | |
| 74 | 73 | /* |