src/mame/video/ppu2c0x.c
| r4499 | r4500 | |
| 28 | 28 | #include "profiler.h" |
| 29 | 29 | #include "video/ppu2c0x.h" |
| 30 | 30 | |
| 31 | |
| 32 | /*************************************************************************** |
| 33 | CONSTANTS |
| 34 | ***************************************************************************/ |
| 35 | |
| 31 | 36 | /* constant definitions */ |
| 32 | 37 | #define VISIBLE_SCREEN_WIDTH (32*8) /* Visible screen width */ |
| 33 | 38 | #define VISIBLE_SCREEN_HEIGHT (30*8) /* Visible screen height */ |
| r4499 | r4500 | |
| 37 | 42 | #define SPRITERAM_MASK (0x100-1) /* spriteram size */ |
| 38 | 43 | #define CHARGEN_NUM_CHARS 512 /* max number of characters handled by the chargen */ |
| 39 | 44 | |
| 45 | enum |
| 46 | { |
| 47 | PPU2C0XINFO_INT_SCANLINES_PER_FRAME = DEVINFO_INT_DEVICE_SPECIFIC |
| 48 | }; |
| 49 | |
| 40 | 50 | /* default monochromatic colortable */ |
| 41 | 51 | static const pen_t default_colortable_mono[] = |
| 42 | 52 | { |
| r4499 | r4500 | |
| 63 | 73 | 0,29,30,31, |
| 64 | 74 | }; |
| 65 | 75 | |
| 76 | |
| 77 | /*************************************************************************** |
| 78 | TYPE DEFINITIONS |
| 79 | ***************************************************************************/ |
| 80 | |
| 66 | 81 | /* our chip state */ |
| 67 | | typedef struct { |
| 68 | | running_machine *machine; /* execution context */ |
| 82 | typedef struct |
| 83 | { |
| 69 | 84 | bitmap_t *bitmap; /* target bitmap */ |
| 70 | 85 | UINT8 *videomem; /* video mem */ |
| 71 | 86 | UINT8 *videoram; /* video ram */ |
| r4499 | r4500 | |
| 104 | 119 | rgb_t palette[64*4]; /* palette for this chip */ |
| 105 | 120 | } ppu2c0x_chip; |
| 106 | 121 | |
| 107 | | /* our local copy of the interface */ |
| 108 | | static ppu2c0x_interface *intf; |
| 109 | 122 | |
| 110 | | /* chips state - allocated at init time */ |
| 111 | | static ppu2c0x_chip *chips = 0; |
| 112 | 123 | |
| 113 | | static void update_scanline(running_machine *machine, int num ); |
| 124 | /*************************************************************************** |
| 125 | PROTOTYPES |
| 126 | ***************************************************************************/ |
| 114 | 127 | |
| 128 | static void update_scanline(const device_config *device); |
| 129 | |
| 115 | 130 | static TIMER_CALLBACK( scanline_callback ); |
| 116 | 131 | static TIMER_CALLBACK( hblank_callback ); |
| 117 | 132 | static TIMER_CALLBACK( nmi_callback ); |
| 118 | 133 | |
| 119 | | void (*ppu_latch)( offs_t offset ); |
| 134 | void (*ppu_latch)( const device_config *device, offs_t offset ); |
| 120 | 135 | |
| 121 | 136 | |
| 137 | /*************************************************************************** |
| 138 | INLINE FUNCTIONS |
| 139 | ***************************************************************************/ |
| 140 | |
| 141 | INLINE ppu2c0x_chip *get_token(const device_config *device) |
| 142 | { |
| 143 | assert(device != NULL); |
| 144 | assert((device->type == PPU_2C02) || (device->type == PPU_2C03B) |
| 145 | || (device->type == PPU_2C04) || (device->type == PPU_2C05) |
| 146 | || (device->type == PPU_2C07)); |
| 147 | return (ppu2c0x_chip *) device->token; |
| 148 | } |
| 149 | |
| 150 | |
| 151 | INLINE const ppu2c0x_interface *get_interface(const device_config *device) |
| 152 | { |
| 153 | assert(device != NULL); |
| 154 | assert((device->type == PPU_2C02) || (device->type == PPU_2C03B) |
| 155 | || (device->type == PPU_2C04) || (device->type == PPU_2C05) |
| 156 | || (device->type == PPU_2C07)); |
| 157 | return (const ppu2c0x_interface *) device->static_config; |
| 158 | } |
| 159 | |
| 160 | |
| 161 | /*************************************************************************** |
| 162 | IMPLEMENTATION |
| 163 | ***************************************************************************/ |
| 164 | |
| 122 | 165 | /************************************* |
| 123 | 166 | * |
| 124 | 167 | * PPU Palette Initialization |
| r4499 | r4500 | |
| 254 | 297 | * PPU Initialization and Disposal |
| 255 | 298 | * |
| 256 | 299 | *************************************/ |
| 257 | | void ppu2c0x_init(running_machine *machine, const ppu2c0x_interface *interface ) |
| 300 | |
| 301 | static DEVICE_START( ppu2c0x ) |
| 258 | 302 | { |
| 259 | | int i; |
| 260 | 303 | UINT32 total; |
| 304 | ppu2c0x_chip *chip = get_token(device); |
| 305 | const ppu2c0x_interface *intf = get_interface(device); |
| 261 | 306 | |
| 262 | | /* keep a local copy of the interface */ |
| 263 | | intf = auto_malloc(sizeof(*interface)); |
| 264 | | memcpy(intf, interface, sizeof(*interface)); |
| 307 | memset(chip, 0, sizeof(*chip)); |
| 308 | chip->scanlines_per_frame = (int) device_get_info_int(device, PPU2C0XINFO_INT_SCANLINES_PER_FRAME); |
| 265 | 309 | |
| 266 | | /* safety check */ |
| 267 | | assert_always ( intf->num > 0, "Invalid intf->num" ); |
| 310 | /* initialize the scanline handling portion */ |
| 311 | chip->scanline_timer = timer_alloc(device->machine, scanline_callback, (void *) device); |
| 312 | chip->hblank_timer = timer_alloc(device->machine, hblank_callback, (void *) device); |
| 313 | chip->nmi_timer = timer_alloc(device->machine, nmi_callback, (void *) device); |
| 314 | chip->scanline = 0; |
| 315 | chip->scan_scale = 1; |
| 268 | 316 | |
| 269 | | chips = auto_malloc( intf->num * sizeof( ppu2c0x_chip ) ); |
| 270 | | memset(chips, 0, intf->num * sizeof( ppu2c0x_chip )); |
| 317 | /* allocate a screen bitmap, videomem and spriteram, a dirtychar array and the monochromatic colortable */ |
| 318 | chip->bitmap = auto_bitmap_alloc( VISIBLE_SCREEN_WIDTH, VISIBLE_SCREEN_HEIGHT, video_screen_get_format(device->machine->primary_screen)); |
| 319 | chip->videomem = auto_malloc( VIDEOMEM_SIZE ); |
| 320 | chip->videoram = auto_malloc( VIDEOMEM_SIZE ); |
| 321 | chip->spriteram = auto_malloc( SPRITERAM_SIZE ); |
| 322 | chip->colortable = auto_malloc( sizeof( default_colortable ) ); |
| 323 | chip->colortable_mono = auto_malloc( sizeof( default_colortable_mono ) ); |
| 271 | 324 | |
| 272 | | /* intialize our virtual chips */ |
| 273 | | for( i = 0; i < intf->num; i++ ) |
| 325 | /* clear videomem & spriteram */ |
| 326 | memset( chip->videomem, 0, VIDEOMEM_SIZE ); |
| 327 | memset( chip->videoram, 0, VIDEOMEM_SIZE ); |
| 328 | memset( chip->spriteram, 0, SPRITERAM_SIZE ); |
| 329 | memset( chip->videoram_banks_indices, 0xff, sizeof(chip->videoram_banks_indices) ); |
| 330 | |
| 331 | if ( intf->vram_enabled ) |
| 274 | 332 | { |
| 275 | | chips[i].machine = machine; |
| 333 | chip->has_videoram = 1; |
| 334 | } |
| 276 | 335 | |
| 277 | | switch (intf->type) |
| 278 | | { |
| 279 | | case PPU_2C02: |
| 280 | | chips[i].scanlines_per_frame = PPU_NTSC_SCANLINES_PER_FRAME; |
| 281 | | break; |
| 282 | | case PPU_2C03B: |
| 283 | | chips[i].scanlines_per_frame = PPU_NTSC_SCANLINES_PER_FRAME; |
| 284 | | break; |
| 285 | | case PPU_2C04: |
| 286 | | chips[i].scanlines_per_frame = PPU_NTSC_SCANLINES_PER_FRAME; |
| 287 | | break; |
| 288 | | case PPU_2C05: |
| 289 | | chips[i].scanlines_per_frame = PPU_NTSC_SCANLINES_PER_FRAME; |
| 290 | | break; |
| 291 | | case PPU_2C07: |
| 292 | | chips[i].scanlines_per_frame = PPU_PAL_SCANLINES_PER_FRAME; |
| 293 | | break; |
| 294 | | default: |
| 295 | | chips[i].scanlines_per_frame = PPU_NTSC_SCANLINES_PER_FRAME; |
| 296 | | break; |
| 297 | | } |
| 336 | /* initialize the video ROM portion, if available */ |
| 337 | if ( ( intf->vrom_region != NULL ) && ( memory_region( device->machine, intf->vrom_region ) != 0 ) ) |
| 338 | { |
| 339 | /* mark that we have a videorom */ |
| 340 | chip->has_videorom = 1; |
| 298 | 341 | |
| 299 | | /* initialize the scanline handling portion */ |
| 300 | | chips[i].scanline_timer = timer_alloc(machine, scanline_callback, NULL); |
| 301 | | chips[i].hblank_timer = timer_alloc(machine, hblank_callback, NULL); |
| 302 | | chips[i].nmi_timer = timer_alloc(machine, nmi_callback, NULL); |
| 303 | | chips[i].scanline = 0; |
| 304 | | chips[i].scan_scale = 1; |
| 342 | /* find out how many banks */ |
| 343 | chip->videorom_banks = memory_region_length( device->machine, intf->vrom_region ) / 0x2000; |
| 305 | 344 | |
| 306 | | /* allocate a screen bitmap, videomem and spriteram, a dirtychar array and the monochromatic colortable */ |
| 307 | | chips[i].bitmap = auto_bitmap_alloc( VISIBLE_SCREEN_WIDTH, VISIBLE_SCREEN_HEIGHT, video_screen_get_format(machine->primary_screen)); |
| 308 | | chips[i].videomem = auto_malloc( VIDEOMEM_SIZE ); |
| 309 | | chips[i].videoram = auto_malloc( VIDEOMEM_SIZE ); |
| 310 | | chips[i].spriteram = auto_malloc( SPRITERAM_SIZE ); |
| 311 | | chips[i].colortable = auto_malloc( sizeof( default_colortable ) ); |
| 312 | | chips[i].colortable_mono = auto_malloc( sizeof( default_colortable_mono ) ); |
| 313 | | |
| 314 | | /* clear videomem & spriteram */ |
| 315 | | memset( chips[i].videomem, 0, VIDEOMEM_SIZE ); |
| 316 | | memset( chips[i].videoram, 0, VIDEOMEM_SIZE ); |
| 317 | | memset( chips[i].spriteram, 0, SPRITERAM_SIZE ); |
| 318 | | memset( chips[i].videoram_banks_indices, 0xff, sizeof(chips[i].videoram_banks_indices) ); |
| 319 | | |
| 320 | | if ( intf->vram_enabled[i] ) |
| 345 | /* tweak the layout accordingly */ |
| 346 | if ( chip->has_videoram ) |
| 321 | 347 | { |
| 322 | | chips[i].has_videoram = 1; |
| 348 | total = CHARGEN_NUM_CHARS; |
| 323 | 349 | } |
| 324 | | |
| 325 | | /* initialize the video ROM portion, if available */ |
| 326 | | if ( ( intf->vrom_region[i] != NULL ) && ( memory_region( machine, intf->vrom_region[i] ) != 0 ) ) |
| 327 | | { |
| 328 | | /* mark that we have a videorom */ |
| 329 | | chips[i].has_videorom = 1; |
| 330 | | |
| 331 | | /* find out how many banks */ |
| 332 | | chips[i].videorom_banks = memory_region_length( machine, intf->vrom_region[i] ) / 0x2000; |
| 333 | | |
| 334 | | /* tweak the layout accordingly */ |
| 335 | | if ( chips[i].has_videoram ) |
| 336 | | { |
| 337 | | total = CHARGEN_NUM_CHARS; |
| 338 | | } |
| 339 | | else |
| 340 | | { |
| 341 | | total = chips[i].videorom_banks * CHARGEN_NUM_CHARS; |
| 342 | | } |
| 343 | | } |
| 344 | 350 | else |
| 345 | 351 | { |
| 346 | | chips[i].has_videorom = chips[i].videorom_banks = 0; |
| 347 | | |
| 348 | | /* we need to reset this in case of mame running multisession */ |
| 349 | | total = CHARGEN_NUM_CHARS; |
| 352 | total = chip->videorom_banks * CHARGEN_NUM_CHARS; |
| 350 | 353 | } |
| 354 | } |
| 355 | else |
| 356 | { |
| 357 | chip->has_videorom = chip->videorom_banks = 0; |
| 351 | 358 | |
| 352 | | /* now create the gfx region */ |
| 353 | | { |
| 354 | | gfx_layout gl; |
| 355 | | UINT8 *src = (chips[i].has_videorom && !chips[i].has_videoram) ? memory_region( machine, intf->vrom_region[i] ) : chips[i].videomem; |
| 359 | /* we need to reset this in case of mame running multisession */ |
| 360 | total = CHARGEN_NUM_CHARS; |
| 361 | } |
| 356 | 362 | |
| 357 | | memcpy(&gl, &ppu_charlayout, sizeof(gl)); |
| 358 | | gl.total = total; |
| 359 | | machine->gfx[intf->gfx_layout_number[i]] = gfx_element_alloc( machine, &gl, src, 8, 0 ); |
| 360 | | } |
| 363 | /* now create the gfx region */ |
| 364 | { |
| 365 | gfx_layout gl; |
| 366 | UINT8 *src = (chip->has_videorom && !chip->has_videoram) ? memory_region( device->machine, intf->vrom_region ) : chip->videomem; |
| 361 | 367 | |
| 362 | | /* setup our videomem handlers based on mirroring */ |
| 363 | | ppu2c0x_set_mirroring( i, intf->mirroring[i] ); |
| 368 | memcpy(&gl, &ppu_charlayout, sizeof(gl)); |
| 369 | gl.total = total; |
| 370 | device->machine->gfx[intf->gfx_layout_number] = gfx_element_alloc( device->machine, &gl, src, 8, 0 ); |
| 364 | 371 | } |
| 372 | |
| 373 | /* setup our videomem handlers based on mirroring */ |
| 374 | ppu2c0x_set_mirroring( device, intf->mirroring ); |
| 365 | 375 | } |
| 366 | 376 | |
| 367 | 377 | static TIMER_CALLBACK( hblank_callback ) |
| 368 | 378 | { |
| 369 | | int num = param; |
| 370 | | ppu2c0x_chip* this_ppu = &chips[num]; |
| 371 | | int *ppu_regs = &chips[num].regs[0]; |
| 379 | const device_config *device = ptr; |
| 380 | ppu2c0x_chip *this_ppu = get_token(device); |
| 381 | int *ppu_regs = &this_ppu->regs[0]; |
| 372 | 382 | |
| 373 | 383 | int blanked = ( ppu_regs[PPU_CONTROL1] & ( PPU_CONTROL1_BACKGROUND | PPU_CONTROL1_SPRITES ) ) == 0; |
| 374 | 384 | int vblank = ((this_ppu->scanline >= PPU_VBLANK_FIRST_SCANLINE-1) && (this_ppu->scanline < this_ppu->scanlines_per_frame-1)) ? 1 : 0; |
| 375 | 385 | |
| 376 | | // update_scanline (machine, num); |
| 386 | // update_scanline (device); |
| 377 | 387 | |
| 378 | 388 | if (this_ppu->hblank_callback_proc) |
| 379 | | (*this_ppu->hblank_callback_proc) (machine, num, this_ppu->scanline, vblank, blanked); |
| 389 | (*this_ppu->hblank_callback_proc) (device, this_ppu->scanline, vblank, blanked); |
| 380 | 390 | |
| 381 | | timer_adjust_oneshot(chips[num].hblank_timer, attotime_never, num); |
| 391 | timer_adjust_oneshot(this_ppu->hblank_timer, attotime_never, 0); |
| 382 | 392 | } |
| 383 | 393 | |
| 384 | 394 | static TIMER_CALLBACK( nmi_callback ) |
| 385 | 395 | { |
| 386 | | int num = param; |
| 387 | | int *ppu_regs = &chips[num].regs[0]; |
| 396 | const device_config *device = ptr; |
| 397 | ppu2c0x_chip *this_ppu = get_token(device); |
| 398 | const ppu2c0x_interface *intf = get_interface(device); |
| 399 | int *ppu_regs = &this_ppu->regs[0]; |
| 388 | 400 | |
| 389 | 401 | // Actually fire the VMI |
| 390 | | if (intf->nmi_handler[num]) |
| 391 | | (*intf->nmi_handler[num]) (machine, num, ppu_regs); |
| 402 | if (intf->nmi_handler != NULL) |
| 403 | (*intf->nmi_handler) (device, ppu_regs); |
| 392 | 404 | |
| 393 | | timer_adjust_oneshot(chips[num].nmi_timer, attotime_never, num); |
| 405 | timer_adjust_oneshot(this_ppu->nmi_timer, attotime_never, 0); |
| 394 | 406 | } |
| 395 | 407 | |
| 396 | | static void draw_background(running_machine *machine, int num, UINT8 *line_priority ) |
| 408 | static void draw_background(const device_config *device, UINT8 *line_priority ) |
| 397 | 409 | { |
| 410 | const ppu2c0x_interface *intf = get_interface(device); |
| 411 | ppu2c0x_chip *this_ppu = get_token(device); |
| 412 | |
| 398 | 413 | /* cache some values locally */ |
| 399 | | bitmap_t *bitmap = chips[num].bitmap; |
| 400 | | const int *ppu_regs = &chips[num].regs[0]; |
| 401 | | const int scanline = chips[num].scanline; |
| 402 | | const int refresh_data = chips[num].refresh_data; |
| 403 | | const int gfx_bank = intf->gfx_layout_number[num]; |
| 404 | | const int total_elements = chips[num].machine->gfx[gfx_bank]->total_elements; |
| 405 | | const int *nes_vram = &chips[num].nes_vram[0]; |
| 406 | | const int tile_page = chips[num].tile_page; |
| 407 | | const int line_modulo = chips[num].machine->gfx[gfx_bank]->line_modulo; |
| 408 | | UINT8 **ppu_page = chips[num].ppu_page; |
| 409 | | int start_x = ( chips[num].x_fine ^ 0x07 ) - 7; |
| 414 | bitmap_t *bitmap = this_ppu->bitmap; |
| 415 | const int *ppu_regs = &this_ppu->regs[0]; |
| 416 | const int scanline = this_ppu->scanline; |
| 417 | const int refresh_data = this_ppu->refresh_data; |
| 418 | const int gfx_bank = intf->gfx_layout_number; |
| 419 | const int total_elements = device->machine->gfx[gfx_bank]->total_elements; |
| 420 | const int *nes_vram = &this_ppu->nes_vram[0]; |
| 421 | const int tile_page = this_ppu->tile_page; |
| 422 | const int line_modulo = device->machine->gfx[gfx_bank]->line_modulo; |
| 423 | UINT8 **ppu_page = this_ppu->ppu_page; |
| 424 | int start_x = ( this_ppu->x_fine ^ 0x07 ) - 7; |
| 410 | 425 | UINT16 back_pen; |
| 411 | 426 | UINT16 *dest; |
| 412 | 427 | |
| r4499 | r4500 | |
| 423 | 438 | if ( ppu_regs[PPU_CONTROL1] & PPU_CONTROL1_DISPLAY_MONO ) |
| 424 | 439 | { |
| 425 | 440 | color_mask = 0xf0; |
| 426 | | color_table = chips[num].colortable_mono; |
| 441 | color_table = this_ppu->colortable_mono; |
| 427 | 442 | } |
| 428 | 443 | else |
| 429 | 444 | { |
| 430 | 445 | color_mask = 0xff; |
| 431 | | color_table = chips[num].colortable; |
| 446 | color_table = this_ppu->colortable; |
| 432 | 447 | } |
| 433 | 448 | |
| 434 | 449 | /* cache the background pen */ |
| 435 | | back_pen = (chips[num].back_color & color_mask)+intf->color_base[num]; |
| 450 | back_pen = (this_ppu->back_color & color_mask)+intf->color_base; |
| 436 | 451 | |
| 437 | 452 | /* determine where in the nametable to start drawing from */ |
| 438 | 453 | /* based on the current scanline and scroll regs */ |
| r4499 | r4500 | |
| 477 | 492 | //27/12/2002 |
| 478 | 493 | if( ppu_latch ) |
| 479 | 494 | { |
| 480 | | (*ppu_latch)(( tile_page << 10 ) | ( page2 << 4 )); |
| 495 | (*ppu_latch)(device, ( tile_page << 10 ) | ( page2 << 4 )); |
| 481 | 496 | } |
| 482 | 497 | |
| 483 | 498 | if(start_x < VISIBLE_SCREEN_WIDTH ) |
| 484 | 499 | { |
| 485 | 500 | paldata = &color_table[ 4 * ( ( ( color_byte >> color_bits ) & 0x03 ) ) ]; |
| 486 | 501 | start = scroll_y_fine * line_modulo; |
| 487 | | sd = gfx_element_get_data(chips[num].machine->gfx[gfx_bank], index2 % total_elements) + start; |
| 502 | sd = gfx_element_get_data(device->machine->gfx[gfx_bank], index2 % total_elements) + start; |
| 488 | 503 | |
| 489 | 504 | /* render the pixel */ |
| 490 | 505 | for( i = 0; i < 8; i++ ) |
| r4499 | r4500 | |
| 530 | 545 | } |
| 531 | 546 | } |
| 532 | 547 | |
| 533 | | static void draw_sprites(running_machine *machine, int num, UINT8 *line_priority ) |
| 548 | static void draw_sprites(const device_config *device, UINT8 *line_priority ) |
| 534 | 549 | { |
| 550 | const ppu2c0x_interface *intf = get_interface(device); |
| 551 | ppu2c0x_chip *this_ppu = get_token(device); |
| 552 | |
| 535 | 553 | /* cache some values locally */ |
| 536 | | bitmap_t *bitmap = chips[num].bitmap; |
| 537 | | const int scanline = chips[num].scanline; |
| 538 | | const int gfx_bank = intf->gfx_layout_number[num]; |
| 539 | | const int total_elements = chips[num].machine->gfx[gfx_bank]->total_elements; |
| 540 | | const int sprite_page = chips[num].sprite_page; |
| 541 | | const int line_modulo = chips[num].machine->gfx[gfx_bank]->line_modulo; |
| 542 | | const UINT8 *sprite_ram = chips[num].spriteram; |
| 543 | | pen_t *color_table = chips[num].colortable; |
| 544 | | int *ppu_regs = &chips[num].regs[0]; |
| 554 | bitmap_t *bitmap = this_ppu->bitmap; |
| 555 | const int scanline = this_ppu->scanline; |
| 556 | const int gfx_bank = intf->gfx_layout_number; |
| 557 | const int total_elements = device->machine->gfx[gfx_bank]->total_elements; |
| 558 | const int sprite_page = this_ppu->sprite_page; |
| 559 | const int line_modulo = device->machine->gfx[gfx_bank]->line_modulo; |
| 560 | const UINT8 *sprite_ram = this_ppu->spriteram; |
| 561 | pen_t *color_table = this_ppu->colortable; |
| 562 | int *ppu_regs = &this_ppu->regs[0]; |
| 545 | 563 | |
| 546 | 564 | int spriteXPos, spriteYPos, spriteIndex; |
| 547 | 565 | int tile, index1, page; |
| r4499 | r4500 | |
| 613 | 631 | page = ( tile >> 6 ) | sprite_page; |
| 614 | 632 | |
| 615 | 633 | |
| 616 | | index1 = chips[num].nes_vram[page] + ( tile & 0x3f ); |
| 634 | index1 = this_ppu->nes_vram[page] + ( tile & 0x3f ); |
| 617 | 635 | |
| 618 | 636 | if ( ppu_latch ) |
| 619 | | (*ppu_latch)(( sprite_page << 10 ) | ( (tile & 0xff) << 4 )); |
| 637 | (*ppu_latch)(device, ( sprite_page << 10 ) | ( (tile & 0xff) << 4 )); |
| 620 | 638 | |
| 621 | 639 | /* compute the character's line to draw */ |
| 622 | 640 | sprite_line = scanline - spriteYPos; |
| r4499 | r4500 | |
| 626 | 644 | |
| 627 | 645 | paldata = &color_table[4 * color]; |
| 628 | 646 | start = sprite_line * line_modulo; |
| 629 | | sd = gfx_element_get_data(chips[num].machine->gfx[gfx_bank], index1 % total_elements) + start; |
| 647 | sd = gfx_element_get_data(device->machine->gfx[gfx_bank], index1 % total_elements) + start; |
| 630 | 648 | if (size > 8) |
| 631 | | gfx_element_get_data(chips[num].machine->gfx[gfx_bank], (index1 + 1) % total_elements); |
| 649 | gfx_element_get_data(device->machine->gfx[gfx_bank], (index1 + 1) % total_elements); |
| 632 | 650 | |
| 633 | 651 | if ( pri ) |
| 634 | 652 | { |
| r4499 | r4500 | |
| 716 | 734 | * Scanline Rendering and Update |
| 717 | 735 | * |
| 718 | 736 | *************************************/ |
| 719 | | static void render_scanline(running_machine *machine, int num) |
| 737 | static void render_scanline(const device_config *device) |
| 720 | 738 | { |
| 739 | ppu2c0x_chip *this_ppu = get_token(device); |
| 740 | const ppu2c0x_interface *intf = get_interface(device); |
| 721 | 741 | UINT8 line_priority[VISIBLE_SCREEN_WIDTH]; |
| 722 | | int *ppu_regs = &chips[num].regs[0]; |
| 742 | int *ppu_regs = &this_ppu->regs[0]; |
| 723 | 743 | |
| 724 | 744 | /* lets see how long it takes */ |
| 725 | | profiler_mark(PROFILER_USER1+num); |
| 745 | profiler_mark(PROFILER_USER1); |
| 726 | 746 | |
| 727 | 747 | /* clear the line priority for this scanline */ |
| 728 | 748 | memset( line_priority, 0, VISIBLE_SCREEN_WIDTH ); |
| r4499 | r4500 | |
| 732 | 752 | |
| 733 | 753 | /* see if we need to render the background */ |
| 734 | 754 | if ( ppu_regs[PPU_CONTROL1] & PPU_CONTROL1_BACKGROUND ) |
| 735 | | draw_background(machine, num, line_priority ); |
| 755 | draw_background(device, line_priority ); |
| 736 | 756 | else |
| 737 | 757 | { |
| 738 | | bitmap_t *bitmap = chips[num].bitmap; |
| 739 | | const int scanline = chips[num].scanline; |
| 758 | bitmap_t *bitmap = this_ppu->bitmap; |
| 759 | const int scanline = this_ppu->scanline; |
| 740 | 760 | UINT8 color_mask; |
| 741 | 761 | UINT16 back_pen; |
| 742 | 762 | int i; |
| r4499 | r4500 | |
| 748 | 768 | color_mask = 0xff; |
| 749 | 769 | |
| 750 | 770 | /* cache the background pen */ |
| 751 | | back_pen = (chips[num].back_color & color_mask)+intf->color_base[num]; |
| 771 | back_pen = (this_ppu->back_color & color_mask)+intf->color_base; |
| 752 | 772 | |
| 753 | 773 | // Fill this scanline with the background pen. |
| 754 | 774 | for (i = 0; i < bitmap->width; i ++) |
| r4499 | r4500 | |
| 757 | 777 | |
| 758 | 778 | /* if sprites are on, draw them */ |
| 759 | 779 | if ( ppu_regs[PPU_CONTROL1] & PPU_CONTROL1_SPRITES ) |
| 760 | | draw_sprites( machine, num, line_priority ); |
| 780 | draw_sprites( device, line_priority ); |
| 761 | 781 | |
| 762 | 782 | /* done updating, whew */ |
| 763 | 783 | profiler_mark(PROFILER_END); |
| 764 | 784 | } |
| 765 | 785 | |
| 766 | | static void update_scanline(running_machine *machine, int num ) |
| 786 | static void update_scanline(const device_config *device) |
| 767 | 787 | { |
| 768 | | ppu2c0x_chip* this_ppu; |
| 769 | | int scanline = chips[num].scanline; |
| 770 | | int *ppu_regs = &chips[num].regs[0]; |
| 788 | ppu2c0x_chip *this_ppu = get_token(device); |
| 789 | const ppu2c0x_interface *intf = get_interface(device); |
| 790 | int scanline = this_ppu->scanline; |
| 791 | int *ppu_regs = &this_ppu->regs[0]; |
| 771 | 792 | |
| 772 | | this_ppu = &chips[num]; |
| 773 | | |
| 774 | 793 | if ( scanline <= PPU_BOTTOM_VISIBLE_SCANLINE ) |
| 775 | 794 | { |
| 776 | 795 | /* Render this scanline if appropriate */ |
| r4499 | r4500 | |
| 782 | 801 | this_ppu->refresh_data |= ( this_ppu->refresh_latch & 0x041f ); |
| 783 | 802 | |
| 784 | 803 | //logerror(" updating refresh_data: %04x (scanline: %d)\n", this_ppu->refresh_data, this_ppu->scanline); |
| 785 | | render_scanline( machine, num ); |
| 804 | render_scanline( device ); |
| 786 | 805 | } |
| 787 | 806 | else |
| 788 | 807 | { |
| r4499 | r4500 | |
| 812 | 831 | else |
| 813 | 832 | penNum = this_ppu->videomem[this_ppu->videomem_addr & 0x3f00] & 0x3f; |
| 814 | 833 | |
| 815 | | back_pen = penNum + intf->color_base[num]; |
| 834 | back_pen = penNum + intf->color_base; |
| 816 | 835 | } |
| 817 | 836 | else |
| 818 | | back_pen = (this_ppu->back_color & color_mask)+intf->color_base[num]; |
| 837 | back_pen = (this_ppu->back_color & color_mask)+intf->color_base; |
| 819 | 838 | |
| 820 | 839 | // Fill this scanline with the background pen. |
| 821 | 840 | for (i = 0; i < bitmap->width; i ++) |
| r4499 | r4500 | |
| 846 | 865 | |
| 847 | 866 | static TIMER_CALLBACK( scanline_callback ) |
| 848 | 867 | { |
| 849 | | int num = param; |
| 850 | | ppu2c0x_chip* this_ppu = &chips[num]; |
| 851 | | int *ppu_regs = &chips[num].regs[0]; |
| 868 | const device_config *device = ptr; |
| 869 | ppu2c0x_chip *this_ppu = get_token(device); |
| 870 | int *ppu_regs = &this_ppu->regs[0]; |
| 852 | 871 | int blanked = ( ppu_regs[PPU_CONTROL1] & ( PPU_CONTROL1_BACKGROUND | PPU_CONTROL1_SPRITES ) ) == 0; |
| 853 | 872 | int vblank = ((this_ppu->scanline >= PPU_VBLANK_FIRST_SCANLINE-1) && (this_ppu->scanline < this_ppu->scanlines_per_frame-1)) ? 1 : 0; |
| 854 | 873 | int next_scanline; |
| 855 | 874 | |
| 856 | 875 | /* if a callback is available, call it */ |
| 857 | | if ( this_ppu->scanline_callback_proc ) |
| 858 | | (*this_ppu->scanline_callback_proc)( machine, num, this_ppu->scanline, vblank, blanked ); |
| 876 | if ( this_ppu->scanline_callback_proc != NULL ) |
| 877 | (*this_ppu->scanline_callback_proc)( device, this_ppu->scanline, vblank, blanked ); |
| 859 | 878 | |
| 860 | 879 | /* update the scanline that just went by */ |
| 861 | | update_scanline( machine, num ); |
| 880 | update_scanline( device ); |
| 862 | 881 | |
| 863 | 882 | /* increment our scanline count */ |
| 864 | 883 | this_ppu->scanline++; |
| 865 | 884 | |
| 866 | | //logerror("starting scanline %d (MAME %d, beam %d)\n", this_ppu->scanline, video_screen_get_vpos(machine->primary_screen), video_screen_get_hpos(machine->primary_screen)); |
| 885 | //logerror("starting scanline %d (MAME %d, beam %d)\n", this_ppu->scanline, video_screen_get_vpos(device->machine->primary_screen), video_screen_get_hpos(device->machine->primary_screen)); |
| 867 | 886 | |
| 868 | 887 | /* Note: this is called at the _end_ of each scanline */ |
| 869 | 888 | if (this_ppu->scanline == PPU_VBLANK_FIRST_SCANLINE) |
| r4499 | r4500 | |
| 879 | 898 | // a game can read the high bit of $2002 before the NMI is called (potentially resetting the bit |
| 880 | 899 | // via a read from $2002 in the NMI handler). |
| 881 | 900 | // B-Wings is an example game that needs this. |
| 882 | | timer_adjust_oneshot(this_ppu->nmi_timer, cpu_clocks_to_attotime(machine->cpu[0], 4), num); |
| 901 | timer_adjust_oneshot(this_ppu->nmi_timer, cpu_clocks_to_attotime(device->machine->cpu[0], 4), 0); |
| 883 | 902 | } |
| 884 | 903 | } |
| 885 | 904 | |
| r4499 | r4500 | |
| 907 | 926 | next_scanline = 0; |
| 908 | 927 | |
| 909 | 928 | // Call us back when the hblank starts for this scanline |
| 910 | | timer_adjust_oneshot(this_ppu->hblank_timer, cpu_clocks_to_attotime(machine->cpu[0], 86.67), num); // ??? FIXME - hardcoding NTSC, need better calculation |
| 929 | timer_adjust_oneshot(this_ppu->hblank_timer, cpu_clocks_to_attotime(device->machine->cpu[0], 86.67), 0); // ??? FIXME - hardcoding NTSC, need better calculation |
| 911 | 930 | |
| 912 | 931 | // trigger again at the start of the next scanline |
| 913 | | timer_adjust_oneshot(this_ppu->scanline_timer, video_screen_get_time_until_pos(machine->primary_screen, next_scanline * this_ppu->scan_scale, 0), num); |
| 932 | timer_adjust_oneshot(this_ppu->scanline_timer, video_screen_get_time_until_pos(device->machine->primary_screen, next_scanline * this_ppu->scan_scale, 0), 0); |
| 914 | 933 | } |
| 915 | 934 | |
| 916 | 935 | /************************************* |
| r4499 | r4500 | |
| 918 | 937 | * PPU Reset |
| 919 | 938 | * |
| 920 | 939 | *************************************/ |
| 921 | | void ppu2c0x_reset(running_machine *machine, int num, int scan_scale) |
| 940 | |
| 941 | static DEVICE_RESET( ppu2c0x ) |
| 922 | 942 | { |
| 943 | ppu2c0x_chip *this_ppu = get_token(device); |
| 944 | const ppu2c0x_interface *intf = get_interface(device); |
| 945 | int scan_scale = 1; |
| 923 | 946 | int i; |
| 924 | 947 | |
| 925 | | /* check bounds */ |
| 926 | | if ( num >= intf->num ) |
| 927 | | { |
| 928 | | logerror( "PPU(reset): Attempting to access an unmapped chip\n" ); |
| 929 | | return; |
| 930 | | } |
| 931 | | |
| 932 | 948 | /* reset the scanline count */ |
| 933 | | chips[num].scanline = 0; |
| 949 | this_ppu->scanline = 0; |
| 934 | 950 | |
| 935 | 951 | /* set the scan scale (this is for dual monitor vertical setups) */ |
| 936 | | chips[num].scan_scale = scan_scale; |
| 952 | this_ppu->scan_scale = scan_scale; |
| 937 | 953 | |
| 938 | | timer_adjust_oneshot(chips[num].nmi_timer, attotime_never, num); |
| 954 | timer_adjust_oneshot(this_ppu->nmi_timer, attotime_never, 0); |
| 939 | 955 | |
| 940 | 956 | // Call us back when the hblank starts for this scanline |
| 941 | | timer_adjust_oneshot(chips[num].hblank_timer, cpu_clocks_to_attotime(machine->cpu[0], 86.67), num); // ??? FIXME - hardcoding NTSC, need better calculation |
| 957 | timer_adjust_oneshot(this_ppu->hblank_timer, cpu_clocks_to_attotime(device->machine->cpu[0], 86.67), 0); // ??? FIXME - hardcoding NTSC, need better calculation |
| 942 | 958 | |
| 943 | 959 | // Call us back at the start of the next scanline |
| 944 | | timer_adjust_oneshot(chips[num].scanline_timer, video_screen_get_time_until_pos(machine->primary_screen, 1, 0), num); |
| 960 | timer_adjust_oneshot(this_ppu->scanline_timer, video_screen_get_time_until_pos(device->machine->primary_screen, 1, 0), 0); |
| 945 | 961 | |
| 946 | 962 | /* reset the callbacks */ |
| 947 | | chips[num].scanline_callback_proc = 0; |
| 948 | | chips[num].vidaccess_callback_proc = 0; |
| 963 | this_ppu->scanline_callback_proc = 0; |
| 964 | this_ppu->vidaccess_callback_proc = 0; |
| 949 | 965 | |
| 950 | 966 | for( i = 0; i < PPU_MAX_REG; i++ ) |
| 951 | | chips[num].regs[i] = 0; |
| 967 | this_ppu->regs[i] = 0; |
| 952 | 968 | |
| 953 | 969 | /* initialize the rest of the members */ |
| 954 | | chips[num].refresh_data = 0; |
| 955 | | chips[num].refresh_latch = 0; |
| 956 | | chips[num].x_fine = 0; |
| 957 | | chips[num].toggle = 0; |
| 958 | | chips[num].add = 1; |
| 959 | | chips[num].videomem_addr = 0; |
| 960 | | chips[num].addr_latch = 0; |
| 961 | | chips[num].data_latch = 0; |
| 962 | | chips[num].tile_page = 0; |
| 963 | | chips[num].sprite_page = 0; |
| 964 | | chips[num].back_color = 0; |
| 970 | this_ppu->refresh_data = 0; |
| 971 | this_ppu->refresh_latch = 0; |
| 972 | this_ppu->x_fine = 0; |
| 973 | this_ppu->toggle = 0; |
| 974 | this_ppu->add = 1; |
| 975 | this_ppu->videomem_addr = 0; |
| 976 | this_ppu->addr_latch = 0; |
| 977 | this_ppu->data_latch = 0; |
| 978 | this_ppu->tile_page = 0; |
| 979 | this_ppu->sprite_page = 0; |
| 980 | this_ppu->back_color = 0; |
| 965 | 981 | |
| 966 | 982 | /* initialize the color tables */ |
| 967 | 983 | { |
| 968 | | int color_base = intf->color_base[num]; |
| 984 | int color_base = intf->color_base; |
| 969 | 985 | |
| 970 | 986 | for( i = 0; i < ARRAY_LENGTH( default_colortable_mono ); i++ ) |
| 971 | 987 | { |
| 972 | 988 | /* monochromatic table */ |
| 973 | | chips[num].colortable_mono[i] = default_colortable_mono[i] + color_base; |
| 989 | this_ppu->colortable_mono[i] = default_colortable_mono[i] + color_base; |
| 974 | 990 | |
| 975 | 991 | /* color table */ |
| 976 | | chips[num].colortable[i] = default_colortable[i] + color_base; |
| 992 | this_ppu->colortable[i] = default_colortable[i] + color_base; |
| 977 | 993 | } |
| 978 | 994 | } |
| 979 | 995 | |
| 980 | 996 | /* set the vram bank-switch values to the default */ |
| 981 | 997 | for( i = 0; i < 8; i++ ) |
| 982 | | chips[num].nes_vram[i] = i * 64; |
| 998 | this_ppu->nes_vram[i] = i * 64; |
| 983 | 999 | |
| 984 | | if ( chips[num].has_videorom ) |
| 985 | | ppu2c0x_set_videorom_bank( num, 0, 8, 0, 512 ); |
| 1000 | if ( this_ppu->has_videorom ) |
| 1001 | ppu2c0x_set_videorom_bank( device, 0, 8, 0, 512 ); |
| 986 | 1002 | } |
| 987 | 1003 | |
| 988 | 1004 | |
| r4499 | r4500 | |
| 991 | 1007 | * PPU Registers Read |
| 992 | 1008 | * |
| 993 | 1009 | *************************************/ |
| 994 | | int ppu2c0x_r( const address_space *space, offs_t offset, int num ) |
| 1010 | |
| 1011 | READ8_DEVICE_HANDLER( ppu2c0x_r ) |
| 995 | 1012 | { |
| 996 | | ppu2c0x_chip* this_ppu; |
| 1013 | ppu2c0x_chip *this_ppu = get_token(device); |
| 997 | 1014 | |
| 998 | | /* check bounds */ |
| 999 | | if ( num >= intf->num ) |
| 1000 | | { |
| 1001 | | logerror( "PPU %d(r): Attempting to access an unmapped chip\n", num ); |
| 1002 | | return 0; |
| 1003 | | } |
| 1004 | | |
| 1005 | | this_ppu = &chips[num]; |
| 1006 | | |
| 1007 | 1015 | if ( offset >= PPU_MAX_REG ) |
| 1008 | 1016 | { |
| 1009 | | logerror( "PPU %d(r): Attempting to read past the chip\n", num ); |
| 1017 | logerror( "PPU %s(r): Attempting to read past the chip\n", device->tag ); |
| 1010 | 1018 | offset &= PPU_MAX_REG - 1; |
| 1011 | 1019 | } |
| 1012 | 1020 | |
| r4499 | r4500 | |
| 1041 | 1049 | this_ppu->data_latch = this_ppu->buffered_data; |
| 1042 | 1050 | |
| 1043 | 1051 | if ( ppu_latch ) |
| 1044 | | (*ppu_latch)( this_ppu->videomem_addr & 0x3fff ); |
| 1052 | (*ppu_latch)( device, this_ppu->videomem_addr & 0x3fff ); |
| 1045 | 1053 | |
| 1046 | 1054 | if ( ( this_ppu->videomem_addr >= 0x2000 ) && ( this_ppu->videomem_addr <= 0x3fff ) ) |
| 1047 | 1055 | this_ppu->buffered_data = this_ppu->ppu_page[ ( this_ppu->videomem_addr & 0xc00) >> 10][ this_ppu->videomem_addr & 0x3ff ]; |
| r4499 | r4500 | |
| 1064 | 1072 | * PPU Registers Write |
| 1065 | 1073 | * |
| 1066 | 1074 | *************************************/ |
| 1067 | | void ppu2c0x_w( const address_space *space, offs_t offset, UINT8 data, int num ) |
| 1075 | |
| 1076 | WRITE8_DEVICE_HANDLER( ppu2c0x_w ) |
| 1068 | 1077 | { |
| 1069 | | ppu2c0x_chip* this_ppu; |
| 1078 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1079 | const ppu2c0x_interface *intf = get_interface(device); |
| 1070 | 1080 | int color_base; |
| 1071 | 1081 | |
| 1072 | | /* check bounds */ |
| 1073 | | if ( num >= intf->num ) |
| 1074 | | { |
| 1075 | | logerror( "PPU(w): Attempting to access an unmapped chip\n" ); |
| 1076 | | return; |
| 1077 | | } |
| 1082 | color_base = intf->color_base; |
| 1078 | 1083 | |
| 1079 | | this_ppu = &chips[num]; |
| 1080 | | color_base = intf->color_base[num]; |
| 1081 | | |
| 1082 | 1084 | if ( offset >= PPU_MAX_REG ) |
| 1083 | 1085 | { |
| 1084 | 1086 | logerror( "PPU: Attempting to write past the chip\n" ); |
| r4499 | r4500 | |
| 1088 | 1090 | #ifdef MAME_DEBUG |
| 1089 | 1091 | if (this_ppu->scanline <= PPU_BOTTOM_VISIBLE_SCANLINE) |
| 1090 | 1092 | { |
| 1091 | | const device_config *screen = space->machine->primary_screen; |
| 1093 | const device_config *screen = device->machine->primary_screen; |
| 1092 | 1094 | logerror(" PPU register %d write %02x during non-vblank scanline %d (MAME %d, beam pos: %d)\n", offset, data, this_ppu->scanline, video_screen_get_vpos(screen), video_screen_get_hpos(screen)); |
| 1093 | 1095 | } |
| 1094 | 1096 | #endif |
| r4499 | r4500 | |
| 1188 | 1190 | int tempAddr = this_ppu->videomem_addr & 0x3fff; |
| 1189 | 1191 | |
| 1190 | 1192 | if ( ppu_latch ) |
| 1191 | | (*ppu_latch)( tempAddr ); |
| 1193 | (*ppu_latch)( device, tempAddr ); |
| 1192 | 1194 | |
| 1193 | 1195 | /* if there's a callback, call it now */ |
| 1194 | 1196 | if ( this_ppu->vidaccess_callback_proc ) |
| 1195 | | data = (*this_ppu->vidaccess_callback_proc)( space->machine, num, tempAddr, data ); |
| 1197 | data = (*this_ppu->vidaccess_callback_proc)( device, tempAddr, data ); |
| 1196 | 1198 | |
| 1197 | 1199 | /* see if it's on the chargen portion */ |
| 1198 | 1200 | if ( tempAddr < 0x2000 ) |
| r4499 | r4500 | |
| 1210 | 1212 | this_ppu->videomem[tempAddr] = data; |
| 1211 | 1213 | |
| 1212 | 1214 | /* mark the char dirty */ |
| 1213 | | gfx_element_mark_dirty(this_ppu->machine->gfx[intf->gfx_layout_number[num]], tempAddr >> 4); |
| 1215 | gfx_element_mark_dirty(device->machine->gfx[intf->gfx_layout_number], tempAddr >> 4); |
| 1214 | 1216 | } |
| 1215 | 1217 | } |
| 1216 | 1218 | |
| r4499 | r4500 | |
| 1277 | 1279 | * Sprite DMA |
| 1278 | 1280 | * |
| 1279 | 1281 | *************************************/ |
| 1280 | | void ppu2c0x_spriteram_dma (const address_space *space, int num, const UINT8 page) |
| 1282 | void ppu2c0x_spriteram_dma (const address_space *space, const device_config *device, const UINT8 page) |
| 1281 | 1283 | { |
| 1282 | 1284 | int i; |
| 1283 | 1285 | int address = page << 8; |
| 1284 | 1286 | |
| 1285 | | /* check bounds */ |
| 1286 | | if ( num >= intf->num ) |
| 1287 | | { |
| 1288 | | logerror( "PPU(w): Attempting to access an unmapped chip\n" ); |
| 1289 | | return; |
| 1290 | | } |
| 1291 | | |
| 1292 | | //logerror(" sprite DMA: %d (scanline: %d)\n", page, chips[num].scanline); |
| 1287 | //logerror(" sprite DMA: %d (scanline: %d)\n", page, this_ppu->scanline); |
| 1293 | 1288 | for (i = 0; i < SPRITERAM_SIZE; i++) |
| 1294 | 1289 | { |
| 1295 | 1290 | UINT8 spriteData = memory_read_byte(space, address + i); |
| 1296 | | ppu2c0x_w (space, PPU_SPRITE_DATA, spriteData, num); |
| 1291 | ppu2c0x_w (device, PPU_SPRITE_DATA, spriteData); |
| 1297 | 1292 | } |
| 1298 | 1293 | |
| 1299 | 1294 | // should last 513 CPU cycles. |
| r4499 | r4500 | |
| 1304 | 1299 | // the scanline timers should catch us up before drawing actually happens. |
| 1305 | 1300 | #if 0 |
| 1306 | 1301 | { |
| 1307 | | ppu2c0x_chip* this_ppu = &chips[num]; |
| 1308 | | |
| 1309 | | scanline_callback(this_ppu->machine, num); |
| 1310 | | scanline_callback(this_ppu->machine, num); |
| 1311 | | scanline_callback(this_ppu->machine, num); |
| 1312 | | scanline_callback(this_ppu->machine, num); |
| 1302 | scanline_callback(device); |
| 1303 | scanline_callback(device); |
| 1304 | scanline_callback(device); |
| 1305 | scanline_callback(device); |
| 1313 | 1306 | } |
| 1314 | 1307 | #endif |
| 1315 | 1308 | } |
| r4499 | r4500 | |
| 1319 | 1312 | * PPU Rendering |
| 1320 | 1313 | * |
| 1321 | 1314 | *************************************/ |
| 1322 | | void ppu2c0x_render( int num, bitmap_t *bitmap, int flipx, int flipy, int sx, int sy ) |
| 1323 | | { |
| 1324 | | /* check bounds */ |
| 1325 | | if ( num >= intf->num ) |
| 1326 | | { |
| 1327 | | logerror( "PPU(render): Attempting to access an unmapped chip\n" ); |
| 1328 | | return; |
| 1329 | | } |
| 1330 | 1315 | |
| 1331 | | copybitmap( bitmap, chips[num].bitmap, flipx, flipy, sx, sy, 0 ); |
| 1316 | void ppu2c0x_render( const device_config *device, bitmap_t *bitmap, int flipx, int flipy, int sx, int sy ) |
| 1317 | { |
| 1318 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1319 | copybitmap( bitmap, this_ppu->bitmap, flipx, flipy, sx, sy, 0 ); |
| 1332 | 1320 | } |
| 1333 | 1321 | |
| 1334 | 1322 | /************************************* |
| r4499 | r4500 | |
| 1336 | 1324 | * PPU VideoROM banking |
| 1337 | 1325 | * |
| 1338 | 1326 | *************************************/ |
| 1339 | | void ppu2c0x_set_videorom_bank( int num, int start_page, int num_pages, int bank, int bank_size ) |
| 1327 | void ppu2c0x_set_videorom_bank( const device_config *device, int start_page, int num_pages, int bank, int bank_size ) |
| 1340 | 1328 | { |
| 1329 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1330 | const ppu2c0x_interface *intf = get_interface(device); |
| 1341 | 1331 | int i; |
| 1342 | 1332 | |
| 1343 | | /* check bounds */ |
| 1344 | | if ( num >= intf->num ) |
| 1333 | if ( !this_ppu->has_videorom ) |
| 1345 | 1334 | { |
| 1346 | | logerror( "PPU(set vrom bank): Attempting to access an unmapped chip\n" ); |
| 1347 | | return; |
| 1348 | | } |
| 1349 | | |
| 1350 | | if ( !chips[num].has_videorom ) |
| 1351 | | { |
| 1352 | 1335 | logerror( "PPU(set vrom bank): Attempting to switch videorom banks and no rom is mapped\n" ); |
| 1353 | 1336 | return; |
| 1354 | 1337 | } |
| 1355 | 1338 | |
| 1356 | | bank &= ( chips[num].videorom_banks * ( CHARGEN_NUM_CHARS / bank_size ) ) - 1; |
| 1339 | bank &= ( this_ppu->videorom_banks * ( CHARGEN_NUM_CHARS / bank_size ) ) - 1; |
| 1357 | 1340 | |
| 1358 | | if (chips[num].has_videoram) |
| 1341 | if (this_ppu->has_videoram) |
| 1359 | 1342 | { |
| 1360 | 1343 | for ( i = start_page; i < start_page + num_pages; i++ ) |
| 1361 | 1344 | { |
| 1362 | 1345 | int elemnum; |
| 1363 | 1346 | |
| 1364 | | if ( chips[num].videoram_banks_indices[i] != -1 ) |
| 1347 | if ( this_ppu->videoram_banks_indices[i] != -1 ) |
| 1365 | 1348 | { |
| 1366 | | memcpy( &chips[num].videoram[chips[num].videoram_banks_indices[i]*0x400], &chips[num].videomem[i*0x400], 0x400); |
| 1349 | memcpy( &this_ppu->videoram[this_ppu->videoram_banks_indices[i]*0x400], &this_ppu->videomem[i*0x400], 0x400); |
| 1367 | 1350 | } |
| 1368 | | chips[num].videoram_banks_indices[i] = -1; |
| 1351 | this_ppu->videoram_banks_indices[i] = -1; |
| 1369 | 1352 | for (elemnum = 0; elemnum < (num_pages*0x400 >> 4); elemnum++) |
| 1370 | | gfx_element_mark_dirty(chips[num].machine->gfx[intf->gfx_layout_number[num]], (start_page*0x400 >> 4) + elemnum); |
| 1353 | gfx_element_mark_dirty(device->machine->gfx[intf->gfx_layout_number], (start_page*0x400 >> 4) + elemnum); |
| 1371 | 1354 | } |
| 1372 | 1355 | } |
| 1373 | 1356 | else |
| 1374 | 1357 | { |
| 1375 | 1358 | for( i = start_page; i < ( start_page + num_pages ); i++ ) |
| 1376 | | chips[num].nes_vram[i] = bank * bank_size + 64 * ( i - start_page ); |
| 1359 | this_ppu->nes_vram[i] = bank * bank_size + 64 * ( i - start_page ); |
| 1377 | 1360 | } |
| 1378 | 1361 | |
| 1379 | 1362 | { |
| r4499 | r4500 | |
| 1381 | 1364 | int count = num_pages * 0x400; |
| 1382 | 1365 | int rom_start = bank * bank_size * 16; |
| 1383 | 1366 | |
| 1384 | | memcpy( &chips[num].videomem[vram_start], &memory_region( chips[num].machine, intf->vrom_region[num] )[rom_start], count ); |
| 1367 | memcpy( &this_ppu->videomem[vram_start], &memory_region( device->machine, intf->vrom_region )[rom_start], count ); |
| 1385 | 1368 | } |
| 1386 | 1369 | } |
| 1387 | 1370 | |
| r4499 | r4500 | |
| 1390 | 1373 | * PPU VideoRAM banking |
| 1391 | 1374 | * |
| 1392 | 1375 | *************************************/ |
| 1393 | | void ppu2c0x_set_videoram_bank( int num, int start_page, int num_pages, int bank, int bank_size ) |
| 1376 | |
| 1377 | void ppu2c0x_set_videoram_bank( const device_config *device, int start_page, int num_pages, int bank, int bank_size ) |
| 1394 | 1378 | { |
| 1379 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1380 | const ppu2c0x_interface *intf = get_interface(device); |
| 1395 | 1381 | int i; |
| 1396 | 1382 | |
| 1397 | | /* check bounds */ |
| 1398 | | if ( num >= intf->num ) |
| 1383 | if ( !this_ppu->has_videoram ) |
| 1399 | 1384 | { |
| 1400 | | logerror( "PPU(set vrom bank): Attempting to access an unmapped chip\n" ); |
| 1401 | | return; |
| 1402 | | } |
| 1403 | | |
| 1404 | | if ( !chips[num].has_videoram ) |
| 1405 | | { |
| 1406 | 1385 | logerror( "PPU(set vram bank): Attempting to switch videoram banks and no ram is mapped\n" ); |
| 1407 | 1386 | return; |
| 1408 | 1387 | } |
| r4499 | r4500 | |
| 1412 | 1391 | for ( i = start_page; i < start_page + num_pages; i++ ) |
| 1413 | 1392 | { |
| 1414 | 1393 | int elemnum; |
| 1415 | | if ( chips[num].videoram_banks_indices[i] != -1 ) |
| 1394 | if ( this_ppu->videoram_banks_indices[i] != -1 ) |
| 1416 | 1395 | { |
| 1417 | | memcpy( &chips[num].videoram[chips[num].videoram_banks_indices[i]*0x400], &chips[num].videomem[i*0x400], 0x400); |
| 1396 | memcpy( &this_ppu->videoram[this_ppu->videoram_banks_indices[i]*0x400], &this_ppu->videomem[i*0x400], 0x400); |
| 1418 | 1397 | } |
| 1419 | | chips[num].videoram_banks_indices[i] = (bank * bank_size * 16)/0x400 + (i - start_page); |
| 1398 | this_ppu->videoram_banks_indices[i] = (bank * bank_size * 16)/0x400 + (i - start_page); |
| 1420 | 1399 | for (elemnum = 0; elemnum < (num_pages*0x400 >> 4); elemnum++) |
| 1421 | | gfx_element_mark_dirty(chips[num].machine->gfx[intf->gfx_layout_number[num]], (start_page*0x400 >> 4) + elemnum); |
| 1400 | gfx_element_mark_dirty(device->machine->gfx[intf->gfx_layout_number], (start_page*0x400 >> 4) + elemnum); |
| 1422 | 1401 | } |
| 1423 | 1402 | |
| 1424 | 1403 | { |
| r4499 | r4500 | |
| 1427 | 1406 | int ram_start = bank * bank_size * 16; |
| 1428 | 1407 | |
| 1429 | 1408 | logerror( "ppu2c0x_set_videoram_bank: vram_start = %04x, count = %04x, ram_start = %04x\n", vram_start, count, ram_start ); |
| 1430 | | memcpy( &chips[num].videomem[vram_start], &chips[num].videoram[ram_start], count ); |
| 1409 | memcpy( &this_ppu->videomem[vram_start], &this_ppu->videoram[ram_start], count ); |
| 1431 | 1410 | } |
| 1432 | 1411 | } |
| 1433 | 1412 | |
| r4499 | r4500 | |
| 1436 | 1415 | * Utility functions |
| 1437 | 1416 | * |
| 1438 | 1417 | *************************************/ |
| 1439 | | int ppu2c0x_get_pixel( int num, int x, int y ) |
| 1418 | |
| 1419 | int ppu2c0x_get_pixel( const device_config *device, int x, int y ) |
| 1440 | 1420 | { |
| 1441 | | /* check bounds */ |
| 1442 | | if ( num >= intf->num ) |
| 1443 | | { |
| 1444 | | logerror( "PPU(get_pixel): Attempting to access an unmapped chip\n" ); |
| 1445 | | return 0; |
| 1446 | | } |
| 1421 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1447 | 1422 | |
| 1448 | 1423 | if ( x >= VISIBLE_SCREEN_WIDTH ) |
| 1449 | 1424 | x = VISIBLE_SCREEN_WIDTH - 1; |
| r4499 | r4500 | |
| 1451 | 1426 | if ( y >= VISIBLE_SCREEN_HEIGHT ) |
| 1452 | 1427 | y = VISIBLE_SCREEN_HEIGHT - 1; |
| 1453 | 1428 | |
| 1454 | | return *BITMAP_ADDR16(chips[num].bitmap, y, x); |
| 1429 | return *BITMAP_ADDR16(this_ppu->bitmap, y, x); |
| 1455 | 1430 | } |
| 1456 | 1431 | |
| 1457 | | int ppu2c0x_get_colorbase( int num ) |
| 1432 | int ppu2c0x_get_colorbase( const device_config *device ) |
| 1458 | 1433 | { |
| 1459 | | /* check bounds */ |
| 1460 | | if ( num >= intf->num ) |
| 1461 | | { |
| 1462 | | logerror( "PPU(get_colorbase): Attempting to access an unmapped chip\n" ); |
| 1463 | | return 0; |
| 1464 | | } |
| 1465 | | |
| 1466 | | return intf->color_base[num]; |
| 1434 | const ppu2c0x_interface *intf = get_interface(device); |
| 1435 | return intf->color_base; |
| 1467 | 1436 | } |
| 1468 | 1437 | |
| 1469 | | int ppu2c0x_get_current_scanline( int num ) |
| 1438 | int ppu2c0x_get_current_scanline( const device_config *device ) |
| 1470 | 1439 | { |
| 1471 | | /* check bounds */ |
| 1472 | | if ( num >= intf->num ) |
| 1473 | | { |
| 1474 | | logerror( "PPU(get_colorbase): Attempting to access an unmapped chip\n" ); |
| 1475 | | return 0; |
| 1476 | | } |
| 1477 | | |
| 1478 | | return chips[num].scanline; |
| 1440 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1441 | return this_ppu->scanline; |
| 1479 | 1442 | } |
| 1480 | 1443 | |
| 1481 | | void ppu2c0x_set_mirroring( int num, int mirroring ) |
| 1444 | void ppu2c0x_set_mirroring( const device_config *device, int mirroring ) |
| 1482 | 1445 | { |
| 1483 | | ppu2c0x_chip* this_ppu; |
| 1446 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1484 | 1447 | |
| 1485 | | /* check bounds */ |
| 1486 | | if ( num >= intf->num ) |
| 1487 | | { |
| 1488 | | logerror( "PPU %d: Attempting to access an unmapped chip\n", num ); |
| 1489 | | return; |
| 1490 | | } |
| 1491 | | |
| 1492 | | this_ppu = &chips[num]; |
| 1493 | | |
| 1494 | 1448 | // Once we've set 4-screen mirroring, do not change. Some games |
| 1495 | 1449 | // (notably Gauntlet) use mappers that can change the mirroring |
| 1496 | 1450 | // state, but are also hard-coded for 4-screen VRAM. |
| r4499 | r4500 | |
| 1541 | 1495 | this_ppu->mirror_state = mirroring; |
| 1542 | 1496 | } |
| 1543 | 1497 | |
| 1544 | | #ifdef UNUSED_FUNCTION |
| 1545 | | void ppu2c0x_set_nmi_callback( int num, ppu2c0x_nmi_cb cb ) |
| 1498 | void ppu2c0x_set_scanline_callback( const device_config *device, ppu2c0x_scanline_cb cb ) |
| 1546 | 1499 | { |
| 1547 | | /* check bounds */ |
| 1548 | | if ( num >= intf->num ) |
| 1549 | | { |
| 1550 | | logerror( "PPU(set_nmi_callback): Attempting to access an unmapped chip\n" ); |
| 1551 | | return; |
| 1552 | | } |
| 1500 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1501 | this_ppu->scanline_callback_proc = cb; |
| 1502 | } |
| 1553 | 1503 | |
| 1554 | | intf->nmi_handler[num] = cb; |
| 1504 | void ppu2c0x_set_hblank_callback( const device_config *device, ppu2c0x_hblank_cb cb ) |
| 1505 | { |
| 1506 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1507 | this_ppu->hblank_callback_proc = cb; |
| 1555 | 1508 | } |
| 1556 | | #endif |
| 1557 | 1509 | |
| 1558 | | void ppu2c0x_set_scanline_callback( int num, ppu2c0x_scanline_cb cb ) |
| 1510 | void ppu2c0x_set_vidaccess_callback( const device_config *device, ppu2c0x_vidaccess_cb cb ) |
| 1559 | 1511 | { |
| 1560 | | /* check bounds */ |
| 1561 | | if ( num >= intf->num ) |
| 1562 | | { |
| 1563 | | logerror( "PPU(set_scanline_callback): Attempting to access an unmapped chip\n" ); |
| 1564 | | return; |
| 1565 | | } |
| 1512 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1513 | this_ppu->vidaccess_callback_proc = cb; |
| 1514 | } |
| 1566 | 1515 | |
| 1567 | | chips[num].scanline_callback_proc = cb; |
| 1516 | void ppu2c0x_set_scanlines_per_frame( const device_config *device, int scanlines ) |
| 1517 | { |
| 1518 | ppu2c0x_chip *this_ppu = get_token(device); |
| 1519 | this_ppu->scanlines_per_frame = scanlines; |
| 1568 | 1520 | } |
| 1569 | 1521 | |
| 1570 | | void ppu2c0x_set_hblank_callback( int num, ppu2c0x_hblank_cb cb ) |
| 1522 | |
| 1523 | /*************************************************************************** |
| 1524 | GET INFO FUNCTIONS |
| 1525 | ***************************************************************************/ |
| 1526 | |
| 1527 | DEVICE_GET_INFO(ppu2c02) |
| 1571 | 1528 | { |
| 1572 | | /* check bounds */ |
| 1573 | | if ( num >= intf->num ) |
| 1529 | switch (state) |
| 1574 | 1530 | { |
| 1575 | | logerror( "PPU(set_scanline_callback): Attempting to access an unmapped chip\n" ); |
| 1576 | | return; |
| 1577 | | } |
| 1531 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1532 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(ppu2c0x_chip); break; |
| 1533 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break; |
| 1534 | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break; |
| 1535 | case PPU2C0XINFO_INT_SCANLINES_PER_FRAME: info->i = PPU_NTSC_SCANLINES_PER_FRAME; break; |
| 1578 | 1536 | |
| 1579 | | chips[num].hblank_callback_proc = cb; |
| 1537 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1538 | case DEVINFO_FCT_SET_INFO: /* Nothing */ break; |
| 1539 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(ppu2c0x); break; |
| 1540 | case DEVINFO_FCT_STOP: /* Nothing */ break; |
| 1541 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(ppu2c0x); break; |
| 1542 | |
| 1543 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1544 | case DEVINFO_STR_NAME: strcpy(info->s, "2C02 PPU"); break; |
| 1545 | case DEVINFO_STR_FAMILY: strcpy(info->s, "2C0X PPU"); break; |
| 1546 | case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; |
| 1547 | case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; |
| 1548 | case DEVINFO_STR_CREDITS: /* Nothing */ break; |
| 1549 | } |
| 1580 | 1550 | } |
| 1581 | 1551 | |
| 1582 | | void ppu2c0x_set_vidaccess_callback( int num, ppu2c0x_vidaccess_cb cb ) |
| 1552 | DEVICE_GET_INFO(ppu2c03b) |
| 1583 | 1553 | { |
| 1584 | | /* check bounds */ |
| 1585 | | if ( num >= intf->num ) |
| 1554 | switch (state) |
| 1586 | 1555 | { |
| 1587 | | logerror( "PPU(set_vidaccess_callback): Attempting to access an unmapped chip\n" ); |
| 1588 | | return; |
| 1556 | case DEVINFO_STR_NAME: strcpy(info->s, "2C02B PPU"); break; |
| 1557 | case PPU2C0XINFO_INT_SCANLINES_PER_FRAME: info->i = PPU_NTSC_SCANLINES_PER_FRAME; break; |
| 1558 | default: DEVICE_GET_INFO_CALL(ppu2c02); break; |
| 1589 | 1559 | } |
| 1590 | | |
| 1591 | | chips[num].vidaccess_callback_proc = cb; |
| 1592 | 1560 | } |
| 1593 | 1561 | |
| 1594 | | void ppu2c0x_set_scanlines_per_frame( int num, int scanlines ) |
| 1562 | DEVICE_GET_INFO(ppu2c04) |
| 1595 | 1563 | { |
| 1596 | | /* check bounds */ |
| 1597 | | if ( num >= intf->num ) |
| 1564 | switch (state) |
| 1598 | 1565 | { |
| 1599 | | logerror( "PPU(set_scanlines_per_frame): Attempting to access an unmapped chip\n" ); |
| 1600 | | return; |
| 1566 | case DEVINFO_STR_NAME: strcpy(info->s, "2C04 PPU"); break; |
| 1567 | case PPU2C0XINFO_INT_SCANLINES_PER_FRAME: info->i = PPU_NTSC_SCANLINES_PER_FRAME; break; |
| 1568 | default: DEVICE_GET_INFO_CALL(ppu2c02); break; |
| 1601 | 1569 | } |
| 1602 | | |
| 1603 | | chips[num].scanlines_per_frame = scanlines; |
| 1604 | 1570 | } |
| 1605 | 1571 | |
| 1606 | | /************************************* |
| 1607 | | * |
| 1608 | | * Accesors |
| 1609 | | * |
| 1610 | | *************************************/ |
| 1611 | | |
| 1612 | | READ8_HANDLER( ppu2c0x_0_r ) |
| 1572 | DEVICE_GET_INFO(ppu2c05) |
| 1613 | 1573 | { |
| 1614 | | return ppu2c0x_r( space, offset, 0 ); |
| 1574 | switch (state) |
| 1575 | { |
| 1576 | case DEVINFO_STR_NAME: strcpy(info->s, "2C05 PPU"); break; |
| 1577 | case PPU2C0XINFO_INT_SCANLINES_PER_FRAME: info->i = PPU_NTSC_SCANLINES_PER_FRAME; break; |
| 1578 | default: DEVICE_GET_INFO_CALL(ppu2c02); break; |
| 1579 | } |
| 1615 | 1580 | } |
| 1616 | 1581 | |
| 1617 | | READ8_HANDLER( ppu2c0x_1_r ) |
| 1582 | DEVICE_GET_INFO(ppu2c07) |
| 1618 | 1583 | { |
| 1619 | | return ppu2c0x_r( space, offset, 1 ); |
| 1584 | switch (state) |
| 1585 | { |
| 1586 | case DEVINFO_STR_NAME: strcpy(info->s, "2C07 PPU"); break; |
| 1587 | case PPU2C0XINFO_INT_SCANLINES_PER_FRAME: info->i = PPU_PAL_SCANLINES_PER_FRAME; break; |
| 1588 | default: DEVICE_GET_INFO_CALL(ppu2c02); break; |
| 1589 | } |
| 1620 | 1590 | } |
| 1621 | | |
| 1622 | | WRITE8_HANDLER( ppu2c0x_0_w ) |
| 1623 | | { |
| 1624 | | ppu2c0x_w( space, offset, data, 0 ); |
| 1625 | | } |
| 1626 | | |
| 1627 | | WRITE8_HANDLER( ppu2c0x_1_w ) |
| 1628 | | { |
| 1629 | | ppu2c0x_w( space, offset, data, 1 ); |
| 1630 | | } |
src/mame/drivers/system1.c
| r4499 | r4500 | |
| 4 | 4 | |
| 5 | 5 | driver by Jarek Parchanski, Nicola Salmoria, Mirko Buffoni |
| 6 | 6 | |
| 7 | | |
| 8 | | Issues: |
| 9 | | * pitfall2 - missing title |
| 10 | | |
| 11 | | |
| 12 | 7 | Up'n Down, Mister Viking, Flicky, SWAT, Water Match and Bull Fight are known |
| 13 | 8 | to run on IDENTICAL hardware (they were sold by Bally-Midway as ROM swaps). |
| 14 | 9 | |
| r4499 | r4500 | |
| 233 | 228 | count is 11, which means the clock is divided by 5. |
| 234 | 229 | |
| 235 | 230 | To account for this, we install custom cycle tables for the Z80. We clock the Z80 |
| 236 | | at 20MHz and count 5 cycles for each original Z80 cycle, plus an extra cycle for |
| 237 | | each opcode fetch. |
| 231 | at 20MHz and count 5 cycles for each original Z80 cycle, plus an extra 2 cycles for |
| 232 | each opcode fetch (since the M1 line is low for 2 cycles per byte). |
| 238 | 233 | */ |
| 239 | 234 | |
| 240 | 235 | static const UINT8 cc_op[0x100] = { |
| 241 | | 4*5+1,10*5+3, 7*5+1, 6*5+1, 4*5+1, 4*5+1, 7*5+2, 4*5+1, 4*5+1,11*5+1, 7*5+1, 6*5+1, 4*5+1, 4*5+1, 7*5+2, 4*5+1, |
| 242 | | 8*5+2,10*5+3, 7*5+1, 6*5+1, 4*5+1, 4*5+1, 7*5+2, 4*5+1,12*5+2,11*5+1, 7*5+1, 6*5+1, 4*5+1, 4*5+1, 7*5+2, 4*5+1, |
| 243 | | 7*5+2,10*5+3,16*5+3, 6*5+1, 4*5+1, 4*5+1, 7*5+2, 4*5+1, 7*5+2,11*5+1,16*5+3, 6*5+1, 4*5+1, 4*5+1, 7*5+2, 4*5+1, |
| 244 | | 7*5+2,10*5+3,13*5+3, 6*5+1,11*5+1,11*5+1,10*5+2, 4*5+1, 7*5+2,11*5+1,13*5+3, 6*5+1, 4*5+1, 4*5+1, 7*5+2, 4*5+1, |
| 245 | | 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, |
| 246 | | 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, |
| 247 | | 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, |
| 248 | | 7*5+1, 7*5+1, 7*5+1, 7*5+1, 7*5+1, 7*5+1, 4*5+1, 7*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, |
| 249 | | 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, |
| 250 | | 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, |
| 251 | | 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, |
| 252 | | 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 4*5+1, 7*5+1, 4*5+1, |
| 253 | | 5*5+1,10*5+1,10*5+3,10*5+3,10*5+3,11*5+1, 7*5+2,11*5+1, 5*5+1,10*5+1,10*5+3, 0*5+1,10*5+3,17*5+3, 7*5+2,11*5+1, |
| 254 | | 5*5+1,10*5+1,10*5+3,11*5+2,10*5+3,11*5+1, 7*5+2,11*5+1, 5*5+1, 4*5+1,10*5+3,11*5+2,10*5+3, 0*5 , 7*5+2,11*5+1, |
| 255 | | 5*5+1,10*5+1,10*5+3,19*5+1,10*5+3,11*5+1, 7*5+2,11*5+1, 5*5+1, 4*5+1,10*5+3, 4*5+1,10*5+3, 0*5 , 7*5+2,11*5+1, |
| 256 | | 5*5+1,10*5+1,10*5+3, 4*5+1,10*5+3,11*5+1, 7*5+2,11*5+1, 5*5+1, 6*5+1,10*5+3, 4*5+1,10*5+3, 0*5 , 7*5+2,11*5+1}; |
| 236 | 4*5+1*2,10*5+3*2, 7*5+1*2, 6*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+2*2, 4*5+1*2, 4*5+1*2,11*5+1*2, 7*5+1*2, 6*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+2*2, 4*5+1*2, |
| 237 | 8*5+2*2,10*5+3*2, 7*5+1*2, 6*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+2*2, 4*5+1*2,12*5+2*2,11*5+1*2, 7*5+1*2, 6*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+2*2, 4*5+1*2, |
| 238 | 7*5+2*2,10*5+3*2,16*5+3*2, 6*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+2*2, 4*5+1*2, 7*5+2*2,11*5+1*2,16*5+3*2, 6*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+2*2, 4*5+1*2, |
| 239 | 7*5+2*2,10*5+3*2,13*5+3*2, 6*5+1*2,11*5+1*2,11*5+1*2,10*5+2*2, 4*5+1*2, 7*5+2*2,11*5+1*2,13*5+3*2, 6*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+2*2, 4*5+1*2, |
| 240 | 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, |
| 241 | 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, |
| 242 | 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, |
| 243 | 7*5+1*2, 7*5+1*2, 7*5+1*2, 7*5+1*2, 7*5+1*2, 7*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, |
| 244 | 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, |
| 245 | 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, |
| 246 | 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, |
| 247 | 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 4*5+1*2, 7*5+1*2, 4*5+1*2, |
| 248 | 5*5+1*2,10*5+1*2,10*5+3*2,10*5+3*2,10*5+3*2,11*5+1*2, 7*5+2*2,11*5+1*2, 5*5+1*2,10*5+1*2,10*5+3*2, 0*5+1*2,10*5+3*2,17*5+3*2, 7*5+2*2,11*5+1*2, |
| 249 | 5*5+1*2,10*5+1*2,10*5+3*2,11*5+2*2,10*5+3*2,11*5+1*2, 7*5+2*2,11*5+1*2, 5*5+1*2, 4*5+1*2,10*5+3*2,11*5+2*2,10*5+3*2, 0*5 , 7*5+2*2,11*5+1*2, |
| 250 | 5*5+1*2,10*5+1*2,10*5+3*2,19*5+1*2,10*5+3*2,11*5+1*2, 7*5+2*2,11*5+1*2, 5*5+1*2, 4*5+1*2,10*5+3*2, 4*5+1*2,10*5+3*2, 0*5 , 7*5+2*2,11*5+1*2, |
| 251 | 5*5+1*2,10*5+1*2,10*5+3*2, 4*5+1*2,10*5+3*2,11*5+1*2, 7*5+2*2,11*5+1*2, 5*5+1*2, 6*5+1*2,10*5+3*2, 4*5+1*2,10*5+3*2, 0*5 , 7*5+2*2,11*5+1*2}; |
| 257 | 252 | |
| 258 | 253 | static const UINT8 cc_cb[0x100] = { |
| 259 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 260 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 261 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 262 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 263 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,12*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,12*5+2, 8*5+2, |
| 264 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,12*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,12*5+2, 8*5+2, |
| 265 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,12*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,12*5+2, 8*5+2, |
| 266 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,12*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,12*5+2, 8*5+2, |
| 267 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 268 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 269 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 270 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 271 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 272 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 273 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, |
| 274 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,15*5+2, 8*5+2}; |
| 254 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 255 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 256 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 257 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 258 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2, 8*5+2*2, |
| 259 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2, 8*5+2*2, |
| 260 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2, 8*5+2*2, |
| 261 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2, 8*5+2*2, |
| 262 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 263 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 264 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 265 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 266 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 267 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 268 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, |
| 269 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,15*5+2*2, 8*5+2*2}; |
| 275 | 270 | |
| 276 | 271 | static const UINT8 cc_ed[0x100] = { |
| 277 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 278 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 279 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 280 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 281 | | 12*5+2,12*5+2,15*5+2,20*5+4, 8*5+2,14*5+2, 8*5+2, 9*5+2,12*5+2,12*5+2,15*5+2,20*5+4, 8*5+2,14*5+2, 8*5+2, 9*5+2, |
| 282 | | 12*5+2,12*5+2,15*5+2,20*5+4, 8*5+2,14*5+2, 8*5+2, 9*5+2,12*5+2,12*5+2,15*5+2,20*5+4, 8*5+2,14*5+2, 8*5+2, 9*5+2, |
| 283 | | 12*5+2,12*5+2,15*5+2,20*5+4, 8*5+2,14*5+2, 8*5+2,18*5+2,12*5+2,12*5+2,15*5+2,20*5+4, 8*5+2,14*5+2, 8*5+2,18*5+2, |
| 284 | | 12*5+2,12*5+2,15*5+2,20*5+4, 8*5+2,14*5+2, 8*5+2, 8*5+2,12*5+2,12*5+2,15*5+2,20*5+4, 8*5+2,14*5+2, 8*5+2, 8*5+2, |
| 285 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 286 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 287 | | 16*5+2,16*5+2,16*5+2,16*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,16*5+2,16*5+2,16*5+2,16*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 288 | | 16*5+2,16*5+2,16*5+2,16*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2,16*5+2,16*5+2,16*5+2,16*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 289 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 290 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 291 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, |
| 292 | | 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2, 8*5+2}; |
| 272 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 273 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 274 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 275 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 276 | 12*5+2*2,12*5+2*2,15*5+2*2,20*5+4*2, 8*5+2*2,14*5+2*2, 8*5+2*2, 9*5+2*2,12*5+2*2,12*5+2*2,15*5+2*2,20*5+4*2, 8*5+2*2,14*5+2*2, 8*5+2*2, 9*5+2*2, |
| 277 | 12*5+2*2,12*5+2*2,15*5+2*2,20*5+4*2, 8*5+2*2,14*5+2*2, 8*5+2*2, 9*5+2*2,12*5+2*2,12*5+2*2,15*5+2*2,20*5+4*2, 8*5+2*2,14*5+2*2, 8*5+2*2, 9*5+2*2, |
| 278 | 12*5+2*2,12*5+2*2,15*5+2*2,20*5+4*2, 8*5+2*2,14*5+2*2, 8*5+2*2,18*5+2*2,12*5+2*2,12*5+2*2,15*5+2*2,20*5+4*2, 8*5+2*2,14*5+2*2, 8*5+2*2,18*5+2*2, |
| 279 | 12*5+2*2,12*5+2*2,15*5+2*2,20*5+4*2, 8*5+2*2,14*5+2*2, 8*5+2*2, 8*5+2*2,12*5+2*2,12*5+2*2,15*5+2*2,20*5+4*2, 8*5+2*2,14*5+2*2, 8*5+2*2, 8*5+2*2, |
| 280 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 281 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 282 | 16*5+2*2,16*5+2*2,16*5+2*2,16*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,16*5+2*2,16*5+2*2,16*5+2*2,16*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 283 | 16*5+2*2,16*5+2*2,16*5+2*2,16*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2,16*5+2*2,16*5+2*2,16*5+2*2,16*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 284 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 285 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 286 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, |
| 287 | 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2, 8*5+2*2}; |
| 293 | 288 | |
| 294 | 289 | static const UINT8 cc_xy[0x100] = { |
| 295 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2,15*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, |
| 296 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2,15*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, |
| 297 | | 4*5+2,14*5+4,20*5+4,10*5+2, 9*5+2, 9*5+2, 9*5+3, 4*5+2, 4*5+2,15*5+2,20*5+4,10*5+2, 9*5+2, 9*5+2, 9*5+3, 4*5+2, |
| 298 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2,23*5+3,23*5+3,19*5+4, 4*5+2, 4*5+2,15*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, |
| 299 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, |
| 300 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, |
| 301 | | 9*5+2, 9*5+2, 9*5+2, 9*5+2, 9*5+2, 9*5+2,19*5+2, 9*5+2, 9*5+2, 9*5+2, 9*5+2, 9*5+2, 9*5+2, 9*5+2,19*5+2, 9*5+2, |
| 302 | | 19*5+3,19*5+3,19*5+3,19*5+3,19*5+3,19*5+3, 4*5+2,19*5+3, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, |
| 303 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, |
| 304 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, |
| 305 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, |
| 306 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 9*5+2, 9*5+2,19*5+3, 4*5+2, |
| 307 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 0*5 , 4*5+2, 4*5+2, 4*5+2, 4*5+2, |
| 308 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, |
| 309 | | 4*5+2,14*5+2, 4*5+2,23*5+2, 4*5+2,15*5+2, 4*5+2, 4*5+2, 4*5+2, 8*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, |
| 310 | | 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2,10*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2, 4*5+2}; |
| 290 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2,15*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, |
| 291 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2,15*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, |
| 292 | 4*5+2*2,14*5+4*2,20*5+4*2,10*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+3*2, 4*5+2*2, 4*5+2*2,15*5+2*2,20*5+4*2,10*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+3*2, 4*5+2*2, |
| 293 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2,23*5+3*2,23*5+3*2,19*5+4*2, 4*5+2*2, 4*5+2*2,15*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, |
| 294 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, |
| 295 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, |
| 296 | 9*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+2*2,19*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+2*2, 9*5+2*2,19*5+2*2, 9*5+2*2, |
| 297 | 19*5+3*2,19*5+3*2,19*5+3*2,19*5+3*2,19*5+3*2,19*5+3*2, 4*5+2*2,19*5+3*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, |
| 298 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, |
| 299 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, |
| 300 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, |
| 301 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 9*5+2*2, 9*5+2*2,19*5+3*2, 4*5+2*2, |
| 302 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 0*5 , 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, |
| 303 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, |
| 304 | 4*5+2*2,14*5+2*2, 4*5+2*2,23*5+2*2, 4*5+2*2,15*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 8*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, |
| 305 | 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2,10*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2, 4*5+2*2}; |
| 311 | 306 | |
| 312 | 307 | static const UINT8 cc_xycb[0x100] = { |
| 313 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 314 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 315 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 316 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 317 | | 20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4, |
| 318 | | 20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4, |
| 319 | | 20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4, |
| 320 | | 20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4,20*5+4, |
| 321 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 322 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 323 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 324 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 325 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 326 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 327 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4, |
| 328 | | 23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4,23*5+4}; |
| 308 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 309 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 310 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 311 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 312 | 20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2, |
| 313 | 20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2, |
| 314 | 20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2, |
| 315 | 20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2,20*5+4*2, |
| 316 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 317 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 318 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 319 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 320 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 321 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 322 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2, |
| 323 | 23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2,23*5+4*2}; |
| 329 | 324 | |
| 330 | 325 | /* extra cycles if jr/jp/call taken and 'interrupt latency' on rst 0-7 */ |
| 331 | 326 | static const UINT8 cc_ex[0x100] = { |
| r4499 | r4500 | |
| 2022 | 2017 | MDRV_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE) /* needed for proper hardware collisions */ |
| 2023 | 2018 | |
| 2024 | 2019 | MDRV_SCREEN_ADD("screen", RASTER) |
| 2025 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 2026 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 2027 | 2020 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2028 | | MDRV_SCREEN_SIZE(256, 256) |
| 2029 | | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 28*8-1) |
| 2021 | MDRV_SCREEN_RAW_PARAMS(MASTER_CLOCK/4, 320, 0, 256, 260, 0, 224) |
| 2030 | 2022 | |
| 2031 | 2023 | MDRV_GFXDECODE(system1) |
| 2032 | 2024 | MDRV_PALETTE_LENGTH(2048) |
| r4499 | r4500 | |
| 2078 | 2070 | |
| 2079 | 2071 | |
| 2080 | 2072 | |
| 2081 | | /* main CPU hacked speed */ |
| 2082 | | static MACHINE_DRIVER_START( pitfall2 ) |
| 2083 | | MDRV_IMPORT_FROM( sys1pio ) |
| 2084 | | |
| 2085 | | /* basic machine hardware */ |
| 2086 | | MDRV_CPU_REPLACE( "maincpu", Z80, 3600000 )/* should be 4 MHz but that value makes the title screen disappear */ |
| 2087 | | MACHINE_DRIVER_END |
| 2088 | | |
| 2089 | 2073 | /* alternate program map with RAM/collision swapped */ |
| 2090 | 2074 | static MACHINE_DRIVER_START( nob ) |
| 2091 | | MDRV_IMPORT_FROM( sys1ppis ) |
| 2075 | MDRV_IMPORT_FROM( sys1ppi ) |
| 2092 | 2076 | |
| 2093 | 2077 | /* basic machine hardware */ |
| 2094 | 2078 | MDRV_CPU_MODIFY("maincpu") |
| r4499 | r4500 | |
| 2106 | 2090 | MDRV_VIDEO_UPDATE(system2) |
| 2107 | 2091 | MACHINE_DRIVER_END |
| 2108 | 2092 | |
| 2109 | | /* system 2 with small screen */ |
| 2110 | | static MACHINE_DRIVER_START( sys2s ) |
| 2111 | | MDRV_IMPORT_FROM( sys2 ) |
| 2112 | | |
| 2113 | | /* video hardware */ |
| 2114 | | MDRV_SCREEN_MODIFY("screen") |
| 2115 | | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 27*8-1) |
| 2116 | | MACHINE_DRIVER_END |
| 2117 | | |
| 2118 | 2093 | /* system2 with rowscroll */ |
| 2119 | 2094 | static MACHINE_DRIVER_START( sys2row ) |
| 2120 | 2095 | MDRV_IMPORT_FROM( sys2 ) |
| r4499 | r4500 | |
| 2123 | 2098 | MDRV_VIDEO_UPDATE(system2_rowscroll) |
| 2124 | 2099 | MACHINE_DRIVER_END |
| 2125 | 2100 | |
| 2126 | | /* rowscroll with small screen */ |
| 2127 | | static MACHINE_DRIVER_START( sys2rows ) |
| 2128 | | MDRV_IMPORT_FROM( sys2row ) |
| 2129 | 2101 | |
| 2130 | | /* video hardware */ |
| 2131 | | MDRV_SCREEN_MODIFY("screen") |
| 2132 | | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 1*8, 27*8-1) |
| 2133 | | MACHINE_DRIVER_END |
| 2134 | 2102 | |
| 2135 | | |
| 2136 | | |
| 2137 | 2103 | /************************************* |
| 2138 | 2104 | * |
| 2139 | 2105 | * ROM definition(s) |
| r4499 | r4500 | |
| 2167 | 2133 | ROM_LOAD( "epr-5319.93", 0x4000, 0x4000, CRC(ebee4999) SHA1(bb331be270dc1da63699533d9f02d73ce28f1bc5) ) |
| 2168 | 2134 | |
| 2169 | 2135 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2170 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2136 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2171 | 2137 | ROM_END |
| 2172 | 2138 | |
| 2173 | 2139 | ROM_START( starjacks ) |
| r4499 | r4500 | |
| 2195 | 2161 | ROM_LOAD( "a1_ic93.93", 0x4000, 0x4000, CRC(07987244) SHA1(8468b95684b1f62c6de6af1b1d405bfb333e4e26) ) |
| 2196 | 2162 | |
| 2197 | 2163 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2198 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2164 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2199 | 2165 | ROM_END |
| 2200 | 2166 | |
| 2201 | 2167 | |
| r4499 | r4500 | |
| 2224 | 2190 | ROM_LOAD( "epr-5515.93", 0x4000, 0x4000, CRC(60908838) SHA1(aedff8ce07ab16942037e5aff212652e51c19e71) ) |
| 2225 | 2191 | |
| 2226 | 2192 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2227 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2193 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2228 | 2194 | ROM_END |
| 2229 | 2195 | |
| 2230 | 2196 | ROM_START( upndownu ) |
| r4499 | r4500 | |
| 2252 | 2218 | ROM_LOAD( "epr-5515.93", 0x4000, 0x4000, CRC(60908838) SHA1(aedff8ce07ab16942037e5aff212652e51c19e71) ) |
| 2253 | 2219 | |
| 2254 | 2220 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2255 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2221 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2256 | 2222 | ROM_END |
| 2257 | 2223 | |
| 2258 | 2224 | |
| r4499 | r4500 | |
| 2281 | 2247 | ROM_LOAD( "epr-5639.93", 0x4000, 0x4000, CRC(a4ec5131) SHA1(033bf46d2625f99544a784fe3fa299cc1b1b48e1) ) |
| 2282 | 2248 | |
| 2283 | 2249 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2284 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2250 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2285 | 2251 | ROM_END |
| 2286 | 2252 | |
| 2287 | 2253 | ROM_START( reguluso ) |
| r4499 | r4500 | |
| 2309 | 2275 | ROM_LOAD( "epr-5639.93", 0x4000, 0x4000, CRC(a4ec5131) SHA1(033bf46d2625f99544a784fe3fa299cc1b1b48e1) ) |
| 2310 | 2276 | |
| 2311 | 2277 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2312 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2278 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2313 | 2279 | ROM_END |
| 2314 | 2280 | |
| 2315 | 2281 | ROM_START( regulusu ) |
| r4499 | r4500 | |
| 2337 | 2303 | ROM_LOAD( "epr-5639.93", 0x4000, 0x4000, CRC(a4ec5131) SHA1(033bf46d2625f99544a784fe3fa299cc1b1b48e1) ) |
| 2338 | 2304 | |
| 2339 | 2305 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2340 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2306 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2341 | 2307 | ROM_END |
| 2342 | 2308 | |
| 2343 | 2309 | |
| r4499 | r4500 | |
| 2366 | 2332 | ROM_LOAD( "epr-5750.93", 0x4000, 0x4000, CRC(6564d1ad) SHA1(f246afee7e73bc30054b0e5dcb83fa0edd2d2164) ) |
| 2367 | 2333 | |
| 2368 | 2334 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2369 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2335 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2370 | 2336 | ROM_END |
| 2371 | 2337 | |
| 2372 | 2338 | ROM_START( mrvikingj ) |
| r4499 | r4500 | |
| 2394 | 2360 | ROM_LOAD( "epr-5750.93", 0x4000, 0x4000, CRC(6564d1ad) SHA1(f246afee7e73bc30054b0e5dcb83fa0edd2d2164) ) |
| 2395 | 2361 | |
| 2396 | 2362 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2397 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2363 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2398 | 2364 | ROM_END |
| 2399 | 2365 | |
| 2400 | 2366 | |
| r4499 | r4500 | |
| 2423 | 2389 | ROM_LOAD( "epr-5806.93", 0x4000, 0x4000, CRC(26ac258c) SHA1(e4e9f929ab8ae7da74f885481cf94335d7553a1c) ) |
| 2424 | 2390 | |
| 2425 | 2391 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2426 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2392 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2427 | 2393 | ROM_END |
| 2428 | 2394 | |
| 2429 | 2395 | |
| r4499 | r4500 | |
| 2448 | 2414 | ROM_LOAD( "epr-5856.110", 0x4000, 0x4000, CRC(266af78f) SHA1(dcbfce550d10a1f2b3ce3e7e081fc008cb575708) ) |
| 2449 | 2415 | |
| 2450 | 2416 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2451 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2417 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2452 | 2418 | ROM_END |
| 2453 | 2419 | |
| 2454 | 2420 | ROM_START( flickys2 ) |
| r4499 | r4500 | |
| 2472 | 2438 | ROM_LOAD( "epr-5856.110", 0x4000, 0x4000, CRC(266af78f) SHA1(dcbfce550d10a1f2b3ce3e7e081fc008cb575708) ) |
| 2473 | 2439 | |
| 2474 | 2440 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2475 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2441 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2476 | 2442 | ROM_END |
| 2477 | 2443 | |
| 2478 | 2444 | ROM_START( flickys1 ) |
| r4499 | r4500 | |
| 2498 | 2464 | ROM_LOAD( "epr-5856.110", 0x4000, 0x4000, CRC(266af78f) SHA1(dcbfce550d10a1f2b3ce3e7e081fc008cb575708) ) |
| 2499 | 2465 | |
| 2500 | 2466 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2501 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2467 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2502 | 2468 | ROM_END |
| 2503 | 2469 | |
| 2504 | 2470 | ROM_START( flickyo ) |
| r4499 | r4500 | |
| 2524 | 2490 | ROM_LOAD( "epr-5856.110", 0x4000, 0x4000, CRC(266af78f) SHA1(dcbfce550d10a1f2b3ce3e7e081fc008cb575708) ) |
| 2525 | 2491 | |
| 2526 | 2492 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2527 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2493 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2528 | 2494 | ROM_END |
| 2529 | 2495 | |
| 2530 | 2496 | |
| r4499 | r4500 | |
| 2553 | 2519 | ROM_LOAD( "wm.93", 0x4000, 0x4000, CRC(a2f19170) SHA1(47dacc380b09c6365c737d320145cedad54ecedb) ) |
| 2554 | 2520 | |
| 2555 | 2521 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2556 | | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2522 | ROM_LOAD( "pr-5317.106", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2557 | 2523 | ROM_END |
| 2558 | 2524 | |
| 2559 | 2525 | |
| r4499 | r4500 | |
| 2582 | 2548 | ROM_LOAD( "epr-6070.93", 0x4000, 0x4000, CRC(34f080df) SHA1(0e7d28e3325c8c3f06438fde29ea0ffe57fc325f) ) /* epr-6070.93 */ |
| 2583 | 2549 | |
| 2584 | 2550 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2585 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2551 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2586 | 2552 | /* pr-5317.106 */ |
| 2587 | 2553 | ROM_END |
| 2588 | 2554 | |
| r4499 | r4500 | |
| 2608 | 2574 | ROM_LOAD( "epr-6070.110", 0x4000, 0x4000, CRC(34f080df) SHA1(0e7d28e3325c8c3f06438fde29ea0ffe57fc325f) ) |
| 2609 | 2575 | |
| 2610 | 2576 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2611 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2577 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2612 | 2578 | ROM_END |
| 2613 | 2579 | |
| 2614 | 2580 | |
| r4499 | r4500 | |
| 2636 | 2602 | ROM_LOAD( "epr-6309.110", 0xc000, 0x4000, CRC(7423ad98) SHA1(e19b4c64795f30e1491520160d315e4148d58df2) ) |
| 2637 | 2603 | |
| 2638 | 2604 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2639 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2605 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2640 | 2606 | /* pr-5317.106 */ |
| 2641 | 2607 | ROM_END |
| 2642 | 2608 | |
| r4499 | r4500 | |
| 2664 | 2630 | ROM_LOAD( "epr-6309.110", 0xc000, 0x4000, CRC(7423ad98) SHA1(e19b4c64795f30e1491520160d315e4148d58df2) ) |
| 2665 | 2631 | |
| 2666 | 2632 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2667 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2633 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2668 | 2634 | /* pr-5317.106 */ |
| 2669 | 2635 | ROM_END |
| 2670 | 2636 | |
| r4499 | r4500 | |
| 2691 | 2657 | ROM_LOAD( "epr-6455.05", 0x4000, 0x4000, CRC(32ee64a1) SHA1(21743f78735fc9105fbbfac420bdaa2965b4b56f) ) |
| 2692 | 2658 | |
| 2693 | 2659 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2694 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2660 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2695 | 2661 | ROM_END |
| 2696 | 2662 | |
| 2697 | 2663 | ROM_START( pitfall2a ) |
| r4499 | r4500 | |
| 2716 | 2682 | ROM_LOAD( "epr-6455.05", 0x4000, 0x4000, CRC(32ee64a1) SHA1(21743f78735fc9105fbbfac420bdaa2965b4b56f) ) |
| 2717 | 2683 | |
| 2718 | 2684 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2719 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2685 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2720 | 2686 | ROM_END |
| 2721 | 2687 | |
| 2722 | 2688 | ROM_START( pitfall2u ) |
| r4499 | r4500 | |
| 2741 | 2707 | ROM_LOAD( "epr-6455.05", 0x4000, 0x4000, CRC(32ee64a1) SHA1(21743f78735fc9105fbbfac420bdaa2965b4b56f) ) |
| 2742 | 2708 | |
| 2743 | 2709 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2744 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2710 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2745 | 2711 | ROM_END |
| 2746 | 2712 | |
| 2747 | 2713 | |
| r4499 | r4500 | |
| 2769 | 2735 | ROM_LOAD( "epr-6549.05", 0xc000, 0x4000, CRC(d2057668) SHA1(ded2a04f7555eb3b1e4da57901ca00635de2c043) ) |
| 2770 | 2736 | |
| 2771 | 2737 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2772 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2738 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2773 | 2739 | ROM_END |
| 2774 | 2740 | |
| 2775 | 2741 | ROM_START( seganinju ) |
| r4499 | r4500 | |
| 2796 | 2762 | ROM_LOAD( "epr-6549.05", 0xc000, 0x4000, CRC(d2057668) SHA1(ded2a04f7555eb3b1e4da57901ca00635de2c043) ) |
| 2797 | 2763 | |
| 2798 | 2764 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2799 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2765 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2800 | 2766 | ROM_END |
| 2801 | 2767 | |
| 2802 | 2768 | ROM_START( nprinces ) |
| r4499 | r4500 | |
| 2826 | 2792 | ROM_LOAD( "epr-6549.05", 0xc000, 0x4000, CRC(d2057668) SHA1(ded2a04f7555eb3b1e4da57901ca00635de2c043) ) /* epr-6549.2 */ |
| 2827 | 2793 | |
| 2828 | 2794 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2829 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2795 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2830 | 2796 | /* pr-5317.106 */ |
| 2831 | 2797 | ROM_END |
| 2832 | 2798 | |
| r4499 | r4500 | |
| 2854 | 2820 | ROM_LOAD( "epr-6549.05", 0xc000, 0x4000, CRC(d2057668) SHA1(ded2a04f7555eb3b1e4da57901ca00635de2c043) ) |
| 2855 | 2821 | |
| 2856 | 2822 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2857 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2823 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2858 | 2824 | ROM_END |
| 2859 | 2825 | |
| 2860 | 2826 | ROM_START( nprincesu ) |
| r4499 | r4500 | |
| 2884 | 2850 | ROM_LOAD( "epr-6549.05", 0xc000, 0x4000, CRC(d2057668) SHA1(ded2a04f7555eb3b1e4da57901ca00635de2c043) ) /* epr-6549.2 */ |
| 2885 | 2851 | |
| 2886 | 2852 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2887 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2853 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2888 | 2854 | ROM_END |
| 2889 | 2855 | |
| 2890 | 2856 | ROM_START( nprincesb ) |
| r4499 | r4500 | |
| 2911 | 2877 | ROM_LOAD( "epr-6549.05", 0xc000, 0x4000, CRC(d2057668) SHA1(ded2a04f7555eb3b1e4da57901ca00635de2c043) ) |
| 2912 | 2878 | |
| 2913 | 2879 | ROM_REGION( 0x0220, "proms", 0 ) |
| 2914 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2880 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2915 | 2881 | ROM_LOAD( "nprinces.129", 0x0100, 0x0100, CRC(ae765f62) SHA1(9434b5a23d118a9c62015b479719826b38269cd4) ) /* decryption table (not used) */ |
| 2916 | 2882 | ROM_LOAD( "nprinces.123", 0x0200, 0x0020, CRC(ed5146e9) SHA1(7044035c07636e4029f4b746c1a92e15173869e9) ) /* decryption table (not used) */ |
| 2917 | 2883 | ROM_END |
| r4499 | r4500 | |
| 2940 | 2906 | ROM_LOAD( "epr-6549.05", 0xc000, 0x4000, CRC(d2057668) SHA1(ded2a04f7555eb3b1e4da57901ca00635de2c043) ) |
| 2941 | 2907 | |
| 2942 | 2908 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2943 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2909 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2944 | 2910 | ROM_END |
| 2945 | 2911 | |
| 2946 | 2912 | |
| r4499 | r4500 | |
| 2966 | 2932 | ROM_LOAD( "epr-6646.04", 0x4000, 0x4000, CRC(edda7ad6) SHA1(eef7dcde632787283c4cb522380b138060018204) ) |
| 2967 | 2933 | |
| 2968 | 2934 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2969 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2935 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2970 | 2936 | ROM_END |
| 2971 | 2937 | |
| 2972 | 2938 | ROM_START( imsorryj ) |
| r4499 | r4500 | |
| 2991 | 2957 | ROM_LOAD( "epr-6646.04", 0x4000, 0x4000, CRC(edda7ad6) SHA1(eef7dcde632787283c4cb522380b138060018204) ) |
| 2992 | 2958 | |
| 2993 | 2959 | ROM_REGION( 0x0100, "proms", 0 ) |
| 2994 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2960 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 2995 | 2961 | ROM_END |
| 2996 | 2962 | |
| 2997 | 2963 | |
| r4499 | r4500 | |
| 3019 | 2985 | ROM_LOAD( "epr-6738.05", 0xc000, 0x4000, CRC(e116285f) SHA1(b6fb50b02a981b3b23385200045ae537092d26d6) ) |
| 3020 | 2986 | |
| 3021 | 2987 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3022 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 2988 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3023 | 2989 | ROM_END |
| 3024 | 2990 | |
| 3025 | 2991 | ROM_START( teddybbo ) |
| r4499 | r4500 | |
| 3046 | 3012 | ROM_LOAD( "epr-6738.05", 0xc000, 0x4000, CRC(e116285f) SHA1(b6fb50b02a981b3b23385200045ae537092d26d6) ) |
| 3047 | 3013 | |
| 3048 | 3014 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3049 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3015 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3050 | 3016 | ROM_END |
| 3051 | 3017 | |
| 3052 | 3018 | |
| r4499 | r4500 | |
| 3079 | 3045 | ROM_LOAD( "pr7034.1", 0x0200, 0x0100, CRC(dfb5f139) SHA1(56cba261819fd5f2beab56ffd80bb3fd328efe3e) ) /* palette blue component */ |
| 3080 | 3046 | |
| 3081 | 3047 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3082 | | ROM_LOAD( "pr5317p.4", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3048 | ROM_LOAD( "pr5317p.4", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3083 | 3049 | ROM_END |
| 3084 | 3050 | |
| 3085 | 3051 | |
| r4499 | r4500 | |
| 3107 | 3073 | ROM_LOAD( "epr-6924.05", 0xc000, 0x4000, CRC(42bdc8f6) SHA1(f31d82641187a7cc77a4a19189b5a15d5168cbd7) ) |
| 3108 | 3074 | |
| 3109 | 3075 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3110 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3076 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3111 | 3077 | ROM_END |
| 3112 | 3078 | |
| 3113 | 3079 | ROM_START( sscandal ) |
| r4499 | r4500 | |
| 3134 | 3100 | ROM_LOAD( "epr-6924.05", 0xc000, 0x4000, CRC(42bdc8f6) SHA1(f31d82641187a7cc77a4a19189b5a15d5168cbd7) ) |
| 3135 | 3101 | |
| 3136 | 3102 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3137 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3103 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3138 | 3104 | ROM_END |
| 3139 | 3105 | |
| 3140 | 3106 | ROM_START( myherok ) |
| r4499 | r4500 | |
| 3162 | 3128 | ROM_LOAD( "epr-6924.05", 0xc000, 0x4000, CRC(42bdc8f6) SHA1(f31d82641187a7cc77a4a19189b5a15d5168cbd7) ) |
| 3163 | 3129 | |
| 3164 | 3130 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3165 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3131 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3166 | 3132 | ROM_END |
| 3167 | 3133 | |
| 3168 | 3134 | |
| r4499 | r4500 | |
| 3190 | 3156 | ROM_LOAD( "4d.05", 0xc000, 0x4000, CRC(f31a1e6a) SHA1(f49dbc4b381e7096d5ffe3c16660dd63121dabf7) ) |
| 3191 | 3157 | |
| 3192 | 3158 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3193 | | ROM_LOAD( "pr5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3159 | ROM_LOAD( "pr5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3194 | 3160 | ROM_END |
| 3195 | 3161 | |
| 3196 | 3162 | |
| r4499 | r4500 | |
| 3241 | 3207 | ROM_LOAD( "epr7111.ic8", 0x00200, 0x0100, CRC(8123b6b9) SHA1(fb2c5498f0603b5cd270402a738c891a85453666) ) /* palette blue component - N82S129AN */ |
| 3242 | 3208 | |
| 3243 | 3209 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3244 | | ROM_LOAD( "epr5317.ic37", 0x00000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) - N82S129AN */ |
| 3210 | ROM_LOAD( "epr5317.ic37", 0x00000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* N82S129AN */ |
| 3245 | 3211 | |
| 3246 | 3212 | /* These pld's are located on the main board. */ |
| 3247 | 3213 | ROM_REGION( 0x0618, "plds", 0 ) |
| r4499 | r4500 | |
| 3300 | 3266 | ROM_LOAD( "epr7111.ic8", 0x00200, 0x0100, CRC(8123b6b9) SHA1(fb2c5498f0603b5cd270402a738c891a85453666) ) /* palette blue component - N82S129AN */ |
| 3301 | 3267 | |
| 3302 | 3268 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3303 | | ROM_LOAD( "epr5317.ic37", 0x00000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) - N82S129AN */ |
| 3269 | ROM_LOAD( "epr5317.ic37", 0x00000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* N82S129AN */ |
| 3304 | 3270 | |
| 3305 | 3271 | /* These pld's are located on the main board. */ |
| 3306 | 3272 | ROM_REGION( 0x0618, "plds", 0 ) |
| r4499 | r4500 | |
| 3390 | 3356 | ROM_LOAD( "epr7111.ic8", 0x00200, 0x0100, CRC(8123b6b9) SHA1(fb2c5498f0603b5cd270402a738c891a85453666) ) /* palette blue component - N82S129AN */ |
| 3391 | 3357 | |
| 3392 | 3358 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3393 | | ROM_LOAD( "epr5317.ic37", 0x00000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) - N82S129AN */ |
| 3359 | ROM_LOAD( "epr5317.ic37", 0x00000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* N82S129AN */ |
| 3394 | 3360 | |
| 3395 | 3361 | ROM_REGION( 0x0400, "plds", 0 ) |
| 3396 | 3362 | ROM_LOAD( "315-5137.bin", 0x00000, 0x0104, CRC(6ffd9e6f) SHA1(a60a3a2ec5bc256b18bfff0fec0172ee2e4fd955) ) /* TI PAL16R4A-2CN Located at IC10 */ |
| r4499 | r4500 | |
| 3434 | 3400 | ROM_LOAD( "pr7117.ic8", 0x0200, 0x0100, CRC(4124307e) SHA1(cee28d891e6ce732c43a61acb5beeafd2200cf37) ) /* palette blue component */ |
| 3435 | 3401 | |
| 3436 | 3402 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3437 | | ROM_LOAD( "pr5317.ic28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3403 | ROM_LOAD( "pr5317.ic28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3438 | 3404 | |
| 3439 | 3405 | ROM_REGION( 0x0618, "plds", 0 ) |
| 3440 | 3406 | ROM_LOAD( "315-5152.bin", 0x00000, 0x0104, CRC(2c9229b4) SHA1(9755013afcf89f99d7a399c7e223e027761cf89a) ) /* PAL16R4A located at IC10. */ |
| r4499 | r4500 | |
| 3478 | 3444 | ROM_LOAD( "pr7117.ic8", 0x0200, 0x0100, CRC(4124307e) SHA1(cee28d891e6ce732c43a61acb5beeafd2200cf37) ) /* palette blue component */ |
| 3479 | 3445 | |
| 3480 | 3446 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3481 | | ROM_LOAD( "pr5317.ic28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3447 | ROM_LOAD( "pr5317.ic28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3482 | 3448 | |
| 3483 | 3449 | ROM_REGION( 0x0618, "plds", 0 ) |
| 3484 | 3450 | ROM_LOAD( "315-5152.bin", 0x00000, 0x0104, CRC(2c9229b4) SHA1(9755013afcf89f99d7a399c7e223e027761cf89a) ) /* PAL16R4A located at IC10. */ |
| r4499 | r4500 | |
| 3559 | 3525 | ROM_LOAD( "pr7117.8", 0x0200, 0x0100, CRC(4124307e) SHA1(cee28d891e6ce732c43a61acb5beeafd2200cf37) ) /* palette blue component */ |
| 3560 | 3526 | |
| 3561 | 3527 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3562 | | ROM_LOAD( "pr5317.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3528 | ROM_LOAD( "pr5317.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3563 | 3529 | |
| 3564 | 3530 | ROM_REGION( 0x0003, "plds_main", 0 ) |
| 3565 | 3531 | ROM_LOAD( "pal16r4.bin", 0x00000, 0x0001, NO_DUMP ) /* PAL16R4 located at IC13. */ |
| r4499 | r4500 | |
| 3610 | 3576 | ROM_LOAD( "epr-7410.05", 0xc000, 0x4000, CRC(ced74789) SHA1(d0ad845bfe83412ac8d43125e1c50d0581a5b47e) ) /* epr-7410.2 */ |
| 3611 | 3577 | |
| 3612 | 3578 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3613 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3579 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3614 | 3580 | /* pr-5317.106 */ |
| 3615 | 3581 | ROM_END |
| 3616 | 3582 | |
| r4499 | r4500 | |
| 3639 | 3605 | ROM_LOAD( "epr-7488.05", 0xc000, 0x4000, CRC(007c2f1b) SHA1(c2f1376144a49d20cb35384648e06d06978474c1) ) |
| 3640 | 3606 | |
| 3641 | 3607 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3642 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3608 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3643 | 3609 | ROM_END |
| 3644 | 3610 | |
| 3645 | 3611 | ROM_START( wboyo ) |
| r4499 | r4500 | |
| 3666 | 3632 | ROM_LOAD( "epr-7488.05", 0xc000, 0x4000, CRC(007c2f1b) SHA1(c2f1376144a49d20cb35384648e06d06978474c1) ) |
| 3667 | 3633 | |
| 3668 | 3634 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3669 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3635 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3670 | 3636 | ROM_END |
| 3671 | 3637 | |
| 3672 | 3638 | ROM_START( wboy2 ) |
| r4499 | r4500 | |
| 3696 | 3662 | ROM_LOAD( "epr-7488.05", 0xc000, 0x4000, CRC(007c2f1b) SHA1(c2f1376144a49d20cb35384648e06d06978474c1) ) /* epr-7488.2 */ |
| 3697 | 3663 | |
| 3698 | 3664 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3699 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3665 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3700 | 3666 | /* pr-5317.106 */ |
| 3701 | 3667 | ROM_END |
| 3702 | 3668 | |
| r4499 | r4500 | |
| 3727 | 3693 | ROM_LOAD( "epr-7488.05", 0xc000, 0x4000, CRC(007c2f1b) SHA1(c2f1376144a49d20cb35384648e06d06978474c1) ) /* epr-7488.2 */ |
| 3728 | 3694 | |
| 3729 | 3695 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3730 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3696 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3731 | 3697 | /* pr-5317.106 */ |
| 3732 | 3698 | ROM_END |
| 3733 | 3699 | |
| r4499 | r4500 | |
| 3755 | 3721 | ROM_LOAD( "epr-7488.05", 0xc000, 0x4000, CRC(007c2f1b) SHA1(c2f1376144a49d20cb35384648e06d06978474c1) ) |
| 3756 | 3722 | |
| 3757 | 3723 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3758 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3724 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3759 | 3725 | ROM_END |
| 3760 | 3726 | |
| 3761 | 3727 | /* |
| r4499 | r4500 | |
| 3789 | 3755 | ROM_LOAD( "7577.86", 0x08000, 0x8000, CRC(58b3705e) SHA1(1a8ff3f1765a3b21145bd1a6c85441f806f7b17d) ) // epr7576.ic117 |
| 3790 | 3756 | |
| 3791 | 3757 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3792 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3758 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3793 | 3759 | ROM_END |
| 3794 | 3760 | |
| 3795 | 3761 | ROM_START( wboyu ) |
| r4499 | r4500 | |
| 3816 | 3782 | ROM_LOAD( "ic005_88.bin", 0xc000, 0x4000, CRC(2602e519) SHA1(00e94ec7ae37b5063137d4d49af7806fb0357c4b) ) |
| 3817 | 3783 | |
| 3818 | 3784 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3819 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3785 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3820 | 3786 | ROM_END |
| 3821 | 3787 | |
| 3822 | 3788 | ROM_START( wboysys2 ) |
| r4499 | r4500 | |
| 3842 | 3808 | ROM_LOAD( "pr-7343.8", 0x0200, 0x0100, CRC(371c44a6) SHA1(ac37458d1feb6566b09a795b20c21953d4ab109d) ) /* palette blue component */ |
| 3843 | 3809 | |
| 3844 | 3810 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3845 | | ROM_LOAD( "pr-5317.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3811 | ROM_LOAD( "pr-5317.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3846 | 3812 | ROM_END |
| 3847 | 3813 | |
| 3848 | 3814 | ROM_START( wbdeluxe ) |
| r4499 | r4500 | |
| 3872 | 3838 | ROM_LOAD( "epr-7488.05", 0xc000, 0x4000, CRC(007c2f1b) SHA1(c2f1376144a49d20cb35384648e06d06978474c1) ) /* epr-7488.2 */ |
| 3873 | 3839 | |
| 3874 | 3840 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3875 | | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3841 | ROM_LOAD( "pr-5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3876 | 3842 | /* pr-5317.106 */ |
| 3877 | 3843 | ROM_END |
| 3878 | 3844 | |
| r4499 | r4500 | |
| 3903 | 3869 | ROM_LOAD( "bprom.1", 0x0200, 0x0100, CRC(371c44a6) SHA1(ac37458d1feb6566b09a795b20c21953d4ab109d) ) /* palette blue component */ |
| 3904 | 3870 | |
| 3905 | 3871 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3906 | | ROM_LOAD( "pr5317.4", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3872 | ROM_LOAD( "pr5317.4", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3907 | 3873 | ROM_END |
| 3908 | 3874 | |
| 3909 | 3875 | ROM_START( gardiab ) |
| r4499 | r4500 | |
| 3932 | 3898 | ROM_LOAD( "bprom.1", 0x0200, 0x0100, CRC(371c44a6) SHA1(ac37458d1feb6566b09a795b20c21953d4ab109d) ) /* palette blue component */ |
| 3933 | 3899 | |
| 3934 | 3900 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3935 | | ROM_LOAD( "pr5317.4", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3901 | ROM_LOAD( "pr5317.4", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3936 | 3902 | ROM_END |
| 3937 | 3903 | |
| 3938 | 3904 | |
| r4499 | r4500 | |
| 3964 | 3930 | ROM_LOAD( "bprom.1", 0x0200, 0x0100, BAD_DUMP CRC(371c44a6) SHA1(ac37458d1feb6566b09a795b20c21953d4ab109d) ) /* palette blue component */ |
| 3965 | 3931 | |
| 3966 | 3932 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3967 | | ROM_LOAD( "pr5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3933 | ROM_LOAD( "pr5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3968 | 3934 | ROM_END |
| 3969 | 3935 | |
| 3970 | 3936 | |
| r4499 | r4500 | |
| 3994 | 3960 | ROM_LOAD( "bprom.8", 0x0200, 0x0100, CRC(371c44a6) SHA1(ac37458d1feb6566b09a795b20c21953d4ab109d) ) /* palette blue component */ |
| 3995 | 3961 | |
| 3996 | 3962 | ROM_REGION( 0x0100, "proms", 0 ) |
| 3997 | | ROM_LOAD( "bprom.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3963 | ROM_LOAD( "bprom.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 3998 | 3964 | ROM_END |
| 3999 | 3965 | |
| 4000 | 3966 | |
| r4499 | r4500 | |
| 4027 | 3993 | ROM_LOAD( "pr11024.8", 0x0200, 0x0100, CRC(08d71954) SHA1(df045dbfb3d669e4d42fbdba1e7191cd046f7b47) ) |
| 4028 | 3994 | |
| 4029 | 3995 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4030 | | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 3996 | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4031 | 3997 | ROM_END |
| 4032 | 3998 | |
| 4033 | 3999 | ROM_START( wbmljo ) |
| r4499 | r4500 | |
| 4059 | 4025 | ROM_LOAD( "pr11024.8", 0x0200, 0x0100, CRC(08d71954) SHA1(df045dbfb3d669e4d42fbdba1e7191cd046f7b47) ) |
| 4060 | 4026 | |
| 4061 | 4027 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4062 | | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4028 | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4063 | 4029 | ROM_END |
| 4064 | 4030 | |
| 4065 | 4031 | ROM_START( wbmljb ) |
| r4499 | r4500 | |
| 4091 | 4057 | ROM_LOAD( "pr11024.8", 0x0200, 0x0100, CRC(08d71954) SHA1(df045dbfb3d669e4d42fbdba1e7191cd046f7b47) ) |
| 4092 | 4058 | |
| 4093 | 4059 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4094 | | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4060 | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4095 | 4061 | ROM_END |
| 4096 | 4062 | |
| 4097 | 4063 | ROM_START( wbmlb ) |
| r4499 | r4500 | |
| 4123 | 4089 | ROM_LOAD( "pr11024.8", 0x0200, 0x0100, CRC(08d71954) SHA1(df045dbfb3d669e4d42fbdba1e7191cd046f7b47) ) |
| 4124 | 4090 | |
| 4125 | 4091 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4126 | | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4092 | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4127 | 4093 | ROM_END |
| 4128 | 4094 | |
| 4129 | 4095 | ROM_START( wbmlbg ) |
| r4499 | r4500 | |
| 4155 | 4121 | ROM_LOAD( "pr11024.8", 0x0200, 0x0100, CRC(08d71954) SHA1(df045dbfb3d669e4d42fbdba1e7191cd046f7b47) ) |
| 4156 | 4122 | |
| 4157 | 4123 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4158 | | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4124 | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4159 | 4125 | ROM_END |
| 4160 | 4126 | |
| 4161 | 4127 | |
| r4499 | r4500 | |
| 4188 | 4154 | ROM_LOAD( "pr11217.8", 0x0200, 0x0100, CRC(49dbde88) SHA1(7057da5617de7e4775adf092cce1709135066129) ) /* palette blue component */ |
| 4189 | 4155 | |
| 4190 | 4156 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4191 | | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4157 | ROM_LOAD( "pr5317.37", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4192 | 4158 | ROM_END |
| 4193 | 4159 | |
| 4194 | 4160 | |
| r4499 | r4500 | |
| 4221 | 4187 | ROM_LOAD( "pr11654.8", 0x0200, 0x0100, CRC(ba624305) SHA1(eb1d0dde60f81ff510ac8c1212e0ed5703febaf3) ) /* palette blue component */ |
| 4222 | 4188 | |
| 4223 | 4189 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4224 | | ROM_LOAD( "pr5317.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4190 | ROM_LOAD( "pr5317.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4225 | 4191 | ROM_END |
| 4226 | 4192 | |
| 4227 | 4193 | ROM_START( ufosensib ) |
| r4499 | r4500 | |
| 4253 | 4219 | ROM_LOAD( "pr11654.8", 0x0200, 0x0100, CRC(ba624305) SHA1(eb1d0dde60f81ff510ac8c1212e0ed5703febaf3) ) /* palette blue component - label on chip is "74s287.ic132.9d" */ |
| 4254 | 4220 | |
| 4255 | 4221 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4256 | | ROM_LOAD( "pr5317.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) - label on chip is "74s287.ic115.8j" */ |
| 4222 | ROM_LOAD( "pr5317.28", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* label on chip is "74s287.ic115.8j" */ |
| 4257 | 4223 | |
| 4258 | 4224 | ROM_REGION( 0x2000, "plds", 0 ) |
| 4259 | 4225 | ROM_LOAD( "pal6l8.ic3.1c", 0x0000, 0x0104, NO_DUMP ) /* PAL is read protected */ |
| r4499 | r4500 | |
| 4295 | 4261 | ROM_LOAD( "bg.05", 0xc000, 0x4000, CRC(02e0b040) SHA1(fb626fc31dfe25bf9fac0c8d76d5041609b06e82) ) |
| 4296 | 4262 | |
| 4297 | 4263 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4298 | | ROM_LOAD( "pr5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4264 | ROM_LOAD( "pr5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4299 | 4265 | ROM_END |
| 4300 | 4266 | |
| 4301 | 4267 | ROM_START( blockgalb ) |
| r4499 | r4500 | |
| 4321 | 4287 | ROM_LOAD( "bg.05", 0xc000, 0x4000, CRC(02e0b040) SHA1(fb626fc31dfe25bf9fac0c8d76d5041609b06e82) ) |
| 4322 | 4288 | |
| 4323 | 4289 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4324 | | ROM_LOAD( "pr5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4290 | ROM_LOAD( "pr5317.76", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4325 | 4291 | ROM_END |
| 4326 | 4292 | |
| 4327 | 4293 | |
| r4499 | r4500 | |
| 4434 | 4400 | ROM_LOAD( "dm-12.ic3", 0x0200, 0x0100, CRC(de394cee) SHA1(511c53f22459e5e238b48685f85b10f5e15f2ac1) ) /* palette blue component */ |
| 4435 | 4401 | |
| 4436 | 4402 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4437 | | ROM_LOAD( "dc-11.6a", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4403 | ROM_LOAD( "dc-11.6a", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4438 | 4404 | ROM_END |
| 4439 | 4405 | |
| 4440 | 4406 | /* the bootleg has different protection.. */ |
| r4499 | r4500 | |
| 4464 | 4430 | ROM_LOAD( "nobo_pr.14d", 0x0200, 0x0100, CRC(de394cee) SHA1(511c53f22459e5e238b48685f85b10f5e15f2ac1) ) /* palette blue component */ |
| 4465 | 4431 | |
| 4466 | 4432 | ROM_REGION( 0x0100, "proms", 0 ) |
| 4467 | | ROM_LOAD( "nobo_pr.13a", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4433 | ROM_LOAD( "nobo_pr.13a", 0x0000, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) |
| 4468 | 4434 | ROM_END |
| 4469 | 4435 | |
| 4470 | 4436 | |
| r4499 | r4500 | |
| 4645 | 4611 | GAME( 1983, starjacks, starjack, sys1ppis, starjacks, bank00, ROT270, "Stern", "Star Jacker (Stern)", GAME_SUPPORTS_SAVE ) |
| 4646 | 4612 | GAME( 1983, upndown, 0, sys1ppi, upndown, nprinces, ROT270, "Sega", "Up'n Down (315-5030)", GAME_SUPPORTS_SAVE ) |
| 4647 | 4613 | GAME( 1983, upndownu, upndown, sys1ppi, upndown, bank00, ROT270, "Sega", "Up'n Down (not encrypted)", GAME_SUPPORTS_SAVE ) |
| 4648 | | GAME( 1983, regulus, 0, sys1ppis, regulus, regulus, ROT270, "Sega", "Regulus (315-5033, Rev A.)", GAME_SUPPORTS_SAVE ) |
| 4649 | | GAME( 1983, reguluso, regulus, sys1ppis, reguluso, regulus, ROT270, "Sega", "Regulus (315-5033)", GAME_SUPPORTS_SAVE ) |
| 4650 | | GAME( 1983, regulusu, regulus, sys1ppis, regulus, bank00, ROT270, "Sega", "Regulus (not encrypted)", GAME_SUPPORTS_SAVE ) |
| 4614 | GAME( 1983, regulus, 0, sys1ppi, regulus, regulus, ROT270, "Sega", "Regulus (315-5033, Rev A.)", GAME_SUPPORTS_SAVE ) |
| 4615 | GAME( 1983, reguluso, regulus, sys1ppi, reguluso, regulus, ROT270, "Sega", "Regulus (315-5033)", GAME_SUPPORTS_SAVE ) |
| 4616 | GAME( 1983, regulusu, regulus, sys1ppi, regulus, bank00, ROT270, "Sega", "Regulus (not encrypted)", GAME_SUPPORTS_SAVE ) |
| 4651 | 4617 | GAME( 1984, mrviking, 0, sys1ppis, mrviking, mrviking, ROT270, "Sega", "Mister Viking (315-5041)", GAME_SUPPORTS_SAVE ) |
| 4652 | 4618 | GAME( 1984, mrvikingj, mrviking, sys1ppis, mrvikingj, mrviking, ROT270, "Sega", "Mister Viking (315-5041, Japan)", GAME_SUPPORTS_SAVE ) |
| 4653 | 4619 | GAME( 1984, swat, 0, sys1ppi, swat, swat, ROT270, "Coreland / Sega", "SWAT (315-5048)", GAME_SUPPORTS_SAVE ) |
| r4499 | r4500 | |
| 4702 | 4668 | GAME( 1985, choplift, 0, sys2row, choplift, choplift, ROT0, "Sega", "Choplifter (8751 315-5151)", GAME_UNEMULATED_PROTECTION | GAME_SUPPORTS_SAVE | GAME_NOT_WORKING ) |
| 4703 | 4669 | GAME( 1985, chopliftu, choplift, sys2row, choplift, bank0c, ROT0, "Sega", "Choplifter (unprotected)", GAME_SUPPORTS_SAVE ) |
| 4704 | 4670 | GAME( 1985, chopliftbl, choplift, sys2row, choplift, bank0c, ROT0, "bootleg", "Choplifter (bootleg)", GAME_SUPPORTS_SAVE ) |
| 4705 | | GAME( 1985, shtngmst, 0, sys2s, shtngmst, shtngmst, ROT0, "Sega", "Shooting Master (Rev A, 8751 315-5159a)", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING ) |
| 4706 | | GAME( 1985, shtngmst1, shtngmst, sys2s, shtngmst, shtngmst, ROT0, "Sega", "Shooting Master (8751 315-5159)", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING ) |
| 4707 | | GAME( 1985, shtngmsta, shtngmst, sys2s, shtngmst, shtngmst, ROT0, "Sega [EVG]", "Shooting Master (EVG, 8751 315-5159)", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING ) |
| 4671 | GAME( 1985, shtngmst, 0, sys2, shtngmst, shtngmst, ROT0, "Sega", "Shooting Master (Rev A, 8751 315-5159a)", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING ) |
| 4672 | GAME( 1985, shtngmst1, shtngmst, sys2, shtngmst, shtngmst, ROT0, "Sega", "Shooting Master (8751 315-5159)", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING ) |
| 4673 | GAME( 1985, shtngmsta, shtngmst, sys2, shtngmst, shtngmst, ROT0, "Sega [EVG]", "Shooting Master (EVG, 8751 315-5159)", GAME_SUPPORTS_SAVE | GAME_NOT_WORKING ) |
| 4708 | 4674 | GAME( 1986, gardiab, gardia, sys2, gardia, gardiab, ROT270, "bootleg", "Gardia (317-0007?, bootleg)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 4709 | 4675 | GAME( 1986, wboysys2, wboy, sys2, wboysys2, wboysys2, ROT0, "Sega (Escape license)", "Wonder Boy (system 2)", GAME_SUPPORTS_SAVE ) |
| 4710 | 4676 | GAME( 1987, tokisens, 0, sys2, tokisens, bank0c, ROT90, "Sega", "Toki no Senshi - Chrono Soldier", GAME_SUPPORTS_SAVE ) |
| r4499 | r4500 | |
| 4715 | 4681 | GAME( 1987, wbmlbg, wbml, sys2, wbml, bootlegb, ROT0, "bootleg", "Wonder Boy in Monster Land (Galaxy Electronics English bootleg)", GAME_SUPPORTS_SAVE) |
| 4716 | 4682 | GAME( 1987, dakkochn, 0, sys2, dakkochn, dakkochn, ROT0, "Whiteboard", "DakkoChan House (MC-8123, 317-0014)", GAME_SUPPORTS_SAVE ) |
| 4717 | 4683 | GAME( 1987, blockgalb, blockgal, sys2, blockgal, bootleg, ROT90, "bootleg", "Block Gal (bootleg)", GAME_SUPPORTS_SAVE ) |
| 4718 | | GAME( 1988, ufosensi, 0, sys2rows, ufosensi, ufosensi, ROT0, "Sega", "Ufo Senshi Yohko Chan (MC-8123, 317-0064)", GAME_SUPPORTS_SAVE ) |
| 4719 | | GAME( 1988, ufosensib, ufosensi, sys2rows, ufosensi, bootlegb, ROT0, "bootleg", "Ufo Senshi Yohko Chan (not encrypted)", GAME_SUPPORTS_SAVE ) |
| 4684 | GAME( 1988, ufosensi, 0, sys2row, ufosensi, ufosensi, ROT0, "Sega", "Ufo Senshi Yohko Chan (MC-8123, 317-0064)", GAME_SUPPORTS_SAVE ) |
| 4685 | GAME( 1988, ufosensib, ufosensi, sys2row, ufosensi, bootlegb, ROT0, "bootleg", "Ufo Senshi Yohko Chan (not encrypted)", GAME_SUPPORTS_SAVE ) |
src/mame/drivers/system16.c
| r4499 | r4500 | |
| 304 | 304 | } |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | | static ADDRESS_MAP_START( tturfbl_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 308 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 307 | static ADDRESS_MAP_START(tturfbl_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 308 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 309 | 309 | AM_RANGE(0x8000, 0xbfff) AM_READ(tturfbl_soundbank_r) |
| 310 | | AM_RANGE(0xe800, 0xe800) AM_READ(soundlatch_r) |
| 311 | | AM_RANGE(0xf800, 0xffff) AM_READ(SMH_RAM) |
| 312 | | ADDRESS_MAP_END |
| 313 | | |
| 314 | | static ADDRESS_MAP_START(tturfbl_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 315 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 316 | | AM_RANGE(0x8000, 0xbfff) AM_WRITENOP /* ROM bank */ |
| 317 | 310 | AM_RANGE(0xe000, 0xe000) AM_WRITE(tturfbl_soundbank_w) |
| 311 | AM_RANGE(0xe800, 0xe800) AM_READ(soundlatch_r) |
| 318 | 312 | AM_RANGE(0xf000, 0xf000) AM_WRITE(tturfbl_msm5205_data_w) |
| 319 | | AM_RANGE(0xf800, 0xffff) AM_WRITE(SMH_RAM) |
| 313 | AM_RANGE(0xf800, 0xffff) AM_RAM |
| 320 | 314 | ADDRESS_MAP_END |
| 321 | 315 | |
| 322 | | static ADDRESS_MAP_START( tturfbl_sound_readport, ADDRESS_SPACE_IO, 8 ) |
| 316 | static ADDRESS_MAP_START( tturfbl_sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 323 | 317 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 324 | | AM_RANGE(0x00, 0x01) AM_DEVREAD("ym", ym2151_r) |
| 325 | | AM_RANGE(0x80, 0x80) AM_READNOP |
| 326 | | ADDRESS_MAP_END |
| 327 | | |
| 328 | | static ADDRESS_MAP_START( tturfbl_sound_writeport, ADDRESS_SPACE_IO, 8 ) |
| 329 | | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 330 | | AM_RANGE(0x00, 0x01) AM_DEVWRITE("ym", ym2151_w) |
| 318 | AM_RANGE(0x00, 0x01) AM_DEVREADWRITE("ym", ym2151_r, ym2151_w) |
| 331 | 319 | AM_RANGE(0x40, 0x40) AM_WRITENOP |
| 332 | | AM_RANGE(0x80, 0x80) AM_WRITENOP |
| 320 | AM_RANGE(0x80, 0x80) AM_NOP |
| 333 | 321 | ADDRESS_MAP_END |
| 334 | 322 | |
| 335 | 323 | /*******************************************************************************/ |
| 336 | 324 | |
| 337 | | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 338 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 325 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 326 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 339 | 327 | AM_RANGE(0xe800, 0xe800) AM_READ(soundlatch_r) |
| 340 | | AM_RANGE(0xf800, 0xffff) AM_READ(SMH_RAM) |
| 328 | AM_RANGE(0xf800, 0xffff) AM_RAM |
| 341 | 329 | ADDRESS_MAP_END |
| 342 | 330 | |
| 343 | | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 344 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 345 | | AM_RANGE(0xf800, 0xffff) AM_WRITE(SMH_RAM) |
| 346 | | ADDRESS_MAP_END |
| 347 | | |
| 348 | | static ADDRESS_MAP_START( sound_readport, ADDRESS_SPACE_IO, 8 ) |
| 331 | static ADDRESS_MAP_START( sound_io_map, ADDRESS_SPACE_IO, 8 ) |
| 349 | 332 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 350 | | AM_RANGE(0x00, 0x01) AM_DEVREAD("ym", ym2151_r) |
| 333 | AM_RANGE(0x00, 0x01) AM_DEVREADWRITE("ym", ym2151_r, ym2151_w) |
| 351 | 334 | AM_RANGE(0xc0, 0xc0) AM_READ(soundlatch_r) |
| 352 | 335 | ADDRESS_MAP_END |
| 353 | 336 | |
| 354 | | static ADDRESS_MAP_START( sound_writeport, ADDRESS_SPACE_IO, 8 ) |
| 355 | | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 356 | | AM_RANGE(0x00, 0x01) AM_DEVWRITE("ym", ym2151_w) |
| 357 | | ADDRESS_MAP_END |
| 358 | 337 | |
| 359 | | |
| 360 | 338 | // 7759 |
| 361 | | static ADDRESS_MAP_START( sound_readmem_7759, ADDRESS_SPACE_PROGRAM, 8 ) |
| 362 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 363 | | AM_RANGE(0x8000, 0xdfff) AM_READ(SMH_BANK1) |
| 339 | static ADDRESS_MAP_START( sound_7759_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 340 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 341 | AM_RANGE(0x8000, 0xdfff) AM_ROMBANK(1) |
| 364 | 342 | AM_RANGE(0xe800, 0xe800) AM_READ(soundlatch_r) |
| 365 | | AM_RANGE(0xf800, 0xffff) AM_READ(SMH_RAM) |
| 343 | AM_RANGE(0xf800, 0xffff) AM_RAM |
| 366 | 344 | ADDRESS_MAP_END |
| 367 | 345 | |
| 368 | 346 | |
| r4499 | r4500 | |
| 376 | 354 | } |
| 377 | 355 | |
| 378 | 356 | |
| 379 | | static ADDRESS_MAP_START( sound_writeport_7759, ADDRESS_SPACE_IO, 8 ) |
| 357 | static ADDRESS_MAP_START( sound_7759_io_map, ADDRESS_SPACE_IO, 8 ) |
| 380 | 358 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 381 | | AM_RANGE(0x00, 0x01) AM_DEVWRITE("ym", ym2151_w) |
| 359 | AM_RANGE(0x00, 0x01) AM_DEVREADWRITE("ym", ym2151_r, ym2151_w) |
| 382 | 360 | AM_RANGE(0x40, 0x40) AM_DEVWRITE("7759", upd7759_bank_w) |
| 383 | 361 | AM_RANGE(0x80, 0x80) AM_DEVWRITE("7759", upd7759_port_w) |
| 362 | AM_RANGE(0xc0, 0xc0) AM_READ(soundlatch_r) |
| 384 | 363 | ADDRESS_MAP_END |
| 385 | 364 | |
| 386 | 365 | |
| r4499 | r4500 | |
| 429 | 408 | MDRV_CPU_VBLANK_INT("screen", sys16_interrupt) |
| 430 | 409 | |
| 431 | 410 | MDRV_CPU_ADD("soundcpu", Z80, 4000000) |
| 432 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 433 | | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) |
| 411 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 412 | MDRV_CPU_IO_MAP(sound_io_map,0) |
| 434 | 413 | |
| 435 | 414 | /* video hardware */ |
| 436 | 415 | MDRV_SCREEN_ADD("screen", RASTER) |
| r4499 | r4500 | |
| 461 | 440 | MDRV_IMPORT_FROM(system16) |
| 462 | 441 | |
| 463 | 442 | MDRV_CPU_MODIFY("soundcpu") |
| 464 | | MDRV_CPU_PROGRAM_MAP(sound_readmem_7759,sound_writemem) |
| 465 | | MDRV_CPU_IO_MAP(sound_readport,sound_writeport_7759) |
| 443 | MDRV_CPU_PROGRAM_MAP(sound_7759_map,0) |
| 444 | MDRV_CPU_IO_MAP(sound_7759_io_map,0) |
| 466 | 445 | |
| 467 | 446 | /* sound hardware */ |
| 468 | 447 | MDRV_SOUND_ADD("7759", UPD7759, UPD7759_STANDARD_CLOCK) |
| r4499 | r4500 | |
| 619 | 598 | #endif |
| 620 | 599 | /****************************************************************************/ |
| 621 | 600 | |
| 622 | | static ADDRESS_MAP_START( bayroute_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 623 | | AM_RANGE(0x000000, 0x0bffff) AM_READ(SMH_ROM) |
| 624 | | AM_RANGE(0x500000, 0x503fff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 625 | | AM_RANGE(0x600000, 0x600fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 626 | | AM_RANGE(0x700000, 0x70ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 627 | | AM_RANGE(0x710000, 0x710fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 628 | | AM_RANGE(0x800000, 0x800fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 601 | static ADDRESS_MAP_START( bayroute_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 602 | AM_RANGE(0x000000, 0x0bffff) AM_ROM |
| 603 | AM_RANGE(0x100000, 0x100003) AM_WRITENOP // tilebank control? |
| 604 | AM_RANGE(0x500000, 0x503fff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 605 | AM_RANGE(0x600000, 0x600fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 606 | AM_RANGE(0x700000, 0x70ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 607 | AM_RANGE(0x710000, 0x710fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 608 | AM_RANGE(0x800000, 0x800fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 609 | AM_RANGE(0x900000, 0x900001) AM_WRITE(sys16_coinctrl_w) |
| 629 | 610 | AM_RANGE(0x901002, 0x901003) AM_READ_PORT("P1") |
| 630 | 611 | AM_RANGE(0x901006, 0x901007) AM_READ_PORT("P2") |
| 631 | 612 | AM_RANGE(0x901000, 0x901001) AM_READ_PORT("SERVICE") |
| 632 | 613 | AM_RANGE(0x902002, 0x902003) AM_READ_PORT("DSW1") |
| 633 | 614 | AM_RANGE(0x902000, 0x902001) AM_READ_PORT("DSW2") |
| 634 | | ADDRESS_MAP_END |
| 635 | | |
| 636 | | static ADDRESS_MAP_START( bayroute_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 637 | | AM_RANGE(0x000000, 0x0bffff) AM_WRITE(SMH_ROM) |
| 638 | | AM_RANGE(0x100000, 0x100003) AM_WRITENOP // tilebank control? |
| 639 | | AM_RANGE(0x500000, 0x503fff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 640 | | AM_RANGE(0x600000, 0x600fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 641 | | AM_RANGE(0x700000, 0x70ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 642 | | AM_RANGE(0x710000, 0x710fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 643 | | AM_RANGE(0x800000, 0x800fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 644 | | AM_RANGE(0x900000, 0x900001) AM_WRITE(sys16_coinctrl_w) |
| 645 | 615 | AM_RANGE(0xff0006, 0xff0007) AM_WRITE(sound_command_w) |
| 646 | 616 | AM_RANGE(0xff0020, 0xff003f) AM_WRITENOP // config regs |
| 647 | 617 | ADDRESS_MAP_END |
| r4499 | r4500 | |
| 712 | 682 | /* basic machine hardware */ |
| 713 | 683 | MDRV_IMPORT_FROM(system16_7759) |
| 714 | 684 | MDRV_CPU_MODIFY("maincpu") |
| 715 | | MDRV_CPU_PROGRAM_MAP(bayroute_readmem,bayroute_writemem) |
| 685 | MDRV_CPU_PROGRAM_MAP(bayroute_map,0) |
| 716 | 686 | |
| 717 | 687 | MDRV_MACHINE_RESET(bayroute) |
| 718 | 688 | MACHINE_DRIVER_END |
| 719 | 689 | |
| 720 | 690 | /***************************************************************************/ |
| 721 | 691 | |
| 722 | | static ADDRESS_MAP_START( dduxbl_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 723 | | AM_RANGE(0x000000, 0x0bffff) AM_READ(SMH_ROM) |
| 724 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 725 | | AM_RANGE(0x410000, 0x410fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 726 | | AM_RANGE(0x440000, 0x440fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 727 | | AM_RANGE(0x840000, 0x840fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 692 | static ADDRESS_MAP_START( dduxbl_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 693 | AM_RANGE(0x000000, 0x0bffff) AM_ROM |
| 694 | AM_RANGE(0x3f0000, 0x3fffff) AM_WRITE(sys16_tilebank_w) |
| 695 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 696 | AM_RANGE(0x410000, 0x410fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 697 | AM_RANGE(0x440000, 0x440fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 698 | AM_RANGE(0x840000, 0x840fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 699 | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 700 | AM_RANGE(0xc40006, 0xc40007) AM_WRITE(sound_command_w) |
| 728 | 701 | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 729 | 702 | AM_RANGE(0xc41004, 0xc41005) AM_READ_PORT("P2") |
| 730 | 703 | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 731 | 704 | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 732 | 705 | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 733 | | AM_RANGE(0xffc000, 0xffffff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 734 | | ADDRESS_MAP_END |
| 735 | | |
| 736 | | static ADDRESS_MAP_START( dduxbl_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 737 | | AM_RANGE(0x000000, 0x0bffff) AM_WRITE(SMH_ROM) |
| 738 | | AM_RANGE(0x3f0000, 0x3fffff) AM_WRITE(sys16_tilebank_w) |
| 739 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 740 | | AM_RANGE(0x410000, 0x410fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 741 | | AM_RANGE(0x440000, 0x440fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 742 | | AM_RANGE(0x840000, 0x840fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 743 | | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 744 | | AM_RANGE(0xc40006, 0xc40007) AM_WRITE(sound_command_w) |
| 745 | 706 | AM_RANGE(0xc46000, 0xc4603f) AM_WRITE(SYS16_MWA16_EXTRAM2) AM_BASE(&sys16_extraram2) |
| 746 | 707 | AM_RANGE(0xfe0020, 0xfe003f) AM_WRITENOP // config regs |
| 747 | | AM_RANGE(0xffc000, 0xffffff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 708 | AM_RANGE(0xffc000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 748 | 709 | ADDRESS_MAP_END |
| 749 | 710 | |
| 750 | 711 | /***************************************************************************/ |
| r4499 | r4500 | |
| 856 | 817 | /* basic machine hardware */ |
| 857 | 818 | MDRV_IMPORT_FROM(system16) |
| 858 | 819 | MDRV_CPU_MODIFY("maincpu") |
| 859 | | MDRV_CPU_PROGRAM_MAP(dduxbl_readmem,dduxbl_writemem) |
| 820 | MDRV_CPU_PROGRAM_MAP(dduxbl_map,0) |
| 860 | 821 | |
| 861 | 822 | MDRV_MACHINE_RESET(dduxbl) |
| 862 | 823 | MACHINE_DRIVER_END |
| 863 | 824 | |
| 864 | 825 | /***************************************************************************/ |
| 865 | 826 | |
| 866 | | static ADDRESS_MAP_START( eswat_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 867 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 868 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 869 | | AM_RANGE(0x410000, 0x418fff) AM_READ(SYS16_MRA16_TEXTRAM) //* |
| 870 | | AM_RANGE(0x440000, 0x440fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 871 | | AM_RANGE(0x840000, 0x840fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 872 | | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 873 | | AM_RANGE(0xc41006, 0xc41007) AM_READ_PORT("P2") |
| 874 | | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 875 | | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 876 | | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 877 | | AM_RANGE(0xffc000, 0xffffff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 878 | | ADDRESS_MAP_END |
| 879 | | |
| 880 | 827 | static int eswat_tilebank0; |
| 881 | 828 | |
| 882 | 829 | static WRITE16_HANDLER( eswat_tilebank0_w ) |
| r4499 | r4500 | |
| 888 | 835 | } |
| 889 | 836 | |
| 890 | 837 | |
| 891 | | static ADDRESS_MAP_START( eswatbl_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 892 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 838 | static ADDRESS_MAP_START( eswatbl_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 839 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 893 | 840 | AM_RANGE(0x3e2000, 0x3e2001) AM_WRITE(eswat_tilebank0_w) |
| 894 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 895 | | AM_RANGE(0x410000, 0x418fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 896 | | AM_RANGE(0x440000, 0x440fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 897 | | AM_RANGE(0x840000, 0x840fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 898 | | AM_RANGE(0xc42006, 0xc42007) AM_WRITE(sound_command_w) |
| 841 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 842 | AM_RANGE(0x410000, 0x418fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 843 | AM_RANGE(0x440000, 0x440fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 844 | AM_RANGE(0x840000, 0x840fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 899 | 845 | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 846 | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 847 | AM_RANGE(0xc41006, 0xc41007) AM_READ_PORT("P2") |
| 848 | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 849 | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 850 | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 851 | AM_RANGE(0xc42006, 0xc42007) AM_WRITE(sound_command_w) |
| 900 | 852 | AM_RANGE(0xc80000, 0xc80001) AM_WRITENOP |
| 901 | | AM_RANGE(0xffc000, 0xffffff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 853 | AM_RANGE(0xffc000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 902 | 854 | ADDRESS_MAP_END |
| 903 | 855 | |
| 904 | 856 | /***************************************************************************/ |
| r4499 | r4500 | |
| 984 | 936 | /* basic machine hardware */ |
| 985 | 937 | MDRV_IMPORT_FROM(system16_7759) |
| 986 | 938 | MDRV_CPU_MODIFY("maincpu") |
| 987 | | MDRV_CPU_PROGRAM_MAP(eswat_readmem,eswatbl_writemem) |
| 939 | MDRV_CPU_PROGRAM_MAP(eswatbl_map,0) |
| 988 | 940 | |
| 989 | 941 | MDRV_MACHINE_RESET(eswatbl) |
| 990 | 942 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 1158 | 1110 | Flash Point (Datsu bootlegs = fpointbl, fpointbj) |
| 1159 | 1111 | Has sound latch at $E000 instead of I/O ports $C0-FF |
| 1160 | 1112 | */ |
| 1161 | | static ADDRESS_MAP_START( fpointbl_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1162 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 1113 | static ADDRESS_MAP_START( fpointbl_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1114 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 1163 | 1115 | AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_r) |
| 1164 | | AM_RANGE(0xf800, 0xffff) AM_READ(SMH_RAM) |
| 1116 | AM_RANGE(0xf800, 0xffff) AM_RAM |
| 1165 | 1117 | ADDRESS_MAP_END |
| 1166 | 1118 | |
| 1167 | 1119 | static MACHINE_DRIVER_START( fpointbl ) |
| r4499 | r4500 | |
| 1172 | 1124 | MDRV_CPU_PROGRAM_MAP(fpointbl_map,0) |
| 1173 | 1125 | |
| 1174 | 1126 | MDRV_CPU_MODIFY("soundcpu") |
| 1175 | | MDRV_CPU_PROGRAM_MAP(fpointbl_sound_readmem,sound_writemem) |
| 1127 | MDRV_CPU_PROGRAM_MAP(fpointbl_sound_map,0) |
| 1176 | 1128 | |
| 1177 | 1129 | MDRV_MACHINE_RESET(fpointbl) |
| 1178 | 1130 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 1187 | 1139 | return (input_port_read(space->machine,"SERVICE") << 8) | (sys16_workingram[0x2c96/2] & 0x00ff); |
| 1188 | 1140 | } |
| 1189 | 1141 | |
| 1190 | | static ADDRESS_MAP_START( goldnaxe_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1191 | | AM_RANGE(0x000000, 0x0bffff) AM_READ(SMH_ROM) |
| 1192 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 1193 | | AM_RANGE(0x110000, 0x110fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 1194 | | AM_RANGE(0x140000, 0x140fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 1195 | | AM_RANGE(0x1f0000, 0x1f0003) AM_READ(SYS16_MRA16_EXTRAM) |
| 1196 | | AM_RANGE(0x200000, 0x200fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 1197 | | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 1198 | | AM_RANGE(0xc41006, 0xc41007) AM_READ_PORT("P2") |
| 1199 | | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 1200 | | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 1201 | | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 1202 | | AM_RANGE(0xffecd0, 0xffecd1) AM_READ(ga_io_players_r) |
| 1203 | | AM_RANGE(0xffec96, 0xffec97) AM_READ(ga_io_service_r) |
| 1204 | | AM_RANGE(0xffc000, 0xffffff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 1205 | | ADDRESS_MAP_END |
| 1206 | | |
| 1207 | 1142 | static WRITE16_HANDLER( ga_sound_command_w ) |
| 1208 | 1143 | { |
| 1209 | 1144 | COMBINE_DATA( &sys16_workingram[(0xecfc-0xc000)/2] ); |
| r4499 | r4500 | |
| 1223 | 1158 | COMBINE_DATA( &sys16_workingram[(0xec1c-0xc000)/2] ); |
| 1224 | 1159 | } |
| 1225 | 1160 | |
| 1226 | | static ADDRESS_MAP_START( goldnaxe_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1227 | | AM_RANGE(0x000000, 0x0bffff) AM_WRITE(SMH_ROM) |
| 1228 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1229 | | AM_RANGE(0x110000, 0x110fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1230 | | AM_RANGE(0x140000, 0x140fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1231 | | AM_RANGE(0x1f0000, 0x1f0003) AM_WRITE(SYS16_MWA16_EXTRAM) AM_BASE(&sys16_extraram) |
| 1232 | | AM_RANGE(0x200000, 0x200fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1161 | static ADDRESS_MAP_START( goldnaxe_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1162 | AM_RANGE(0x000000, 0x0bffff) AM_ROM |
| 1163 | AM_RANGE(0x100000, 0x10ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1164 | AM_RANGE(0x110000, 0x110fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1165 | AM_RANGE(0x140000, 0x140fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1166 | AM_RANGE(0x1f0000, 0x1f0003) AM_READWRITE(SYS16_MRA16_EXTRAM, SYS16_MWA16_EXTRAM) AM_BASE(&sys16_extraram) |
| 1167 | AM_RANGE(0x200000, 0x200fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1233 | 1168 | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 1169 | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 1170 | AM_RANGE(0xc41006, 0xc41007) AM_READ_PORT("P2") |
| 1171 | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 1172 | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 1173 | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 1234 | 1174 | AM_RANGE(0xc43000, 0xc43001) AM_WRITENOP // ? |
| 1235 | 1175 | // AM_RANGE(0xfe0006, 0xfe0007) AM_WRITENOP I think this is the real sound out |
| 1236 | 1176 | AM_RANGE(0xffec1c, 0xffec1d) AM_WRITE(goldnaxe_prot_w)// how does this really work? |
| 1177 | AM_RANGE(0xffecd0, 0xffecd1) AM_READ(ga_io_players_r) |
| 1178 | AM_RANGE(0xffec96, 0xffec97) AM_READ(ga_io_service_r) |
| 1237 | 1179 | AM_RANGE(0xffecfc, 0xffecfd) AM_WRITE(ga_sound_command_w)// probably just a buffer |
| 1238 | | AM_RANGE(0xffc000, 0xffffff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) /* fails SCRATCH RAM test because of hacks */ |
| 1180 | AM_RANGE(0xffc000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) /* fails SCRATCH RAM test because of hacks */ |
| 1239 | 1181 | // AM_RANGE(0xfffc00, 0xffffff) AM_WRITE(MWA15_NOP) /* 0x400 bytes; battery backed up */ |
| 1240 | 1182 | ADDRESS_MAP_END |
| 1241 | 1183 | |
| r4499 | r4500 | |
| 1327 | 1269 | /* basic machine hardware */ |
| 1328 | 1270 | MDRV_IMPORT_FROM(system16_7759) |
| 1329 | 1271 | MDRV_CPU_MODIFY("maincpu") |
| 1330 | | MDRV_CPU_PROGRAM_MAP(goldnaxe_readmem,goldnaxe_writemem) |
| 1272 | MDRV_CPU_PROGRAM_MAP(goldnaxe_map,0) |
| 1331 | 1273 | |
| 1332 | 1274 | MDRV_MACHINE_RESET(goldnaxe) |
| 1333 | 1275 | MACHINE_DRIVER_END |
| 1334 | 1276 | |
| 1335 | 1277 | /***************************************************************************/ |
| 1336 | 1278 | |
| 1337 | | static ADDRESS_MAP_START( passsht_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1338 | | AM_RANGE(0x000000, 0x01ffff) AM_READ(SMH_ROM) |
| 1339 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 1340 | | AM_RANGE(0x410000, 0x410fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 1341 | | AM_RANGE(0x440000, 0x440fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 1342 | | AM_RANGE(0x840000, 0x840fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 1279 | static ADDRESS_MAP_START( passsht_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1280 | AM_RANGE(0x000000, 0x01ffff) AM_ROM |
| 1281 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1282 | AM_RANGE(0x410000, 0x410fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1283 | AM_RANGE(0x440000, 0x440fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1284 | AM_RANGE(0x840000, 0x840fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1285 | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 1343 | 1286 | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 1344 | 1287 | AM_RANGE(0xc41004, 0xc41005) AM_READ_PORT("P2") |
| 1345 | 1288 | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 1346 | 1289 | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 1347 | 1290 | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 1348 | | AM_RANGE(0xffc000, 0xffffff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 1349 | | ADDRESS_MAP_END |
| 1350 | | |
| 1351 | | static ADDRESS_MAP_START( passsht_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1352 | | AM_RANGE(0x000000, 0x01ffff) AM_WRITE(SMH_ROM) |
| 1353 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1354 | | AM_RANGE(0x410000, 0x410fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1355 | | AM_RANGE(0x440000, 0x440fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1356 | | AM_RANGE(0x840000, 0x840fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1357 | 1291 | AM_RANGE(0xc42006, 0xc42007) AM_WRITE(sound_command_w) |
| 1358 | | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 1359 | | AM_RANGE(0xffc000, 0xffffff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1292 | AM_RANGE(0xffc000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1360 | 1293 | ADDRESS_MAP_END |
| 1361 | 1294 | |
| 1362 | 1295 | static int passht4b_io1_val; |
| r4499 | r4500 | |
| 1414 | 1347 | return passht4b_io3_val; |
| 1415 | 1348 | } |
| 1416 | 1349 | |
| 1417 | | static ADDRESS_MAP_START( passht4b_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1418 | | AM_RANGE(0x000000, 0x01ffff) AM_READ(SMH_ROM) |
| 1419 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 1420 | | AM_RANGE(0x410000, 0x410fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 1421 | | AM_RANGE(0x440000, 0x440fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 1422 | | AM_RANGE(0x840000, 0x840fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 1350 | static ADDRESS_MAP_START( passht4b_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1351 | AM_RANGE(0x000000, 0x01ffff) AM_ROM |
| 1352 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1353 | AM_RANGE(0x410000, 0x410fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1354 | AM_RANGE(0x440000, 0x440fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1355 | AM_RANGE(0x840000, 0x840fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1423 | 1356 | AM_RANGE(0xc41000, 0xc41001) AM_READ(passht4b_service_r) |
| 1424 | 1357 | AM_RANGE(0xc41002, 0xc41003) AM_READ(passht4b_io1_r) |
| 1425 | 1358 | AM_RANGE(0xc41004, 0xc41005) AM_READ(passht4b_io2_r) |
| 1426 | 1359 | AM_RANGE(0xc41006, 0xc41007) AM_READ(passht4b_io3_r) |
| 1427 | | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 1428 | 1360 | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 1361 | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 1362 | AM_RANGE(0xc42006, 0xc42007) AM_WRITE(sound_command_w) |
| 1429 | 1363 | AM_RANGE(0xc43000, 0xc43001) AM_READ_PORT("P1") // test mode only |
| 1430 | 1364 | AM_RANGE(0xc43002, 0xc43003) AM_READ_PORT("P2") |
| 1431 | 1365 | AM_RANGE(0xc43004, 0xc43005) AM_READ_PORT("P3") |
| 1432 | 1366 | AM_RANGE(0xc43006, 0xc43007) AM_READ_PORT("P4") |
| 1433 | | AM_RANGE(0xffc000, 0xffffff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 1434 | | ADDRESS_MAP_END |
| 1435 | | |
| 1436 | | static ADDRESS_MAP_START( passht4b_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1437 | | AM_RANGE(0x000000, 0x01ffff) AM_WRITE(SMH_ROM) |
| 1438 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1439 | | AM_RANGE(0x410000, 0x410fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1440 | | AM_RANGE(0x440000, 0x440fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1441 | | AM_RANGE(0x840000, 0x840fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1442 | | AM_RANGE(0xc42006, 0xc42007) AM_WRITE(sound_command_w) |
| 1443 | 1367 | AM_RANGE(0xc4600a, 0xc4600b) AM_WRITE(sys16_coinctrl_w) /* coin counter doesn't work */ |
| 1444 | | AM_RANGE(0xffc000, 0xffffff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1368 | AM_RANGE(0xffc000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1445 | 1369 | ADDRESS_MAP_END |
| 1446 | 1370 | |
| 1447 | 1371 | /***************************************************************************/ |
| r4499 | r4500 | |
| 1599 | 1523 | /* basic machine hardware */ |
| 1600 | 1524 | MDRV_IMPORT_FROM(system16_7759) |
| 1601 | 1525 | MDRV_CPU_MODIFY("maincpu") |
| 1602 | | MDRV_CPU_PROGRAM_MAP(passsht_readmem,passsht_writemem) |
| 1526 | MDRV_CPU_PROGRAM_MAP(passsht_map,0) |
| 1603 | 1527 | |
| 1604 | 1528 | MDRV_MACHINE_RESET(passsht) |
| 1605 | 1529 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 1610 | 1534 | /* basic machine hardware */ |
| 1611 | 1535 | MDRV_IMPORT_FROM(system16_7759) |
| 1612 | 1536 | MDRV_CPU_MODIFY("maincpu") |
| 1613 | | MDRV_CPU_PROGRAM_MAP(passht4b_readmem,passht4b_writemem) |
| 1537 | MDRV_CPU_PROGRAM_MAP(passht4b_map,0) |
| 1614 | 1538 | |
| 1615 | 1539 | MDRV_MACHINE_RESET(passht4b) |
| 1616 | 1540 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 1647 | 1571 | |
| 1648 | 1572 | /***************************************************************************/ |
| 1649 | 1573 | |
| 1650 | | static ADDRESS_MAP_START( shinobl_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1651 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 1652 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 1653 | | AM_RANGE(0x410000, 0x410fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 1654 | | AM_RANGE(0x440000, 0x440fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 1655 | | AM_RANGE(0x840000, 0x840fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 1574 | static ADDRESS_MAP_START( shinobl_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1575 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 1576 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1577 | AM_RANGE(0x410000, 0x410fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1578 | AM_RANGE(0x440000, 0x440fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1579 | AM_RANGE(0x840000, 0x840fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1580 | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sound_command_nmi_w) |
| 1581 | AM_RANGE(0xc40002, 0xc40003) AM_WRITE(sys16_3d_coinctrl_w) |
| 1582 | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 1656 | 1583 | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 1657 | 1584 | AM_RANGE(0xc41006, 0xc41007) AM_READ_PORT("P2") |
| 1658 | | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 1659 | 1585 | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW1") |
| 1660 | 1586 | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW2") |
| 1661 | | AM_RANGE(0xffc000, 0xffffff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 1587 | AM_RANGE(0xffc000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1662 | 1588 | ADDRESS_MAP_END |
| 1663 | 1589 | |
| 1664 | | static ADDRESS_MAP_START( shinobl_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1665 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1666 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1667 | | AM_RANGE(0x410000, 0x410fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1668 | | AM_RANGE(0x440000, 0x440fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1669 | | AM_RANGE(0x840000, 0x840fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1670 | | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sound_command_nmi_w) |
| 1671 | | AM_RANGE(0xc40002, 0xc40003) AM_WRITE(sys16_3d_coinctrl_w) |
| 1672 | | AM_RANGE(0xffc000, 0xffffff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1673 | | ADDRESS_MAP_END |
| 1674 | | |
| 1675 | 1590 | /***************************************************************************/ |
| 1676 | 1591 | |
| 1677 | 1592 | static void shinobl_update_proc( void ) |
| r4499 | r4500 | |
| 1712 | 1627 | /* basic machine hardware */ |
| 1713 | 1628 | MDRV_IMPORT_FROM(system16) |
| 1714 | 1629 | MDRV_CPU_MODIFY("maincpu") |
| 1715 | | MDRV_CPU_PROGRAM_MAP(shinobl_readmem,shinobl_writemem) |
| 1630 | MDRV_CPU_PROGRAM_MAP(shinobl_map,0) |
| 1716 | 1631 | |
| 1717 | 1632 | MDRV_MACHINE_RESET(shinobl) |
| 1718 | 1633 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 1721 | 1636 | |
| 1722 | 1637 | /* bootleg has extra ram for regs? */ |
| 1723 | 1638 | |
| 1724 | | static ADDRESS_MAP_START( tetrisbl_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1725 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 1726 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 1727 | | AM_RANGE(0x410000, 0x410fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 1728 | | AM_RANGE(0x418000, 0x41803f) AM_READ(SYS16_MRA16_EXTRAM2) |
| 1729 | | AM_RANGE(0x440000, 0x440fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 1730 | | AM_RANGE(0x840000, 0x840fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 1639 | static ADDRESS_MAP_START( tetrisbl_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1640 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 1641 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1642 | AM_RANGE(0x410000, 0x410fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1643 | AM_RANGE(0x418000, 0x41803f) AM_READWRITE(SYS16_MRA16_EXTRAM2, SYS16_MWA16_EXTRAM2) AM_BASE(&sys16_extraram2) |
| 1644 | AM_RANGE(0x440000, 0x440fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1645 | AM_RANGE(0x840000, 0x840fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1646 | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 1647 | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 1731 | 1648 | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 1732 | 1649 | AM_RANGE(0xc41006, 0xc41007) AM_READ_PORT("P2") |
| 1733 | | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 1734 | | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 1735 | 1650 | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 1736 | | AM_RANGE(0xc80000, 0xc80001) AM_READNOP |
| 1737 | | AM_RANGE(0xffc000, 0xffffff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 1738 | | ADDRESS_MAP_END |
| 1739 | | |
| 1740 | | static ADDRESS_MAP_START( tetrisbl_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1741 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1742 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1743 | | AM_RANGE(0x410000, 0x410fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1744 | | AM_RANGE(0x418000, 0x41803f) AM_WRITE(SYS16_MWA16_EXTRAM2) AM_BASE(&sys16_extraram2) |
| 1745 | | AM_RANGE(0x440000, 0x440fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1746 | | AM_RANGE(0x840000, 0x840fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1747 | | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 1651 | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 1748 | 1652 | AM_RANGE(0xc42006, 0xc42007) AM_WRITE(sound_command_w) |
| 1749 | 1653 | AM_RANGE(0xc43034, 0xc43035) AM_WRITENOP |
| 1750 | | AM_RANGE(0xc80000, 0xc80001) AM_WRITENOP |
| 1751 | | AM_RANGE(0xffc000, 0xffffff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1654 | AM_RANGE(0xc80000, 0xc80001) AM_NOP |
| 1655 | AM_RANGE(0xffc000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1752 | 1656 | ADDRESS_MAP_END |
| 1753 | 1657 | |
| 1754 | 1658 | |
| r4499 | r4500 | |
| 1765 | 1669 | } |
| 1766 | 1670 | |
| 1767 | 1671 | static ADDRESS_MAP_START( beautyb_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1768 | | AM_RANGE(0x000000, 0x00ffff) AM_READWRITE(SMH_ROM, SMH_NOP) |
| 1672 | AM_RANGE(0x000000, 0x00ffff) AM_ROM |
| 1769 | 1673 | //AM_RANGE(0x010000, 0x03ffff) AM_WRITENOP |
| 1770 | 1674 | |
| 1771 | 1675 | AM_RANGE(0x0280D6, 0x0280D7) AM_READ(beautyb_unk2_r) |
| r4499 | r4500 | |
| 1783 | 1687 | AM_RANGE(0xc40000, 0xc40001) AM_WRITENOP |
| 1784 | 1688 | AM_RANGE(0xc80000, 0xc80001) AM_WRITENOP |
| 1785 | 1689 | |
| 1786 | | AM_RANGE(0xffc000, 0xffffff) AM_RAM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1690 | AM_RANGE(0xffc000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1787 | 1691 | ADDRESS_MAP_END |
| 1788 | 1692 | |
| 1789 | 1693 | /***************************************************************************/ |
| r4499 | r4500 | |
| 1854 | 1758 | /* basic machine hardware */ |
| 1855 | 1759 | MDRV_IMPORT_FROM(system16) |
| 1856 | 1760 | MDRV_CPU_MODIFY("maincpu") |
| 1857 | | MDRV_CPU_PROGRAM_MAP(tetrisbl_readmem,tetrisbl_writemem) |
| 1761 | MDRV_CPU_PROGRAM_MAP(tetrisbl_map,0) |
| 1858 | 1762 | |
| 1859 | 1763 | MDRV_MACHINE_RESET(tetrisbl) |
| 1860 | 1764 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 1943 | 1847 | |
| 1944 | 1848 | /***************************************************************************/ |
| 1945 | 1849 | |
| 1946 | | static ADDRESS_MAP_START( tturfbl_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1947 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 1850 | static ADDRESS_MAP_START( tturfbl_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1851 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 1948 | 1852 | AM_RANGE(0x2001e6, 0x2001e7) AM_READ(tt_io_service_r) |
| 1949 | 1853 | AM_RANGE(0x2001e8, 0x2001e9) AM_READ(tt_io_player1_r) |
| 1950 | 1854 | AM_RANGE(0x2001ea, 0x2001eb) AM_READ(tt_io_player2_r) |
| 1951 | | AM_RANGE(0x200000, 0x203fff) AM_READ(SYS16_MRA16_EXTRAM) |
| 1952 | | AM_RANGE(0x300000, 0x300fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 1953 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 1954 | | AM_RANGE(0x410000, 0x410fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 1955 | | AM_RANGE(0x500000, 0x500fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 1956 | | AM_RANGE(0x600002, 0x600003) AM_READ_PORT("DSW1") |
| 1855 | AM_RANGE(0x200000, 0x203fff) AM_READWRITE(SYS16_MRA16_EXTRAM, SYS16_MWA16_EXTRAM) AM_BASE(&sys16_extraram) |
| 1856 | AM_RANGE(0x300000, 0x300fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1857 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1858 | AM_RANGE(0x410000, 0x410fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1859 | AM_RANGE(0x500000, 0x500fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1860 | AM_RANGE(0x600000, 0x600001) AM_WRITE(sys16_coinctrl_w) |
| 1957 | 1861 | AM_RANGE(0x600000, 0x600001) AM_READ_PORT("DSW2") |
| 1862 | AM_RANGE(0x600002, 0x600003) AM_READ_PORT("DSW1") |
| 1863 | AM_RANGE(0x600006, 0x600007) AM_WRITE(sound_command_w) |
| 1864 | AM_RANGE(0x601000, 0x601001) AM_READ_PORT("SERVICE") |
| 1958 | 1865 | AM_RANGE(0x601002, 0x601003) AM_READ_PORT("P1") |
| 1959 | 1866 | AM_RANGE(0x601004, 0x601005) AM_READ_PORT("P2") |
| 1960 | | AM_RANGE(0x601000, 0x601001) AM_READ_PORT("SERVICE") |
| 1961 | | AM_RANGE(0x602002, 0x602003) AM_READ_PORT("DSW1") |
| 1962 | 1867 | AM_RANGE(0x602000, 0x602001) AM_READ_PORT("DSW2") |
| 1963 | | AM_RANGE(0xc46000, 0xc4601f) AM_READ(SYS16_MRA16_EXTRAM3) |
| 1964 | | ADDRESS_MAP_END |
| 1965 | | |
| 1966 | | static ADDRESS_MAP_START( tturfbl_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1967 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1968 | | AM_RANGE(0x200000, 0x203fff) AM_WRITE(SYS16_MWA16_EXTRAM) AM_BASE(&sys16_extraram) |
| 1969 | | AM_RANGE(0x300000, 0x300fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1970 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1971 | | AM_RANGE(0x410000, 0x410fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1972 | | AM_RANGE(0x500000, 0x500fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1973 | | AM_RANGE(0x600000, 0x600001) AM_WRITE(sys16_coinctrl_w) |
| 1974 | | AM_RANGE(0x600006, 0x600007) AM_WRITE(sound_command_w) |
| 1868 | AM_RANGE(0x602002, 0x602003) AM_READ_PORT("DSW1") |
| 1975 | 1869 | AM_RANGE(0xc44000, 0xc44001) AM_WRITENOP |
| 1976 | | AM_RANGE(0xc46000, 0xc4601f) AM_WRITE(SYS16_MWA16_EXTRAM3) AM_BASE(&sys16_extraram3) |
| 1870 | AM_RANGE(0xc46000, 0xc4601f) AM_READWRITE(SYS16_MRA16_EXTRAM3, SYS16_MWA16_EXTRAM3) AM_BASE(&sys16_extraram3) |
| 1977 | 1871 | AM_RANGE(0xff0020, 0xff003f) AM_WRITENOP // config regs |
| 1978 | 1872 | ADDRESS_MAP_END |
| 1979 | 1873 | |
| r4499 | r4500 | |
| 2036 | 1930 | /* basic machine hardware */ |
| 2037 | 1931 | MDRV_IMPORT_FROM(system16_7759) |
| 2038 | 1932 | MDRV_CPU_MODIFY("maincpu") |
| 2039 | | MDRV_CPU_PROGRAM_MAP(tturfbl_readmem,tturfbl_writemem) |
| 1933 | MDRV_CPU_PROGRAM_MAP(tturfbl_map,0) |
| 2040 | 1934 | |
| 2041 | 1935 | MDRV_CPU_MODIFY("soundcpu") |
| 2042 | | MDRV_CPU_PROGRAM_MAP(tturfbl_sound_readmem,tturfbl_sound_writemem) |
| 2043 | | MDRV_CPU_IO_MAP(tturfbl_sound_readport,tturfbl_sound_writeport) |
| 1936 | MDRV_CPU_PROGRAM_MAP(tturfbl_sound_map,0) |
| 1937 | MDRV_CPU_IO_MAP(tturfbl_sound_io_map,0) |
| 2044 | 1938 | |
| 2045 | 1939 | MDRV_SOUND_REMOVE("7759") |
| 2046 | 1940 | MDRV_SOUND_ADD("5205", MSM5205, 220000) |
| r4499 | r4500 | |
| 2081 | 1975 | |
| 2082 | 1976 | /***************************************************************************/ |
| 2083 | 1977 | |
| 2084 | | static ADDRESS_MAP_START( wb3bbl_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 2085 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 2086 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SYS16_MRA16_TILERAM) |
| 2087 | | AM_RANGE(0x410000, 0x410fff) AM_READ(SYS16_MRA16_TEXTRAM) |
| 2088 | | AM_RANGE(0x440000, 0x440fff) AM_READ(SYS16_MRA16_SPRITERAM) |
| 2089 | | AM_RANGE(0x840000, 0x840fff) AM_READ(SYS16_MRA16_PALETTERAM) |
| 1978 | static ADDRESS_MAP_START( wb3bbl_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1979 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 1980 | AM_RANGE(0x3f0000, 0x3fffff) AM_WRITE(sys16_tilebank_w) |
| 1981 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(SYS16_MRA16_TILERAM, SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 1982 | AM_RANGE(0x410000, 0x410fff) AM_READWRITE(SYS16_MRA16_TEXTRAM, SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 1983 | AM_RANGE(0x440000, 0x440fff) AM_READWRITE(SYS16_MRA16_SPRITERAM, SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 1984 | AM_RANGE(0x840000, 0x840fff) AM_READWRITE(SYS16_MRA16_PALETTERAM, SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 1985 | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 1986 | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 2090 | 1987 | AM_RANGE(0xc41002, 0xc41003) AM_READ_PORT("P1") |
| 2091 | 1988 | AM_RANGE(0xc41004, 0xc41005) AM_READ_PORT("P2") |
| 2092 | | AM_RANGE(0xc41000, 0xc41001) AM_READ_PORT("SERVICE") |
| 2093 | | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 2094 | 1989 | AM_RANGE(0xc42000, 0xc42001) AM_READ_PORT("DSW2") |
| 2095 | | AM_RANGE(0xc46000, 0xc4601f) AM_READ(SYS16_MRA16_EXTRAM3) |
| 2096 | | AM_RANGE(0xff0000, 0xffffff) AM_READ(SYS16_MRA16_WORKINGRAM) |
| 2097 | | ADDRESS_MAP_END |
| 2098 | | |
| 2099 | | static ADDRESS_MAP_START( wb3bbl_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 2100 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 2101 | | AM_RANGE(0x3f0000, 0x3fffff) AM_WRITE(sys16_tilebank_w) |
| 2102 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SYS16_MWA16_TILERAM) AM_BASE(&sys16_tileram) |
| 2103 | | AM_RANGE(0x410000, 0x410fff) AM_WRITE(SYS16_MWA16_TEXTRAM) AM_BASE(&sys16_textram) |
| 2104 | | AM_RANGE(0x440000, 0x440fff) AM_WRITE(SYS16_MWA16_SPRITERAM) AM_BASE(&sys16_spriteram) |
| 2105 | | AM_RANGE(0x840000, 0x840fff) AM_WRITE(SYS16_MWA16_PALETTERAM) AM_BASE(&paletteram16) |
| 2106 | | AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sys16_coinctrl_w) |
| 1990 | AM_RANGE(0xc42002, 0xc42003) AM_READ_PORT("DSW1") |
| 2107 | 1991 | AM_RANGE(0xc42006, 0xc42007) AM_WRITE(sound_command_w) |
| 2108 | 1992 | AM_RANGE(0xc44000, 0xc44001) AM_WRITENOP |
| 2109 | | AM_RANGE(0xc46000, 0xc4601f) AM_WRITE(SYS16_MWA16_EXTRAM3) AM_BASE(&sys16_extraram3) |
| 2110 | | AM_RANGE(0xff0000, 0xffffff) AM_WRITE(SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 1993 | AM_RANGE(0xc46000, 0xc4601f) AM_READWRITE(SYS16_MRA16_EXTRAM3, SYS16_MWA16_EXTRAM3) AM_BASE(&sys16_extraram3) |
| 1994 | AM_RANGE(0xff0000, 0xffffff) AM_READWRITE(SYS16_MRA16_WORKINGRAM, SYS16_MWA16_WORKINGRAM) AM_BASE(&sys16_workingram) |
| 2111 | 1995 | ADDRESS_MAP_END |
| 2112 | 1996 | |
| 2113 | 1997 | /***************************************************************************/ |
| r4499 | r4500 | |
| 2180 | 2064 | /* basic machine hardware */ |
| 2181 | 2065 | MDRV_IMPORT_FROM(system16) |
| 2182 | 2066 | MDRV_CPU_MODIFY("maincpu") |
| 2183 | | MDRV_CPU_PROGRAM_MAP(wb3bbl_readmem,wb3bbl_writemem) |
| 2067 | MDRV_CPU_PROGRAM_MAP(wb3bbl_map,0) |
| 2184 | 2068 | |
| 2185 | 2069 | MDRV_MACHINE_RESET(wb3bbl) |
| 2186 | 2070 | MACHINE_DRIVER_END |
src/mame/drivers/taito_b.c
| r4499 | r4500 | |
| 466 | 466 | |
| 467 | 467 | |
| 468 | 468 | |
| 469 | | #define TC0180VCU_MEMR( ADDR ) \ |
| 470 | | AM_RANGE(ADDR+0x00000, ADDR+0x0ffff) AM_READ(TC0180VCU_word_r) \ |
| 471 | | AM_RANGE(ADDR+0x10000, ADDR+0x1197f) AM_READ(SMH_RAM) \ |
| 472 | | AM_RANGE(ADDR+0x11980, ADDR+0x137ff) AM_READ(SMH_RAM) \ |
| 473 | | AM_RANGE(ADDR+0x13800, ADDR+0x13fff) AM_READ(SMH_RAM) \ |
| 474 | | AM_RANGE(ADDR+0x18000, ADDR+0x1801f) AM_READ(taitob_v_control_r) \ |
| 475 | | AM_RANGE(ADDR+0x40000, ADDR+0x7ffff) AM_READ(TC0180VCU_framebuffer_word_r) |
| 469 | #define TC0180VCU_MEMRW( ADDR ) \ |
| 470 | AM_RANGE(ADDR+0x00000, ADDR+0x0ffff) AM_READWRITE(TC0180VCU_word_r, TC0180VCU_word_w) AM_BASE(&TC0180VCU_ram) \ |
| 471 | AM_RANGE(ADDR+0x10000, ADDR+0x1197f) AM_RAM AM_BASE(&taitob_spriteram) \ |
| 472 | AM_RANGE(ADDR+0x11980, ADDR+0x137ff) AM_RAM \ |
| 473 | AM_RANGE(ADDR+0x13800, ADDR+0x13fff) AM_RAM AM_BASE(&taitob_scroll) \ |
| 474 | AM_RANGE(ADDR+0x18000, ADDR+0x1801f) AM_READWRITE(taitob_v_control_r, taitob_v_control_w) \ |
| 475 | AM_RANGE(ADDR+0x40000, ADDR+0x7ffff) AM_READWRITE(TC0180VCU_framebuffer_word_r, TC0180VCU_framebuffer_word_w) |
| 476 | 476 | |
| 477 | | #define TC0180VCU_MEMW( ADDR ) \ |
| 478 | | AM_RANGE(ADDR+0x00000, ADDR+0x0ffff) AM_WRITE(TC0180VCU_word_w) AM_BASE(&TC0180VCU_ram) \ |
| 479 | | AM_RANGE(ADDR+0x10000, ADDR+0x1197f) AM_WRITE(SMH_RAM) AM_BASE(&taitob_spriteram) \ |
| 480 | | AM_RANGE(ADDR+0x11980, ADDR+0x137ff) AM_WRITE(SMH_RAM) \ |
| 481 | | AM_RANGE(ADDR+0x13800, ADDR+0x13fff) AM_WRITE(SMH_RAM) AM_BASE(&taitob_scroll) \ |
| 482 | | AM_RANGE(ADDR+0x18000, ADDR+0x1801f) AM_WRITE(taitob_v_control_w) \ |
| 483 | | AM_RANGE(ADDR+0x40000, ADDR+0x7ffff) AM_WRITE(TC0180VCU_framebuffer_word_w) |
| 484 | 477 | |
| 485 | | |
| 486 | | static ADDRESS_MAP_START( rastsag2_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 487 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 488 | | AM_RANGE(0x600000, 0x607fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 489 | | |
| 490 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) /* palette */ |
| 491 | | |
| 492 | | TC0180VCU_MEMR( 0x400000 ) |
| 493 | | |
| 494 | | AM_RANGE(0xa00000, 0xa0000f) AM_READ(TC0220IOC_halfword_byteswap_r) |
| 495 | | |
| 496 | | AM_RANGE(0x800000, 0x800001) AM_READNOP |
| 497 | | AM_RANGE(0x800002, 0x800003) AM_READ8(taitosound_comm_r, 0xff00) |
| 478 | static ADDRESS_MAP_START( rastsag2_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 479 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 480 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 481 | AM_RANGE(0x600000, 0x607fff) AM_RAM /* Main RAM */ /*ashura up to 603fff only*/ |
| 482 | TC0180VCU_MEMRW( 0x400000 ) |
| 483 | AM_RANGE(0x800000, 0x800001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 484 | AM_RANGE(0x800002, 0x800003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 485 | AM_RANGE(0xa00000, 0xa0000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0xff00) |
| 498 | 486 | ADDRESS_MAP_END |
| 499 | 487 | |
| 500 | | static ADDRESS_MAP_START( rastsag2_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 501 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 502 | | AM_RANGE(0x600000, 0x607fff) AM_WRITE(SMH_RAM) /* Main RAM */ /*ashura up to 603fff only*/ |
| 503 | 488 | |
| 504 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 505 | | |
| 506 | | TC0180VCU_MEMW( 0x400000 ) |
| 507 | | |
| 508 | | AM_RANGE(0xa00000, 0xa0000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) |
| 509 | | |
| 510 | | AM_RANGE(0x800000, 0x800001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 511 | | AM_RANGE(0x800002, 0x800003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 489 | static ADDRESS_MAP_START( crimec_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 490 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 491 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0xff00) |
| 492 | TC0180VCU_MEMRW( 0x400000 ) |
| 493 | AM_RANGE(0x600000, 0x600001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 494 | AM_RANGE(0x600002, 0x600003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 495 | AM_RANGE(0x800000, 0x801fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 496 | AM_RANGE(0xa00000, 0xa0ffff) AM_RAM /* Main RAM */ |
| 512 | 497 | ADDRESS_MAP_END |
| 513 | 498 | |
| 514 | 499 | |
| 515 | | static ADDRESS_MAP_START( crimec_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 516 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 517 | | AM_RANGE(0xa00000, 0xa0ffff) AM_READ(SMH_RAM) /* Main RAM */ |
| 518 | | |
| 519 | | AM_RANGE(0x800000, 0x801fff) AM_READ(SMH_RAM) |
| 520 | | |
| 521 | | TC0180VCU_MEMR( 0x400000 ) |
| 522 | | |
| 523 | | AM_RANGE(0x200000, 0x20000f) AM_READ(TC0220IOC_halfword_byteswap_r) |
| 524 | | |
| 525 | | AM_RANGE(0x600000, 0x600001) AM_READNOP |
| 526 | | AM_RANGE(0x600002, 0x600003) AM_READ8(taitosound_comm_r, 0xff00) |
| 500 | static ADDRESS_MAP_START( tetrist_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 501 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 502 | AM_RANGE(0x200000, 0x200001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 503 | AM_RANGE(0x200002, 0x200003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 504 | TC0180VCU_MEMRW( 0x400000 ) |
| 505 | AM_RANGE(0x600000, 0x60000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0xff00) |
| 506 | AM_RANGE(0x800000, 0x807fff) AM_RAM /* Main RAM */ |
| 507 | AM_RANGE(0xa00000, 0xa01fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 527 | 508 | ADDRESS_MAP_END |
| 528 | 509 | |
| 529 | | static ADDRESS_MAP_START( crimec_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 530 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 531 | | AM_RANGE(0xa00000, 0xa0ffff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 532 | | |
| 533 | | AM_RANGE(0x800000, 0x801fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 534 | | |
| 535 | | TC0180VCU_MEMW( 0x400000 ) |
| 536 | | |
| 537 | | AM_RANGE(0x200000, 0x20000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) |
| 538 | | |
| 539 | | AM_RANGE(0x600000, 0x600001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 540 | | AM_RANGE(0x600002, 0x600003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 510 | static ADDRESS_MAP_START( tetrista_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 511 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 512 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 513 | TC0180VCU_MEMRW( 0x400000 ) |
| 514 | AM_RANGE(0x600000, 0x600001) AM_READWRITE8(TC0220IOC_portreg_r, TC0220IOC_portreg_w, 0xff00) |
| 515 | AM_RANGE(0x600002, 0x600003) AM_READWRITE8(TC0220IOC_port_r, TC0220IOC_port_w, 0xff00) |
| 516 | AM_RANGE(0x800000, 0x803fff) AM_RAM /* Main RAM */ |
| 517 | AM_RANGE(0xa00000, 0xa00001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 518 | AM_RANGE(0xa00002, 0xa00003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 541 | 519 | ADDRESS_MAP_END |
| 542 | 520 | |
| 543 | 521 | |
| 544 | | static ADDRESS_MAP_START( tetrist_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 545 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 546 | | AM_RANGE(0x800000, 0x807fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 547 | | |
| 548 | | AM_RANGE(0xa00000, 0xa01fff) AM_READ(SMH_RAM) /*palette*/ |
| 549 | | |
| 550 | | TC0180VCU_MEMR( 0x400000 ) |
| 551 | | |
| 552 | | AM_RANGE(0x600000, 0x60000f) AM_READ(TC0220IOC_halfword_byteswap_r) |
| 553 | | |
| 554 | | AM_RANGE(0x200000, 0x200001) AM_READNOP |
| 555 | | AM_RANGE(0x200002, 0x200003) AM_READ8(taitosound_comm_r, 0xff00) |
| 556 | | ADDRESS_MAP_END |
| 557 | | |
| 558 | | static ADDRESS_MAP_START( tetrist_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 559 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 560 | | AM_RANGE(0x800000, 0x807fff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 561 | | |
| 562 | | AM_RANGE(0xa00000, 0xa01fff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 563 | | |
| 564 | | TC0180VCU_MEMW( 0x400000 ) |
| 565 | | |
| 566 | | AM_RANGE(0x600000, 0x60000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) |
| 567 | | |
| 568 | | AM_RANGE(0x200000, 0x200001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 569 | | AM_RANGE(0x200002, 0x200003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 570 | | ADDRESS_MAP_END |
| 571 | | |
| 572 | | static ADDRESS_MAP_START( tetrista_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 573 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 574 | | AM_RANGE(0x800000, 0x803fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 575 | | |
| 576 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) /*palette*/ |
| 577 | | |
| 578 | | TC0180VCU_MEMR( 0x400000 ) |
| 579 | | |
| 580 | | AM_RANGE(0x600000, 0x600001) AM_READ(TC0220IOC_halfword_byteswap_portreg_r) /* DSW A/B, player inputs*/ |
| 581 | | AM_RANGE(0x600002, 0x600003) AM_READ(TC0220IOC_halfword_byteswap_port_r /*watchdog_reset16_r*/ ) |
| 582 | | |
| 583 | | AM_RANGE(0xa00000, 0xa00001) AM_READNOP |
| 584 | | AM_RANGE(0xa00002, 0xa00003) AM_READ8(taitosound_comm_r, 0xff00) |
| 585 | | ADDRESS_MAP_END |
| 586 | | |
| 587 | | static ADDRESS_MAP_START( tetrista_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 588 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 589 | | AM_RANGE(0x800000, 0x803fff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 590 | | |
| 591 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 592 | | |
| 593 | | TC0180VCU_MEMW( 0x400000 ) |
| 594 | | |
| 595 | | AM_RANGE(0x600000, 0x600001) AM_WRITE(TC0220IOC_halfword_byteswap_portreg_w) |
| 596 | | AM_RANGE(0x600002, 0x600003) AM_WRITE(TC0220IOC_halfword_byteswap_port_w) |
| 597 | | |
| 598 | | AM_RANGE(0xa00000, 0xa00001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 599 | | AM_RANGE(0xa00002, 0xa00003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 600 | | ADDRESS_MAP_END |
| 601 | | |
| 602 | | static ADDRESS_MAP_START( hitice_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 603 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 604 | | AM_RANGE(0x800000, 0x803fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 605 | | |
| 606 | | AM_RANGE(0xa00000, 0xa01fff) AM_READ(SMH_RAM) |
| 607 | | |
| 608 | | TC0180VCU_MEMR( 0x400000 ) |
| 609 | | |
| 610 | | AM_RANGE(0x600000, 0x60000f) AM_READ(TC0220IOC_halfword_byteswap_r) |
| 522 | static ADDRESS_MAP_START( hitice_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 523 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 524 | TC0180VCU_MEMRW( 0x400000 ) |
| 525 | AM_RANGE(0x600000, 0x60000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0xff00) |
| 611 | 526 | AM_RANGE(0x610000, 0x610001) AM_READ_PORT("P3_P4") |
| 612 | | |
| 613 | | AM_RANGE(0x700000, 0x700001) AM_READNOP |
| 614 | | AM_RANGE(0x700002, 0x700003) AM_READ8(taitosound_comm_r, 0xff00) |
| 615 | | |
| 616 | | AM_RANGE(0xb00000, 0xb7ffff) AM_READ(SMH_RAM) |
| 617 | | ADDRESS_MAP_END |
| 618 | | |
| 619 | | static ADDRESS_MAP_START( hitice_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 620 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 621 | | AM_RANGE(0x800000, 0x803fff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 622 | | |
| 623 | | AM_RANGE(0xa00000, 0xa01fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 624 | | |
| 625 | | TC0180VCU_MEMW( 0x400000 ) |
| 626 | | |
| 627 | | AM_RANGE(0x600000, 0x60000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) |
| 628 | | |
| 629 | | AM_RANGE(0x700000, 0x700001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 630 | | AM_RANGE(0x700002, 0x700003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 631 | | |
| 632 | | AM_RANGE(0xb00000, 0xb7ffff) AM_WRITE(hitice_pixelram_w) AM_BASE(&taitob_pixelram) |
| 527 | AM_RANGE(0x700000, 0x700001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 528 | AM_RANGE(0x700002, 0x700003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 529 | AM_RANGE(0x800000, 0x803fff) AM_RAM /* Main RAM */ |
| 530 | AM_RANGE(0xa00000, 0xa01fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 531 | AM_RANGE(0xb00000, 0xb7ffff) AM_RAM_WRITE(hitice_pixelram_w) AM_BASE(&taitob_pixelram) |
| 633 | 532 | // { 0xbffff0, 0xbffff1, ??? |
| 634 | 533 | AM_RANGE(0xbffff2, 0xbffff5) AM_WRITE(hitice_pixel_scroll_w) |
| 635 | 534 | // { 0xbffffa, 0xbffffb, ??? |
| 636 | 535 | ADDRESS_MAP_END |
| 637 | 536 | |
| 638 | 537 | |
| 639 | | static ADDRESS_MAP_START( rambo3_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 640 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 641 | | AM_RANGE(0x800000, 0x803fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 642 | | |
| 643 | | AM_RANGE(0xa00000, 0xa01fff) AM_READ(SMH_RAM) |
| 644 | | |
| 645 | | TC0180VCU_MEMR( 0x400000 ) |
| 646 | | |
| 647 | | AM_RANGE(0x600000, 0x60000f) AM_READ(TC0220IOC_halfword_byteswap_r) |
| 538 | static ADDRESS_MAP_START( rambo3_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 539 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 540 | AM_RANGE(0x200000, 0x200001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 541 | AM_RANGE(0x200002, 0x200003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 542 | TC0180VCU_MEMRW( 0x400000 ) |
| 543 | AM_RANGE(0x600000, 0x60000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0xff00) |
| 648 | 544 | AM_RANGE(0x600010, 0x600011) AM_READ(tracky1_lo_r) /*player 1*/ |
| 649 | 545 | AM_RANGE(0x600012, 0x600013) AM_READ(tracky1_hi_r) |
| 650 | 546 | AM_RANGE(0x600014, 0x600015) AM_READ(trackx1_lo_r) |
| r4499 | r4500 | |
| 653 | 549 | AM_RANGE(0x60001a, 0x60001b) AM_READ(tracky2_hi_r) |
| 654 | 550 | AM_RANGE(0x60001c, 0x60001d) AM_READ(trackx2_lo_r) |
| 655 | 551 | AM_RANGE(0x60001e, 0x60001f) AM_READ(trackx2_hi_r) |
| 656 | | |
| 657 | | AM_RANGE(0x200000, 0x200001) AM_READNOP |
| 658 | | AM_RANGE(0x200002, 0x200003) AM_READ8(taitosound_comm_r, 0xff00) |
| 552 | AM_RANGE(0x800000, 0x803fff) AM_RAM /* Main RAM */ |
| 553 | AM_RANGE(0xa00000, 0xa01fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 659 | 554 | ADDRESS_MAP_END |
| 660 | 555 | |
| 661 | | static ADDRESS_MAP_START( rambo3_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 662 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 663 | | AM_RANGE(0x800000, 0x803fff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 664 | 556 | |
| 665 | | AM_RANGE(0xa00000, 0xa01fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 666 | | |
| 667 | | TC0180VCU_MEMW( 0x400000 ) |
| 668 | | |
| 669 | | AM_RANGE(0x600000, 0x60000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) |
| 670 | | |
| 671 | | AM_RANGE(0x200000, 0x200001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 672 | | AM_RANGE(0x200002, 0x200003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 673 | | ADDRESS_MAP_END |
| 674 | | |
| 675 | | |
| 676 | | static ADDRESS_MAP_START( pbobble_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 677 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 678 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) /* Main RAM */ |
| 679 | | |
| 680 | | AM_RANGE(0x800000, 0x801fff) AM_READ(SMH_RAM) |
| 681 | | |
| 682 | | TC0180VCU_MEMR( 0x400000 ) |
| 683 | | |
| 684 | | AM_RANGE(0x500000, 0x50000f) AM_READ(pbobble_input_bypass_r) |
| 557 | static ADDRESS_MAP_START( pbobble_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 558 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 559 | TC0180VCU_MEMRW( 0x400000 ) |
| 560 | AM_RANGE(0x500000, 0x50000f) AM_READWRITE(pbobble_input_bypass_r, TC0640FIO_halfword_byteswap_w) |
| 685 | 561 | AM_RANGE(0x500024, 0x500025) AM_READ_PORT("IN3") /* shown in service mode, game omits to read it */ |
| 686 | | AM_RANGE(0x500026, 0x500027) AM_READ(eep_latch_r) /* not read by this game */ |
| 687 | | AM_RANGE(0x50002e, 0x50002f) AM_READ_PORT("IN4") /* shown in service mode, game omits to read it */ |
| 688 | | |
| 689 | | AM_RANGE(0x700000, 0x700001) AM_READNOP |
| 690 | | AM_RANGE(0x700002, 0x700003) AM_READ8(taitosound_comm_r, 0xff00) |
| 691 | | ADDRESS_MAP_END |
| 692 | | |
| 693 | | static ADDRESS_MAP_START( pbobble_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 694 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 695 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 696 | | |
| 697 | | AM_RANGE(0x800000, 0x801fff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 698 | | |
| 699 | | TC0180VCU_MEMW( 0x400000 ) |
| 700 | | |
| 701 | | AM_RANGE(0x500000, 0x50000f) AM_WRITE(TC0640FIO_halfword_byteswap_w) |
| 702 | | AM_RANGE(0x500026, 0x500027) AM_WRITE(eeprom_w) |
| 562 | AM_RANGE(0x500026, 0x500027) AM_READWRITE(eep_latch_r, eeprom_w) |
| 703 | 563 | AM_RANGE(0x500028, 0x500029) AM_WRITE(player_34_coin_ctrl_w) /* simply locks coins 3&4 out */ |
| 704 | | |
| 705 | | AM_RANGE(0x700000, 0x700001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 706 | | AM_RANGE(0x700002, 0x700003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 564 | AM_RANGE(0x50002e, 0x50002f) AM_READ_PORT("IN4") /* shown in service mode, game omits to read it */ |
| 707 | 565 | AM_RANGE(0x600000, 0x600003) AM_WRITE(gain_control_w) |
| 566 | AM_RANGE(0x700000, 0x700001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 567 | AM_RANGE(0x700002, 0x700003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 568 | AM_RANGE(0x800000, 0x801fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 569 | AM_RANGE(0x900000, 0x90ffff) AM_RAM /* Main RAM */ |
| 708 | 570 | ADDRESS_MAP_END |
| 709 | 571 | |
| 710 | | static ADDRESS_MAP_START( spacedx_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 711 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 712 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) /* Main RAM */ |
| 713 | | |
| 714 | | AM_RANGE(0x800000, 0x801fff) AM_READ(SMH_RAM) |
| 715 | | |
| 716 | | TC0180VCU_MEMR( 0x400000 ) |
| 717 | | |
| 718 | | AM_RANGE(0x500000, 0x50000f) AM_READ(pbobble_input_bypass_r) |
| 572 | /* identical to pbobble, above??? */ |
| 573 | static ADDRESS_MAP_START( spacedx_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 574 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 575 | TC0180VCU_MEMRW( 0x400000 ) |
| 576 | AM_RANGE(0x500000, 0x50000f) AM_READWRITE(pbobble_input_bypass_r, TC0640FIO_halfword_byteswap_w) |
| 719 | 577 | AM_RANGE(0x500024, 0x500025) AM_READ_PORT("IN3") |
| 720 | | AM_RANGE(0x500026, 0x500027) AM_READ(eep_latch_r) |
| 721 | | AM_RANGE(0x50002e, 0x50002f) AM_READ_PORT("IN4") |
| 722 | | |
| 723 | | AM_RANGE(0x700000, 0x700001) AM_READNOP |
| 724 | | AM_RANGE(0x700002, 0x700003) AM_READ8(taitosound_comm_r, 0xff00) |
| 725 | | ADDRESS_MAP_END |
| 726 | | |
| 727 | | static ADDRESS_MAP_START( spacedx_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 728 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 729 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 730 | | |
| 731 | | AM_RANGE(0x800000, 0x801fff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 732 | | |
| 733 | | TC0180VCU_MEMW( 0x400000 ) |
| 734 | | |
| 735 | | AM_RANGE(0x500000, 0x50000f) AM_WRITE(TC0640FIO_halfword_byteswap_w) |
| 736 | | AM_RANGE(0x500026, 0x500027) AM_WRITE(eeprom_w) |
| 578 | AM_RANGE(0x500026, 0x500027) AM_READWRITE(eep_latch_r, eeprom_w) |
| 737 | 579 | AM_RANGE(0x500028, 0x500029) AM_WRITE(player_34_coin_ctrl_w) /* simply locks coins 3&4 out */ |
| 738 | | |
| 739 | | AM_RANGE(0x700000, 0x700001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 740 | | AM_RANGE(0x700002, 0x700003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 580 | AM_RANGE(0x50002e, 0x50002f) AM_READ_PORT("IN4") |
| 741 | 581 | AM_RANGE(0x600000, 0x600003) AM_WRITE(gain_control_w) |
| 582 | AM_RANGE(0x700000, 0x700001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 583 | AM_RANGE(0x700002, 0x700003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 584 | AM_RANGE(0x800000, 0x801fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 585 | AM_RANGE(0x900000, 0x90ffff) AM_RAM /* Main RAM */ |
| 742 | 586 | ADDRESS_MAP_END |
| 743 | 587 | |
| 744 | | static ADDRESS_MAP_START( spacedxo_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 745 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 746 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SMH_RAM) /* Main RAM */ |
| 747 | 588 | |
| 748 | | AM_RANGE(0x300000, 0x303fff) AM_READ(SMH_RAM) |
| 749 | | |
| 750 | | TC0180VCU_MEMR( 0x500000 ) |
| 751 | | |
| 752 | | AM_RANGE(0x200000, 0x20000f) AM_READ(TC0220IOC_halfword_r) |
| 589 | static ADDRESS_MAP_START( spacedxo_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 590 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 591 | AM_RANGE(0x100000, 0x100001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 592 | AM_RANGE(0x100002, 0x100003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 593 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) |
| 753 | 594 | AM_RANGE(0x210000, 0x210001) AM_READ_PORT("IN3") |
| 754 | 595 | AM_RANGE(0x220000, 0x220001) AM_READ_PORT("IN4") |
| 755 | 596 | AM_RANGE(0x230000, 0x230001) AM_READ_PORT("IN5") |
| 756 | | |
| 757 | | AM_RANGE(0x100000, 0x100001) AM_READNOP |
| 758 | | AM_RANGE(0x100002, 0x100003) AM_READ8(taitosound_comm_r, 0xff00) |
| 597 | AM_RANGE(0x300000, 0x301fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 598 | AM_RANGE(0x400000, 0x40ffff) AM_RAM /* Main RAM */ |
| 599 | TC0180VCU_MEMRW( 0x500000 ) |
| 759 | 600 | ADDRESS_MAP_END |
| 760 | 601 | |
| 761 | | static ADDRESS_MAP_START( spacedxo_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 762 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 763 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 764 | 602 | |
| 765 | | AM_RANGE(0x300000, 0x301fff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 766 | | |
| 767 | | TC0180VCU_MEMW( 0x500000 ) |
| 768 | | |
| 769 | | AM_RANGE(0x200000, 0x20000f) AM_WRITE(TC0220IOC_halfword_w) |
| 770 | | |
| 771 | | AM_RANGE(0x100000, 0x100001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 772 | | AM_RANGE(0x100002, 0x100003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 773 | | ADDRESS_MAP_END |
| 774 | | |
| 775 | | static ADDRESS_MAP_START( qzshowby_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 776 | | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 777 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) /* Main RAM */ |
| 778 | | |
| 779 | | AM_RANGE(0x800000, 0x801fff) AM_READ(SMH_RAM) |
| 780 | | |
| 781 | | TC0180VCU_MEMR( 0x400000 ) |
| 782 | | |
| 783 | | AM_RANGE(0x200000, 0x20000f) AM_READ(pbobble_input_bypass_r) |
| 603 | static ADDRESS_MAP_START( qzshowby_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 604 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 605 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE(pbobble_input_bypass_r, TC0640FIO_halfword_byteswap_w) |
| 784 | 606 | AM_RANGE(0x200024, 0x200025) AM_READ_PORT("IN3") /* player 3,4 start */ |
| 785 | | AM_RANGE(0x200028, 0x200029) AM_READ(player_34_coin_ctrl_r) |
| 786 | | AM_RANGE(0x20002e, 0x20002f) AM_READ_PORT("IN4") /* player 3,4 buttons */ |
| 787 | | |
| 788 | | AM_RANGE(0x600000, 0x600001) AM_READNOP |
| 789 | | AM_RANGE(0x600002, 0x600003) AM_READ8(taitosound_comm_r, 0xff00) |
| 790 | | ADDRESS_MAP_END |
| 791 | | |
| 792 | | static ADDRESS_MAP_START( qzshowby_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 793 | | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM) |
| 794 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 795 | | |
| 796 | | AM_RANGE(0x800000, 0x801fff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 797 | | |
| 798 | | TC0180VCU_MEMW( 0x400000 ) |
| 799 | | |
| 800 | | AM_RANGE(0x200000, 0x20000f) AM_WRITE(TC0640FIO_halfword_byteswap_w) |
| 801 | 607 | AM_RANGE(0x200026, 0x200027) AM_WRITE(eeprom_w) |
| 802 | | AM_RANGE(0x200028, 0x200029) AM_WRITE(player_34_coin_ctrl_w) |
| 803 | | |
| 804 | | AM_RANGE(0x600000, 0x600001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 805 | | AM_RANGE(0x600002, 0x600003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 608 | AM_RANGE(0x200028, 0x200029) AM_READWRITE(player_34_coin_ctrl_r, player_34_coin_ctrl_w) |
| 609 | AM_RANGE(0x20002e, 0x20002f) AM_READ_PORT("IN4") /* player 3,4 buttons */ |
| 610 | TC0180VCU_MEMRW( 0x400000 ) |
| 611 | AM_RANGE(0x600000, 0x600001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 612 | AM_RANGE(0x600002, 0x600003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 806 | 613 | AM_RANGE(0x700000, 0x700003) AM_WRITE(gain_control_w) |
| 614 | AM_RANGE(0x800000, 0x801fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 615 | AM_RANGE(0x900000, 0x90ffff) AM_RAM /* Main RAM */ |
| 807 | 616 | ADDRESS_MAP_END |
| 808 | 617 | |
| 809 | 618 | |
| 810 | | static ADDRESS_MAP_START( viofight_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 811 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 812 | | AM_RANGE(0xa00000, 0xa03fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 813 | | |
| 814 | | AM_RANGE(0x600000, 0x601fff) AM_READ(SMH_RAM) |
| 815 | | |
| 816 | | TC0180VCU_MEMR( 0x400000 ) |
| 817 | | |
| 818 | | AM_RANGE(0x800000, 0x80000f) AM_READ(TC0220IOC_halfword_byteswap_r) |
| 819 | | |
| 820 | | AM_RANGE(0x200000, 0x200001) AM_READNOP |
| 821 | | AM_RANGE(0x200002, 0x200003) AM_READ8(taitosound_comm_r, 0xff00) |
| 619 | static ADDRESS_MAP_START( viofight_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 620 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 621 | AM_RANGE(0x200000, 0x200001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 622 | AM_RANGE(0x200002, 0x200003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 623 | TC0180VCU_MEMRW( 0x400000 ) |
| 624 | AM_RANGE(0x600000, 0x601fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 625 | AM_RANGE(0x800000, 0x80000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0xff00) |
| 626 | AM_RANGE(0xa00000, 0xa03fff) AM_RAM /* Main RAM */ |
| 822 | 627 | ADDRESS_MAP_END |
| 823 | 628 | |
| 824 | | static ADDRESS_MAP_START( viofight_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 825 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 826 | | AM_RANGE(0xa00000, 0xa03fff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 827 | 629 | |
| 828 | | AM_RANGE(0x600000, 0x601fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 829 | | |
| 830 | | TC0180VCU_MEMW( 0x400000 ) |
| 831 | | |
| 832 | | AM_RANGE(0x800000, 0x80000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) |
| 833 | | |
| 834 | | AM_RANGE(0x200000, 0x200001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 835 | | AM_RANGE(0x200002, 0x200003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 630 | static ADDRESS_MAP_START( masterw_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 631 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 632 | AM_RANGE(0x200000, 0x203fff) AM_RAM /* Main RAM */ |
| 633 | TC0180VCU_MEMRW( 0x400000 ) |
| 634 | AM_RANGE(0x600000, 0x601fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 635 | AM_RANGE(0x800000, 0x800001) AM_READWRITE8(TC0220IOC_portreg_r, TC0220IOC_portreg_w, 0xff00) |
| 636 | AM_RANGE(0x800002, 0x800003) AM_READWRITE8(TC0220IOC_port_r, TC0220IOC_port_w, 0xff00) |
| 637 | AM_RANGE(0xa00000, 0xa00001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 638 | AM_RANGE(0xa00002, 0xa00003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 836 | 639 | ADDRESS_MAP_END |
| 837 | 640 | |
| 838 | 641 | |
| 839 | | static ADDRESS_MAP_START( masterw_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 840 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 841 | | AM_RANGE(0x200000, 0x203fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 842 | | |
| 843 | | AM_RANGE(0x600000, 0x601fff) AM_READ(SMH_RAM) /*palette*/ |
| 844 | | |
| 845 | | TC0180VCU_MEMR( 0x400000 ) |
| 846 | | |
| 847 | | AM_RANGE(0x800000, 0x800001) AM_READ(TC0220IOC_halfword_byteswap_portreg_r) /* DSW A/B, player inputs*/ |
| 848 | | AM_RANGE(0x800002, 0x800003) AM_READ(TC0220IOC_halfword_byteswap_port_r /*watchdog_reset16_r*/ ) |
| 849 | | |
| 850 | | AM_RANGE(0xa00000, 0xa00001) AM_READNOP |
| 851 | | AM_RANGE(0xa00002, 0xa00003) AM_READ8(taitosound_comm_r, 0xff00) |
| 852 | | ADDRESS_MAP_END |
| 853 | | |
| 854 | | static ADDRESS_MAP_START( masterw_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 855 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 856 | | AM_RANGE(0x200000, 0x203fff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 857 | | |
| 858 | | AM_RANGE(0x600000, 0x601fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 859 | | |
| 860 | | TC0180VCU_MEMW( 0x400000 ) |
| 861 | | |
| 862 | | AM_RANGE(0x800000, 0x800001) AM_WRITE(TC0220IOC_halfword_byteswap_portreg_w) |
| 863 | | AM_RANGE(0x800002, 0x800003) AM_WRITE(TC0220IOC_halfword_byteswap_port_w) |
| 864 | | |
| 865 | | AM_RANGE(0xa00000, 0xa00001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 866 | | AM_RANGE(0xa00002, 0xa00003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 867 | | ADDRESS_MAP_END |
| 868 | | |
| 869 | | |
| 870 | | static ADDRESS_MAP_START( silentd_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 871 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 872 | | AM_RANGE(0x400000, 0x403fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 873 | | |
| 874 | | AM_RANGE(0x300000, 0x301fff) AM_READ(SMH_RAM) |
| 875 | | |
| 876 | | TC0180VCU_MEMR( 0x500000 ) |
| 877 | | |
| 878 | | AM_RANGE(0x200000, 0x20000f) AM_READ(TC0220IOC_halfword_r) |
| 642 | static ADDRESS_MAP_START( silentd_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 643 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 644 | AM_RANGE(0x100000, 0x100001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 645 | AM_RANGE(0x100002, 0x100003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 646 | // AM_RANGE(0x10001a, 0x10001b) AM_READNOP // ??? read at $1e344 |
| 647 | // AM_RANGE(0x10001c, 0x10001d) AM_READNOP // ??? read at $1e356 |
| 648 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) |
| 879 | 649 | AM_RANGE(0x210000, 0x210001) AM_READ_PORT("IN3") |
| 880 | 650 | AM_RANGE(0x220000, 0x220001) AM_READ_PORT("IN4") |
| 881 | 651 | AM_RANGE(0x230000, 0x230001) AM_READ_PORT("IN5") |
| 652 | AM_RANGE(0x240000, 0x240001) AM_WRITENOP // ??? |
| 882 | 653 | // AM_RANGE(0x240000, 0x240001) AM_READNOP /* read 4 times at init */ |
| 883 | | |
| 884 | | AM_RANGE(0x100000, 0x100001) AM_READNOP |
| 885 | | AM_RANGE(0x100002, 0x100003) AM_READ8(taitosound_comm_r, 0xff00) |
| 886 | | // AM_RANGE(0x10001a, 0x10001b) AM_READNOP // ??? read at $1e344 |
| 887 | | // AM_RANGE(0x10001c, 0x10001d) AM_READNOP // ??? read at $1e356 |
| 654 | AM_RANGE(0x300000, 0x301fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 655 | AM_RANGE(0x400000, 0x403fff) AM_RAM /* Main RAM */ |
| 656 | TC0180VCU_MEMRW( 0x500000 ) |
| 888 | 657 | ADDRESS_MAP_END |
| 889 | 658 | |
| 890 | | static ADDRESS_MAP_START( silentd_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 891 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 892 | | AM_RANGE(0x400000, 0x403fff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 893 | 659 | |
| 894 | | AM_RANGE(0x300000, 0x301fff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 895 | | |
| 896 | | TC0180VCU_MEMW( 0x500000 ) |
| 897 | | |
| 898 | | AM_RANGE(0x200000, 0x20000f) AM_WRITE(TC0220IOC_halfword_w) |
| 899 | | AM_RANGE(0x240000, 0x240001) AM_WRITENOP // ??? |
| 900 | | |
| 901 | | AM_RANGE(0x100000, 0x100001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 902 | | AM_RANGE(0x100002, 0x100003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 660 | static ADDRESS_MAP_START( selfeena_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 661 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 662 | AM_RANGE(0x100000, 0x103fff) AM_RAM /* Main RAM */ |
| 663 | TC0180VCU_MEMRW( 0x200000 ) |
| 664 | AM_RANGE(0x300000, 0x301fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 665 | AM_RANGE(0x400000, 0x40000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0xff00) |
| 666 | AM_RANGE(0x410000, 0x41000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0xff00) /* mirror address - seems to be only used for coin control */ |
| 667 | AM_RANGE(0x500000, 0x500001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 668 | AM_RANGE(0x500002, 0x500003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 903 | 669 | ADDRESS_MAP_END |
| 904 | 670 | |
| 905 | 671 | |
| 906 | | static ADDRESS_MAP_START( selfeena_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 907 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 908 | | AM_RANGE(0x100000, 0x103fff) AM_READ(SMH_RAM) /* Main RAM */ |
| 909 | | |
| 910 | | AM_RANGE(0x300000, 0x301fff) AM_READ(SMH_RAM) |
| 911 | | |
| 912 | | TC0180VCU_MEMR( 0x200000 ) |
| 913 | | |
| 914 | | AM_RANGE(0x400000, 0x40000f) AM_READ(TC0220IOC_halfword_byteswap_r) |
| 915 | | AM_RANGE(0x410000, 0x41000f) AM_READ(TC0220IOC_halfword_byteswap_r) /* mirror address - seems to be only used for coin control */ |
| 916 | | |
| 917 | | AM_RANGE(0x500000, 0x500001) AM_READNOP |
| 918 | | AM_RANGE(0x500002, 0x500003) AM_READ8(taitosound_comm_r, 0xff00) |
| 672 | static ADDRESS_MAP_START( sbm_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 673 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 674 | AM_RANGE(0x100000, 0x10ffff) AM_RAM /* Main RAM */ |
| 675 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 676 | AM_RANGE(0x300000, 0x30000f) AM_READWRITE(TC0510NIO_halfword_wordswap_r, TC0510NIO_halfword_wordswap_w) |
| 677 | AM_RANGE(0x320000, 0x320001) AM_READNOP AM_WRITE8(taitosound_port_w, 0xff00) |
| 678 | AM_RANGE(0x320002, 0x320003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 679 | TC0180VCU_MEMRW( 0x900000 ) |
| 919 | 680 | ADDRESS_MAP_END |
| 920 | 681 | |
| 921 | | static ADDRESS_MAP_START( selfeena_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 922 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 923 | | AM_RANGE(0x100000, 0x103fff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 924 | 682 | |
| 925 | | AM_RANGE(0x300000, 0x301fff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 926 | 683 | |
| 927 | | TC0180VCU_MEMW( 0x200000 ) |
| 928 | | |
| 929 | | AM_RANGE(0x400000, 0x40000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) |
| 930 | | AM_RANGE(0x410000, 0x41000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) /* mirror address - seems to be only used for coin control */ |
| 931 | | |
| 932 | | AM_RANGE(0x500000, 0x500001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 933 | | AM_RANGE(0x500002, 0x500003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 934 | | ADDRESS_MAP_END |
| 935 | | |
| 936 | | |
| 937 | | static ADDRESS_MAP_START( sbm_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 938 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 939 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) /* Main RAM */ |
| 940 | | |
| 941 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 942 | | |
| 943 | | TC0180VCU_MEMR( 0x900000 ) |
| 944 | | |
| 945 | | AM_RANGE(0x300000, 0x30000f) AM_READ(TC0510NIO_halfword_wordswap_r) |
| 946 | | |
| 947 | | AM_RANGE(0x320000, 0x320001) AM_READNOP |
| 948 | | AM_RANGE(0x320002, 0x320003) AM_READ8(taitosound_comm_r, 0xff00) |
| 949 | | ADDRESS_MAP_END |
| 950 | | |
| 951 | | static ADDRESS_MAP_START( sbm_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 952 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 953 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) /* Main RAM */ |
| 954 | | |
| 955 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 956 | | |
| 957 | | TC0180VCU_MEMW( 0x900000 ) |
| 958 | | |
| 959 | | AM_RANGE(0x300000, 0x30000f) AM_WRITE(TC0510NIO_halfword_wordswap_w) |
| 960 | | |
| 961 | | AM_RANGE(0x320000, 0x320001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 962 | | AM_RANGE(0x320002, 0x320003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 963 | | ADDRESS_MAP_END |
| 964 | | |
| 965 | | |
| 966 | | |
| 967 | | static ADDRESS_MAP_START( masterw_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 968 | | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 969 | | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK1) |
| 970 | | AM_RANGE(0x8000, 0x8fff) AM_READ(SMH_RAM) |
| 971 | | AM_RANGE(0x9000, 0x9001) AM_DEVREAD("ym", ym2203_r) |
| 972 | | AM_RANGE(0xa001, 0xa001) AM_READ(taitosound_slave_comm_r) |
| 973 | | ADDRESS_MAP_END |
| 974 | | |
| 975 | | static ADDRESS_MAP_START( masterw_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 976 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 977 | | AM_RANGE(0x8000, 0x8fff) AM_WRITE(SMH_RAM) |
| 978 | | AM_RANGE(0x9000, 0x9001) AM_DEVWRITE("ym", ym2203_w) |
| 684 | static ADDRESS_MAP_START( masterw_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 685 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 686 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(1) |
| 687 | AM_RANGE(0x8000, 0x8fff) AM_RAM |
| 688 | AM_RANGE(0x9000, 0x9001) AM_DEVREADWRITE("ym", ym2203_r, ym2203_w) |
| 979 | 689 | AM_RANGE(0xa000, 0xa000) AM_WRITE(taitosound_slave_port_w) |
| 980 | | AM_RANGE(0xa001, 0xa001) AM_WRITE(taitosound_slave_comm_w) |
| 690 | AM_RANGE(0xa001, 0xa001) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) |
| 981 | 691 | ADDRESS_MAP_END |
| 982 | 692 | |
| 983 | | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 984 | | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 985 | | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK1) |
| 986 | | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM) |
| 987 | | AM_RANGE(0xe000, 0xe003) AM_DEVREAD("ym", ym2610_r) |
| 988 | | AM_RANGE(0xe200, 0xe200) AM_READNOP |
| 989 | | AM_RANGE(0xe201, 0xe201) AM_READ(taitosound_slave_comm_r) |
| 990 | | AM_RANGE(0xea00, 0xea00) AM_READNOP |
| 991 | | ADDRESS_MAP_END |
| 992 | | |
| 993 | | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 994 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 995 | | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_RAM) |
| 996 | | AM_RANGE(0xe000, 0xe003) AM_DEVWRITE("ym", ym2610_w) |
| 997 | | AM_RANGE(0xe200, 0xe200) AM_WRITE(taitosound_slave_port_w) |
| 998 | | AM_RANGE(0xe201, 0xe201) AM_WRITE(taitosound_slave_comm_w) |
| 693 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 694 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 695 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(1) |
| 696 | AM_RANGE(0xc000, 0xdfff) AM_RAM |
| 697 | AM_RANGE(0xe000, 0xe003) AM_DEVREADWRITE("ym", ym2610_r, ym2610_w) |
| 698 | AM_RANGE(0xe200, 0xe200) AM_READNOP AM_WRITE(taitosound_slave_port_w) |
| 699 | AM_RANGE(0xe201, 0xe201) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) |
| 999 | 700 | AM_RANGE(0xe400, 0xe403) AM_WRITENOP /* pan */ |
| 1000 | 701 | AM_RANGE(0xe600, 0xe600) AM_WRITENOP /* ? */ |
| 702 | AM_RANGE(0xea00, 0xea00) AM_READNOP |
| 1001 | 703 | AM_RANGE(0xee00, 0xee00) AM_WRITENOP /* ? */ |
| 1002 | 704 | AM_RANGE(0xf000, 0xf000) AM_WRITENOP /* ? */ |
| 1003 | 705 | AM_RANGE(0xf200, 0xf200) AM_WRITE(bankswitch_w) |
| 1004 | 706 | ADDRESS_MAP_END |
| 1005 | 707 | |
| 1006 | | static ADDRESS_MAP_START( viofight_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1007 | | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 1008 | | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK1) |
| 1009 | | AM_RANGE(0x8000, 0x8fff) AM_READ(SMH_RAM) |
| 1010 | | AM_RANGE(0x9000, 0x9001) AM_DEVREAD("ym", ym2203_r) |
| 1011 | | AM_RANGE(0xb000, 0xb000) AM_DEVREAD("oki", okim6295_r) |
| 1012 | | AM_RANGE(0xa001, 0xa001) AM_READ(taitosound_slave_comm_r) |
| 1013 | | ADDRESS_MAP_END |
| 1014 | | |
| 1015 | | static ADDRESS_MAP_START( viofight_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1016 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 1017 | | AM_RANGE(0x8000, 0x8fff) AM_WRITE(SMH_RAM) |
| 1018 | | AM_RANGE(0x9000, 0x9001) AM_DEVWRITE("ym", ym2203_w) |
| 1019 | | AM_RANGE(0xb000, 0xb001) AM_DEVWRITE("oki", okim6295_w) /* yes, both addresses for the same chip */ |
| 708 | static ADDRESS_MAP_START( viofight_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 709 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 710 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(1) |
| 711 | AM_RANGE(0x8000, 0x8fff) AM_RAM |
| 712 | AM_RANGE(0x9000, 0x9001) AM_DEVREADWRITE("ym", ym2203_r, ym2203_w) |
| 713 | AM_RANGE(0xb000, 0xb001) AM_DEVREADWRITE("oki", okim6295_r, okim6295_w) /* yes, both addresses for the same chip */ |
| 1020 | 714 | AM_RANGE(0xa000, 0xa000) AM_WRITE(taitosound_slave_port_w) |
| 1021 | | AM_RANGE(0xa001, 0xa001) AM_WRITE(taitosound_slave_comm_w) |
| 715 | AM_RANGE(0xa001, 0xa001) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) |
| 1022 | 716 | ADDRESS_MAP_END |
| 1023 | 717 | |
| 1024 | 718 | |
| r4499 | r4500 | |
| 2415 | 2109 | |
| 2416 | 2110 | /* basic machine hardware */ |
| 2417 | 2111 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2418 | | MDRV_CPU_PROGRAM_MAP(rastsag2_readmem,rastsag2_writemem) |
| 2112 | MDRV_CPU_PROGRAM_MAP(rastsag2_map,0) |
| 2419 | 2113 | MDRV_CPU_VBLANK_INT("screen", rastansaga2_interrupt) |
| 2420 | 2114 | |
| 2421 | 2115 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2422 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2116 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2423 | 2117 | |
| 2424 | 2118 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2425 | 2119 | |
| r4499 | r4500 | |
| 2453 | 2147 | |
| 2454 | 2148 | /* basic machine hardware */ |
| 2455 | 2149 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2456 | | MDRV_CPU_PROGRAM_MAP(rastsag2_readmem,rastsag2_writemem) |
| 2150 | MDRV_CPU_PROGRAM_MAP(rastsag2_map,0) |
| 2457 | 2151 | MDRV_CPU_VBLANK_INT("screen", rastansaga2_interrupt) |
| 2458 | 2152 | |
| 2459 | 2153 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2460 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2154 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2461 | 2155 | |
| 2462 | 2156 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2463 | 2157 | |
| r4499 | r4500 | |
| 2491 | 2185 | |
| 2492 | 2186 | /* basic machine hardware */ |
| 2493 | 2187 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2494 | | MDRV_CPU_PROGRAM_MAP(crimec_readmem,crimec_writemem) |
| 2188 | MDRV_CPU_PROGRAM_MAP(crimec_map,0) |
| 2495 | 2189 | MDRV_CPU_VBLANK_INT("screen", crimec_interrupt) |
| 2496 | 2190 | |
| 2497 | 2191 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2498 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2192 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2499 | 2193 | |
| 2500 | 2194 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2501 | 2195 | |
| r4499 | r4500 | |
| 2529 | 2223 | |
| 2530 | 2224 | /* basic machine hardware */ |
| 2531 | 2225 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz ???*/ |
| 2532 | | MDRV_CPU_PROGRAM_MAP(tetrist_readmem,tetrist_writemem) |
| 2226 | MDRV_CPU_PROGRAM_MAP(tetrist_map,0) |
| 2533 | 2227 | MDRV_CPU_VBLANK_INT("screen", rastansaga2_interrupt) |
| 2534 | 2228 | |
| 2535 | 2229 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2536 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2230 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2537 | 2231 | |
| 2538 | 2232 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2539 | 2233 | |
| r4499 | r4500 | |
| 2566 | 2260 | |
| 2567 | 2261 | /* basic machine hardware */ |
| 2568 | 2262 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2569 | | MDRV_CPU_PROGRAM_MAP(tetrista_readmem,tetrista_writemem) |
| 2263 | MDRV_CPU_PROGRAM_MAP(tetrista_map,0) |
| 2570 | 2264 | MDRV_CPU_VBLANK_INT("screen", masterw_interrupt) |
| 2571 | 2265 | |
| 2572 | 2266 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2573 | | MDRV_CPU_PROGRAM_MAP(masterw_sound_readmem,masterw_sound_writemem) |
| 2267 | MDRV_CPU_PROGRAM_MAP(masterw_sound_map,0) |
| 2574 | 2268 | |
| 2575 | 2269 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2576 | 2270 | |
| r4499 | r4500 | |
| 2604 | 2298 | |
| 2605 | 2299 | /* basic machine hardware */ |
| 2606 | 2300 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2607 | | MDRV_CPU_PROGRAM_MAP(hitice_readmem, hitice_writemem) |
| 2301 | MDRV_CPU_PROGRAM_MAP(hitice_map,0) |
| 2608 | 2302 | MDRV_CPU_VBLANK_INT("screen", hitice_interrupt) |
| 2609 | 2303 | |
| 2610 | 2304 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2611 | | MDRV_CPU_PROGRAM_MAP(viofight_sound_readmem, viofight_sound_writemem) |
| 2305 | MDRV_CPU_PROGRAM_MAP(viofight_sound_map,0) |
| 2612 | 2306 | |
| 2613 | 2307 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2614 | 2308 | |
| r4499 | r4500 | |
| 2648 | 2342 | |
| 2649 | 2343 | /* basic machine hardware */ |
| 2650 | 2344 | MDRV_CPU_ADD("maincpu", M68000, XTAL_24MHz/2) /* verified on pcb */ |
| 2651 | | MDRV_CPU_PROGRAM_MAP(rambo3_readmem,rambo3_writemem) |
| 2345 | MDRV_CPU_PROGRAM_MAP(rambo3_map,0) |
| 2652 | 2346 | MDRV_CPU_VBLANK_INT("screen", rambo3_interrupt) |
| 2653 | 2347 | |
| 2654 | 2348 | MDRV_CPU_ADD("audiocpu", Z80, XTAL_24MHz/6) /* verified on pcb */ |
| 2655 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2349 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2656 | 2350 | |
| 2657 | 2351 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2658 | 2352 | |
| r4499 | r4500 | |
| 2686 | 2380 | |
| 2687 | 2381 | /* basic machine hardware */ |
| 2688 | 2382 | MDRV_CPU_ADD("maincpu", M68000, XTAL_24MHz/2) /* verified on pcb */ |
| 2689 | | MDRV_CPU_PROGRAM_MAP(rambo3_readmem,rambo3_writemem) |
| 2383 | MDRV_CPU_PROGRAM_MAP(rambo3_map,0) |
| 2690 | 2384 | MDRV_CPU_VBLANK_INT("screen", rambo3_interrupt) |
| 2691 | 2385 | |
| 2692 | 2386 | MDRV_CPU_ADD("audiocpu", Z80, XTAL_24MHz/6) /* verified on pcb */ |
| 2693 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2387 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2694 | 2388 | |
| 2695 | 2389 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2696 | 2390 | |
| r4499 | r4500 | |
| 2724 | 2418 | |
| 2725 | 2419 | /* basic machine hardware */ |
| 2726 | 2420 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2727 | | MDRV_CPU_PROGRAM_MAP(pbobble_readmem,pbobble_writemem) |
| 2421 | MDRV_CPU_PROGRAM_MAP(pbobble_map,0) |
| 2728 | 2422 | MDRV_CPU_VBLANK_INT("screen", pbobble_interrupt) |
| 2729 | 2423 | |
| 2730 | 2424 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2731 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2425 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2732 | 2426 | |
| 2733 | 2427 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2734 | 2428 | |
| r4499 | r4500 | |
| 2765 | 2459 | |
| 2766 | 2460 | /* basic machine hardware */ |
| 2767 | 2461 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2768 | | MDRV_CPU_PROGRAM_MAP(spacedx_readmem,spacedx_writemem) |
| 2462 | MDRV_CPU_PROGRAM_MAP(spacedx_map,0) |
| 2769 | 2463 | MDRV_CPU_VBLANK_INT("screen", pbobble_interrupt) |
| 2770 | 2464 | |
| 2771 | 2465 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2772 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2466 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2773 | 2467 | |
| 2774 | 2468 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2775 | 2469 | |
| r4499 | r4500 | |
| 2806 | 2500 | |
| 2807 | 2501 | /* basic machine hardware */ |
| 2808 | 2502 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2809 | | MDRV_CPU_PROGRAM_MAP(spacedxo_readmem,spacedxo_writemem) |
| 2503 | MDRV_CPU_PROGRAM_MAP(spacedxo_map,0) |
| 2810 | 2504 | MDRV_CPU_VBLANK_INT("screen", selfeena_interrupt) |
| 2811 | 2505 | |
| 2812 | 2506 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2813 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2507 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2814 | 2508 | |
| 2815 | 2509 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2816 | 2510 | |
| r4499 | r4500 | |
| 2844 | 2538 | |
| 2845 | 2539 | /* basic machine hardware */ |
| 2846 | 2540 | MDRV_CPU_ADD("maincpu", M68000, 16000000) /* 16 MHz according to the readme*/ |
| 2847 | | MDRV_CPU_PROGRAM_MAP(qzshowby_readmem,qzshowby_writemem) |
| 2541 | MDRV_CPU_PROGRAM_MAP(qzshowby_map,0) |
| 2848 | 2542 | MDRV_CPU_VBLANK_INT("screen", pbobble_interrupt) |
| 2849 | 2543 | |
| 2850 | 2544 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2851 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2545 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2852 | 2546 | |
| 2853 | 2547 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2854 | 2548 | |
| r4499 | r4500 | |
| 2885 | 2579 | |
| 2886 | 2580 | /* basic machine hardware */ |
| 2887 | 2581 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2888 | | MDRV_CPU_PROGRAM_MAP(viofight_readmem,viofight_writemem) |
| 2582 | MDRV_CPU_PROGRAM_MAP(viofight_map,0) |
| 2889 | 2583 | MDRV_CPU_VBLANK_INT("screen", viofight_interrupt) |
| 2890 | 2584 | |
| 2891 | 2585 | MDRV_CPU_ADD("audiocpu", Z80, 6000000) /* 6 MHz verified */ |
| 2892 | | MDRV_CPU_PROGRAM_MAP(viofight_sound_readmem, viofight_sound_writemem) |
| 2586 | MDRV_CPU_PROGRAM_MAP(viofight_sound_map,0) |
| 2893 | 2587 | |
| 2894 | 2588 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2895 | 2589 | |
| r4499 | r4500 | |
| 2927 | 2621 | |
| 2928 | 2622 | /* basic machine hardware */ |
| 2929 | 2623 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 2930 | | MDRV_CPU_PROGRAM_MAP(masterw_readmem,masterw_writemem) |
| 2624 | MDRV_CPU_PROGRAM_MAP(masterw_map,0) |
| 2931 | 2625 | MDRV_CPU_VBLANK_INT("screen", masterw_interrupt) |
| 2932 | 2626 | |
| 2933 | 2627 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2934 | | MDRV_CPU_PROGRAM_MAP(masterw_sound_readmem,masterw_sound_writemem) |
| 2628 | MDRV_CPU_PROGRAM_MAP(masterw_sound_map,0) |
| 2935 | 2629 | |
| 2936 | 2630 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2937 | 2631 | |
| r4499 | r4500 | |
| 2966 | 2660 | |
| 2967 | 2661 | /* basic machine hardware */ |
| 2968 | 2662 | MDRV_CPU_ADD("maincpu", M68000, 16000000) /* 16 MHz ??? */ |
| 2969 | | MDRV_CPU_PROGRAM_MAP(silentd_readmem,silentd_writemem) |
| 2663 | MDRV_CPU_PROGRAM_MAP(silentd_map,0) |
| 2970 | 2664 | MDRV_CPU_VBLANK_INT("screen", silentd_interrupt) |
| 2971 | 2665 | |
| 2972 | 2666 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 2973 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2667 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 2974 | 2668 | |
| 2975 | 2669 | MDRV_QUANTUM_TIME(HZ(600)) |
| 2976 | 2670 | |
| r4499 | r4500 | |
| 3004 | 2698 | |
| 3005 | 2699 | /* basic machine hardware */ |
| 3006 | 2700 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 3007 | | MDRV_CPU_PROGRAM_MAP(selfeena_readmem,selfeena_writemem) |
| 2701 | MDRV_CPU_PROGRAM_MAP(selfeena_map,0) |
| 3008 | 2702 | MDRV_CPU_VBLANK_INT("screen", selfeena_interrupt) |
| 3009 | 2703 | |
| 3010 | 2704 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 3011 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2705 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 3012 | 2706 | |
| 3013 | 2707 | MDRV_QUANTUM_TIME(HZ(600)) |
| 3014 | 2708 | |
| r4499 | r4500 | |
| 3051 | 2745 | |
| 3052 | 2746 | /* basic machine hardware */ |
| 3053 | 2747 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 3054 | | MDRV_CPU_PROGRAM_MAP(selfeena_readmem,selfeena_writemem) |
| 2748 | MDRV_CPU_PROGRAM_MAP(selfeena_map,0) |
| 3055 | 2749 | MDRV_CPU_VBLANK_INT("screen", selfeena_interrupt) |
| 3056 | 2750 | |
| 3057 | 2751 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 3058 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2752 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 3059 | 2753 | |
| 3060 | 2754 | MDRV_QUANTUM_TIME(HZ(600)) |
| 3061 | 2755 | |
| r4499 | r4500 | |
| 3096 | 2790 | |
| 3097 | 2791 | /* basic machine hardware */ |
| 3098 | 2792 | MDRV_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */ |
| 3099 | | MDRV_CPU_PROGRAM_MAP(sbm_readmem,sbm_writemem) |
| 2793 | MDRV_CPU_PROGRAM_MAP(sbm_map,0) |
| 3100 | 2794 | MDRV_CPU_VBLANK_INT("screen", sbm_interrupt) |
| 3101 | 2795 | |
| 3102 | 2796 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4 MHz */ |
| 3103 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 2797 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 3104 | 2798 | |
| 3105 | 2799 | MDRV_QUANTUM_TIME(HZ(600)) |
| 3106 | 2800 | |
| r4499 | r4500 | |
| 3607 | 3301 | ROM_LOAD( "pal16l8b-c16-09.ic35", 0x0200, 0x0104, CRC(0965baab) SHA1(3f704cd42d5277e9ba0b0680a2722488fc4cc630) ) |
| 3608 | 3302 | ROM_END |
| 3609 | 3303 | |
| 3610 | | ROM_START( viofighu ) |
| 3304 | ROM_START( viofightu ) |
| 3611 | 3305 | ROM_REGION( 0x080000, "maincpu", 0 ) /* 1M for 68000 code */ |
| 3612 | 3306 | ROM_LOAD16_BYTE( "c16-11.42", 0x00000, 0x10000, CRC(23dbd388) SHA1(488f928826d16b201dcc4b491b09955d0af91f19) ) |
| 3613 | 3307 | ROM_LOAD16_BYTE( "c16-13.23", 0x00001, 0x10000, CRC(ab947ffc) SHA1(103023cee4b20afa5086ba60522ea5aa723aebef) ) |
| r4499 | r4500 | |
| 3632 | 3326 | ROM_LOAD( "pal16l8b-c16-09.ic35", 0x0200, 0x0104, CRC(0965baab) SHA1(3f704cd42d5277e9ba0b0680a2722488fc4cc630) ) |
| 3633 | 3327 | ROM_END |
| 3634 | 3328 | |
| 3635 | | ROM_START( viofighj ) |
| 3329 | ROM_START( viofightj ) |
| 3636 | 3330 | ROM_REGION( 0x080000, "maincpu", 0 ) /* 1M for 68000 code */ |
| 3637 | 3331 | ROM_LOAD16_BYTE( "c16-11.42", 0x00000, 0x10000, CRC(23dbd388) SHA1(488f928826d16b201dcc4b491b09955d0af91f19) ) |
| 3638 | 3332 | ROM_LOAD16_BYTE( "c16-10.23", 0x00001, 0x10000, CRC(329d2e46) SHA1(044e8a283e3bdd3d64dbeb9b6982088e967b10ff) ) |
| r4499 | r4500 | |
| 3858 | 3552 | GAME( 1989, tetrist, tetris, tetrist, tetrist, taito_b, ROT0, "Sega", "Tetris (Japan, B-System, YM2610)", GAME_SUPPORTS_SAVE ) |
| 3859 | 3553 | GAME( 1989, tetrista, tetris, tetrista, tetrist, taito_b, ROT0, "Sega", "Tetris (Japan, B-System, YM2203)", GAME_SUPPORTS_SAVE ) |
| 3860 | 3554 | GAME( 1989, viofight, 0, viofight, viofight, taito_b, ROT0, "Taito Corporation Japan", "Violence Fight (World)", GAME_SUPPORTS_SAVE ) |
| 3861 | | GAME( 1989, viofighu, viofight,viofight, viofight, taito_b, ROT0, "Taito America Corporation", "Violence Fight (US)", GAME_SUPPORTS_SAVE ) |
| 3862 | | GAME( 1989, viofighj, viofight,viofight, viofight, taito_b, ROT0, "Taito Corporation", "Violence Fight (Japan)", GAME_SUPPORTS_SAVE ) |
| 3555 | GAME( 1989, viofightu,viofight,viofight, viofight, taito_b, ROT0, "Taito America Corporation", "Violence Fight (US)", GAME_SUPPORTS_SAVE ) |
| 3556 | GAME( 1989, viofightj,viofight,viofight, viofight, taito_b, ROT0, "Taito Corporation", "Violence Fight (Japan)", GAME_SUPPORTS_SAVE ) |
| 3863 | 3557 | GAME( 1990, ashura, 0, ashura, ashura, taito_b, ROT270, "Taito Corporation", "Ashura Blaster (Japan)", GAME_SUPPORTS_SAVE ) |
| 3864 | 3558 | GAME( 1990, ashurau, ashura, ashura, ashurau, taito_b, ROT270, "Taito America Corporation", "Ashura Blaster (US)", GAME_SUPPORTS_SAVE ) |
| 3865 | 3559 | GAME( 1990, hitice, 0, hitice, hitice, taito_b, ROT0, "Williams", "Hit the Ice (US)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
src/mame/drivers/naomi.c
| r4499 | r4500 | |
| 17 | 17 | |cvsgd | 2 | H | Yes | Yes | Yes | joystick with 4 buttons | 2 + 2 extra buttons | |
| 18 | 18 | |gundmxgd | 1 | H | Yes | Yes | Yes | joystick with 4+6 buttons | | |
| 19 | 19 | |cvs2gd | 2 | H | Yes | Yes | Yes | joystick with 6 buttons | | |
| 20 | | |ikaruga | 2 | V | Yes | Yes | Yes | joystick with 3 buttons? | | |
| 20 | |ikaruga | 2 | V | Yes | Yes | Yes | joystick with 2 buttons | | |
| 21 | 21 | |ggxx | 2 | H | Yes | Yes | Yes | joystick with 5 buttons | | |
| 22 | | |moeru | 2 | H | No | No | No | joystick with 3 buttons? | Broken i/o, stuck at the "now loading" msg | |
| 23 | | |chocomk | 2 | H | Yes | Yes | Yes | joystick with 3 buttons? | | |
| 22 | |moeru | 2 | H | No | No | No | joystick with 3 buttons | Broken i/o, stuck at the "now loading" msg | |
| 23 | |chocomk | 2 | H | Yes | Yes | Yes | joystick with 2 buttons | | |
| 24 | 24 | |quizqgd | 2 | V | Yes | Yes | Yes | joystick(?) with 4 buttons | | |
| 25 | 25 | |ggxxrl | 2 | H | Yes | Yes | Yes | joystick with 5 buttons | | |
| 26 | | |tetkiwam | 2 | H | No | No | No | joystick with 3 buttons? | Black screen, tests the SCIF (UART) regs? | |
| 27 | | |shikgam2 | 2 | V | Yes | Yes | No | joystick with 3 buttons? | Broken i/o, crashes on the proper gameplay | |
| 26 | |tetkiwam | 2 | H | No | No | No | joystick with 3 buttons | Black screen, tests the SCIF (UART) regs? | |
| 27 | |shikgam2 | 2 | V | Yes | Yes | No | joystick with 3 buttons | Broken i/o, crashes on the proper gameplay | |
| 28 | 28 | |usagui | 1 | H | Yes | Yes | No | mahjong panel | | |
| 29 | | |bdrdown | 2 | H | Yes | Yes | Yes | joystick with 3 buttons? | | |
| 30 | | |psyvar2 | 1 | V | No | No | No | joystick with 3 buttons? | | |
| 31 | | |cfield | 1? | H | No? | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 32 | | |trizeal | 2 | V | No | No | No | joystick with 3 buttons? | | |
| 33 | | |meltybld | 2 | H | No? | Yes | No? | joystick with 4 buttons? | Crashes in attract/gameplay with wrong mask | |
| 34 | | |senko | 2 | H | Yes | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 35 | | |senkoo | 2 | H | Yes | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 36 | | |ss2005 | 1 | H | Yes | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 37 | | |radirgy | 1 | V | Yes | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 29 | |bdrdown | 2 | H | Yes | Yes | Yes | joystick with 3 buttons | | |
| 30 | |psyvar2 | 1 | V | Yes | Yes | No | joystick with 2 buttons | Broken i/o? Hangs after pressing start | |
| 31 | |cfield | 1 | H | Yes | Yes | Yes | joystick with 3 buttons | | |
| 32 | |trizeal | 2 | V | No | No | No | joystick with 3 buttons | | |
| 33 | |meltybld | 2 | H | Yes | Yes | Yes | joystick with 4 buttons | Crashes in attract mode | |
| 34 | |senko | 2 | H | Yes | Yes | No | joystick with 3 buttons | Senko no Londe SP (undumped) uses 5 buttons | |
| 35 | |senkoo | 2 | H | Yes | Yes | No | joystick with 3 buttons | | |
| 36 | |ss2005 | 1 | H | Yes | Yes | No | joystick with 3 buttons | Calls a YUV FMV, crashes due of that | |
| 37 | |radirgy | 1 | V | Yes | Yes | Yes | joystick with 3 buttons | | |
| 38 | 38 | |ggxxsla | 2 | H | Yes | Yes | Yes | joystick with 5 buttons | | |
| 39 | | |kurucham | 2 | H | Yes | Yes | No | joystick with 3 buttons? | Broken i/o, crashes in attract with wrong mask | |
| 40 | | |undefeat | 2 | V | No | No | No | joystick with 3 buttons? | Stuck at the "now loading" msg | |
| 41 | | |trgheart | 1 | V | Yes | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 42 | | |jingystm | 2 | H | Yes | Yes | No | joystick with 4 buttons? | Broken i/o | |
| 43 | | |meltyb | 2 | H | No? | Yes | No? | joystick with 4 buttons? | Crashes in attract/gameplay with wrong mask | |
| 44 | | |meltyba | 2 | H | No? | Yes | No? | joystick with 4 buttons? | Crashes in attract/gameplay with wrong mask | |
| 45 | | |karous | 1 | V | Yes | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 39 | |kurucham | 2 | H | Yes | Yes | No | joystick with 3 buttons | Broken i/o, crashes in attract with wrong mask | |
| 40 | |undefeat | 2 | V | No | No | No | joystick with 2 buttons | Stuck at the "now loading" msg | |
| 41 | |trgheart | 1 | V | Yes | Yes | No | joystick with 3 buttons | Broken i/o | |
| 42 | |jingystm | 2 | H | Yes | Yes | No | joystick with 3 buttons | Broken i/o | |
| 43 | |meltyb | 2 | H | Yes | Yes | Yes | joystick with 5 buttons | Crashes in attract mode | |
| 44 | |meltyba | 2 | H | Yes | Yes | Yes | joystick with 5 buttons | Crashes in attract mode | |
| 45 | |karous | 1 | V | Yes | Yes | No | joystick with 3 buttons | Broken i/o | |
| 46 | 46 | |takoron | 2 | H | Yes | Yes | Yes | joystick with 3 buttons | | |
| 47 | 47 | -------------------------------------------------------------------------------------------------------------------------------------- |
| 48 | 48 | |confmiss | 2 | H | Yes | Yes | No | lightgun | | |
| r4499 | r4500 | |
| 53 | 53 | |dygolf | 2 | H | No | No | No | trackball + 4 buttons | Moans about the jvs settings | |
| 54 | 54 | |wsbbgd | 2 | H | No | No | No | ad stick + 2 buttons | Moans about the jvs settings | |
| 55 | 55 | |vtennisg | 2 | H | Yes | Yes | No | joystick with 2 buttons | Broken gfxs, crashes after a while | |
| 56 | | |vathlete | 2 | H | Yes | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 56 | |vathlete | 2 | H | Yes | Yes | No | joystick with 3 buttons | Broken i/o | |
| 57 | 57 | |vtennis2 | 2 | H | No | No | No | joystick with 3 buttons | | |
| 58 | 58 | |keyboard | 2 | H | Yes | Yes | No | keyboard | Broken i/o, crashes after a while | |
| 59 | 59 | |lupinsho | 2 | H | Yes | Yes | No | lightgun | Broken i/o, crashes after a while | |
| 60 | | |luptype | 2 | H | Yes | Yes | No | keyboard | Broken i/o, crashes after a while | |
| 60 | |luptype | 2 | H | Yes | Yes | No | keyboard | Broken i/o, ARM cpu crashes when inserting a coin | |
| 61 | 61 | |mok | 2 | H | Yes | Yes | No | lightgun | Broken i/o | |
| 62 | 62 | |ngdup23a | 2 | H | Yes | Yes | Yes | n/a | Missing DIMM emulation | |
| 63 | 63 | |ngdup23c | 2 | H | Yes | Yes | Yes | n/a | Missing DIMM emulation | |
| 64 | | |puyofev | 2 | H | Yes | Yes | No | joystick with 3 buttons? | Broken i/o | |
| 64 | |puyofev | 2 | H | Yes | Yes | No | joystick with 2 buttons | Broken i/o? Hangs after pressing start | |
| 65 | 65 | -------------------------------------------------------------------------------------------------------------------------------------- |
| 66 | 66 | |
| 67 | 67 | Test: If it enters into test mode (not actually working test mode, i.e. if inputs doesn't work) |
| r4499 | r4500 | |
| 1550 | 1550 | ROM_REGION( 0x200000, "maincpu", 0) |
| 1551 | 1551 | NAOMI_BIOS |
| 1552 | 1552 | |
| 1553 | | ROM_REGION( 0x400000, "user1", 0) |
| 1554 | | ROM_LOAD("epr23210.22", 0x00000, 0x400000, CRC(a15c54b5) SHA1(5c7872244d3d648e4c04751f120d0e9d47239921) ) |
| 1555 | | |
| 1556 | | ROM_REGION( 0x8000000, "user2", 0) |
| 1557 | | ROM_LOAD("ic1", 0x0000000, 0x0800000, NO_DUMP ) |
| 1558 | | ROM_LOAD("ic2", 0x0800000, 0x0800000, NO_DUMP ) |
| 1559 | | ROM_LOAD("ic3", 0x1000000, 0x0800000, NO_DUMP ) |
| 1560 | | ROM_LOAD("ic4", 0x1800000, 0x0800000, NO_DUMP ) |
| 1561 | | ROM_LOAD("ic5", 0x2000000, 0x0800000, NO_DUMP ) |
| 1562 | | ROM_LOAD("ic6", 0x2800000, 0x0800000, NO_DUMP ) |
| 1563 | | ROM_LOAD("ic7", 0x3000000, 0x0800000, NO_DUMP ) |
| 1564 | | ROM_LOAD("ic8", 0x3800000, 0x0800000, NO_DUMP ) |
| 1565 | | ROM_LOAD("ic9", 0x4000000, 0x0800000, NO_DUMP ) |
| 1566 | | ROM_LOAD("ic10",0x4800000, 0x0800000, NO_DUMP ) |
| 1567 | | ROM_LOAD("ic11",0x5000000, 0x0800000, NO_DUMP ) |
| 1568 | | ROM_LOAD("ic12",0x5800000, 0x0800000, NO_DUMP ) |
| 1553 | ROM_REGION( 0x6800000, "user1", 0) |
| 1554 | ROM_LOAD("epr-23210.ic22", 0x0000000, 0x0400000, CRC(a15c54b5) SHA1(5c7872244d3d648e4c04751f120d0e9d47239921) ) |
| 1555 | ROM_RELOAD( 0x400000, 0x400000) |
| 1556 | ROM_LOAD("mpr-23198.ic1", 0x0800000, 0x0800000, CRC(ce8d3edf) SHA1(1df5bb4eb440c221b8f1e5f019b02accc235fc28) ) |
| 1557 | ROM_LOAD("mpr-23199.ic2", 0x1000000, 0x0800000, CRC(0979392a) SHA1(7dc433da6f3e47a721a2e86720a65d9752248e92) ) |
| 1558 | ROM_LOAD("mpr-23200.ic3", 0x1800000, 0x0800000, CRC(e4b2db33) SHA1(063bc3789f68be5fcefeeec9e1c8268feb84b7eb) ) |
| 1559 | ROM_LOAD("mpr-23201.ic4", 0x2000000, 0x0800000, CRC(c55ca0fa) SHA1(e6fde606b9ed4fd195da304a7b57e8b7797e368f) ) |
| 1560 | ROM_LOAD("mpr-23202.ic5", 0x2800000, 0x0800000, CRC(983bb21c) SHA1(a30f9b09370cceadf11defc85b5acd3e578477e0) ) |
| 1561 | ROM_LOAD("mpr-23203.ic6", 0x3000000, 0x0800000, CRC(f61b8d96) SHA1(a3522963b1e13b809818ffe5a209dd4ce087ec38) ) |
| 1562 | ROM_LOAD("mpr-23204.ic7", 0x3800000, 0x0800000, CRC(03593ecd) SHA1(5ef3ccbfb7b1cc85ad352b13d70eefcad2b209f6) ) |
| 1563 | ROM_LOAD("mpr-23205.ic8", 0x4000000, 0x0800000, CRC(e8c9349b) SHA1(310f02c5dad84e84362f0f674afa405f7d72f8ce) ) |
| 1564 | ROM_LOAD("mpr-23206.ic9", 0x4800000, 0x0800000, CRC(8089d80f) SHA1(821f5f24616920bf0ed4c86597c27f6a3c39b8e6) ) |
| 1565 | ROM_LOAD("mpr-23207.ic10", 0x5000000, 0x0800000, CRC(39f692a1) SHA1(14bc86b48a995378b4dd3609d38b90cddf2d7483) ) |
| 1566 | ROM_LOAD("mpr-23208.ic11", 0x5800000, 0x0800000, CRC(b9494f4b) SHA1(2f35b25edf5210a82d4b67e639eeae11440d065a) ) |
| 1567 | ROM_LOAD("mpr-23209.ic12s",0x6000000, 0x0800000, CRC(560188c0) SHA1(77f14c9a031c6e5414ffa854d20c40115361d715) ) |
| 1569 | 1568 | ROM_END |
| 1570 | 1569 | |
| 1571 | 1570 | /* |
| r4499 | r4500 | |
| 1701 | 1700 | NAOMI_BIOS |
| 1702 | 1701 | |
| 1703 | 1702 | ROM_REGION( 0x6000000, "user1", 0) |
| 1704 | | ROM_LOAD("epr22927.22", 0x0000000, 0x0400000, CRC(89781723) SHA1(cf644aa66abcec6964d77485a0292f11ba80dd0d) ) |
| 1703 | ROM_LOAD("epr-22927.ic22", 0x0000000, 0x0400000, CRC(89781723) SHA1(cf644aa66abcec6964d77485a0292f11ba80dd0d) ) |
| 1705 | 1704 | ROM_RELOAD( 0x400000, 0x400000) |
| 1706 | | ROM_LOAD("ic1.bin", 0x0800000, 0x0800000, CRC(903873e5) SHA1(09af791bc02cca0e2dc72187679830ed9f4fc772) ) |
| 1707 | | ROM_LOAD("ic2.bin", 0x1000000, 0x0800000, CRC(5f020fa6) SHA1(bd2519be8c88ff34cf2fd2b17271d2b41b64ce9f) ) |
| 1708 | | ROM_LOAD("ic3.bin", 0x1800000, 0x0800000, CRC(3c3bf533) SHA1(db43ca9332e76b968b9b388b4824b768f82b9859) ) |
| 1709 | | ROM_LOAD("ic4.bin", 0x2000000, 0x0800000, CRC(3d8dd003) SHA1(91f494b06b9977215ab726a2499b5855d4d49e81) ) |
| 1710 | | ROM_LOAD("ic5.bin", 0x2800000, 0x0800000, CRC(efd781d4) SHA1(ced5a8dc8ff7677b3cac2a4fae04670c46cc96af) ) |
| 1711 | | ROM_LOAD("ic6.bin", 0x3000000, 0x0800000, CRC(79e75be1) SHA1(82318613c947907e01bbe50569b05ef24789d7c9) ) |
| 1712 | | ROM_LOAD("ic7.bin", 0x3800000, 0x0800000, CRC(44bd3883) SHA1(5c595d903d8865bf8bf3aafb1f527bff232718ed) ) |
| 1713 | | ROM_LOAD("ic8.bin", 0x4000000, 0x0800000, CRC(9ebdf0f8) SHA1(f1b688bda387fc00c70cb6a0c374c6c13926c138) ) |
| 1714 | | ROM_LOAD("ic9.bin", 0x4800000, 0x0800000, CRC(ecde9d57) SHA1(1fbe7fdf66a56f4f1765baf113dff95142bfd114) ) |
| 1715 | | ROM_LOAD("ic10.bin",0x5000000, 0x0800000, CRC(81057e42) SHA1(d41137ae28c64dbdb50150db8cf25851bc0709c4) ) |
| 1716 | | ROM_LOAD("ic11.bin",0x5800000, 0x0800000, CRC(57eec89d) SHA1(dd8f9a9155e51ee5260f559449fb0ea245077952) ) |
| 1705 | ROM_LOAD("mpr-22916.ic1", 0x0800000, 0x0800000, CRC(903873e5) SHA1(09af791bc02cca0e2dc72187679830ed9f4fc772) ) |
| 1706 | ROM_LOAD("mpr-22917.ic2", 0x1000000, 0x0800000, CRC(5f020fa6) SHA1(bd2519be8c88ff34cf2fd2b17271d2b41b64ce9f) ) |
| 1707 | ROM_LOAD("mpr-22918.ic3", 0x1800000, 0x0800000, CRC(3c3bf533) SHA1(db43ca9332e76b968b9b388b4824b768f82b9859) ) |
| 1708 | ROM_LOAD("mpr-22919.ic4", 0x2000000, 0x0800000, CRC(3d8dd003) SHA1(91f494b06b9977215ab726a2499b5855d4d49e81) ) |
| 1709 | ROM_LOAD("mpr-22920.ic5", 0x2800000, 0x0800000, CRC(efd781d4) SHA1(ced5a8dc8ff7677b3cac2a4fae04670c46cc96af) ) |
| 1710 | ROM_LOAD("mpr-22921.ic6", 0x3000000, 0x0800000, CRC(79e75be1) SHA1(82318613c947907e01bbe50569b05ef24789d7c9) ) |
| 1711 | ROM_LOAD("mpr-22922.ic7", 0x3800000, 0x0800000, CRC(44bd3883) SHA1(5c595d903d8865bf8bf3aafb1f527bff232718ed) ) |
| 1712 | ROM_LOAD("mpr-22923.ic8", 0x4000000, 0x0800000, CRC(9ebdf0f8) SHA1(f1b688bda387fc00c70cb6a0c374c6c13926c138) ) |
| 1713 | ROM_LOAD("mpr-22924.ic9", 0x4800000, 0x0800000, CRC(ecde9d57) SHA1(1fbe7fdf66a56f4f1765baf113dff95142bfd114) ) |
| 1714 | ROM_LOAD("mpr-22925.ic10",0x5000000, 0x0800000, CRC(81057e42) SHA1(d41137ae28c64dbdb50150db8cf25851bc0709c4) ) |
| 1715 | ROM_LOAD("mpr-22926.ic11",0x5800000, 0x0800000, CRC(57eec89d) SHA1(dd8f9a9155e51ee5260f559449fb0ea245077952) ) |
| 1717 | 1716 | ROM_END |
| 1718 | 1717 | |
| 1719 | 1718 | |
| r4499 | r4500 | |
| 1949 | 1948 | ROM_REGION( 0x200000, "maincpu", 0) |
| 1950 | 1949 | NAOMI_BIOS |
| 1951 | 1950 | |
| 1952 | | ROM_REGION( 0x400000, "user1", 0) |
| 1953 | | ROM_LOAD("epr23716a.22", 0x0000000, 0x0400000, CRC(c5cb0d3b) SHA1(20de8f5ee183e996ccde77b10564a302939662db) ) |
| 1954 | | |
| 1955 | | ROM_REGION( 0x5800000, "user2", 0) |
| 1956 | | ROM_LOAD("ic1", 0x0000000, 0x0800000, NO_DUMP ) |
| 1957 | | ROM_LOAD("ic2", 0x0800000, 0x0800000, NO_DUMP ) |
| 1958 | | ROM_LOAD("ic3", 0x1000000, 0x0800000, NO_DUMP ) |
| 1959 | | ROM_LOAD("ic4", 0x1800000, 0x0800000, NO_DUMP ) |
| 1960 | | ROM_LOAD("ic5", 0x2000000, 0x0800000, NO_DUMP ) |
| 1961 | | ROM_LOAD("ic6", 0x2800000, 0x0800000, NO_DUMP ) |
| 1962 | | ROM_LOAD("ic7", 0x3000000, 0x0800000, NO_DUMP ) |
| 1963 | | ROM_LOAD("ic8", 0x3800000, 0x0800000, NO_DUMP ) |
| 1964 | | ROM_LOAD("ic9", 0x4000000, 0x0800000, NO_DUMP ) |
| 1965 | | ROM_LOAD("ic10",0x4800000, 0x0800000, NO_DUMP ) |
| 1966 | | ROM_LOAD("ic11",0x5000000, 0x0800000, NO_DUMP ) |
| 1951 | ROM_REGION( 0x6000000, "user1", 0) |
| 1952 | ROM_LOAD("epr-23716a.ic22", 0x0000000, 0x0400000, CRC(c5cb0d3b) SHA1(20de8f5ee183e996ccde77b10564a302939662db) ) |
| 1953 | ROM_RELOAD( 0x400000, 0x400000) |
| 1954 | ROM_LOAD("mpr-23705.ic1", 0x0800000, 0x0800000, CRC(2549b57d) SHA1(02c04c8ccb0de680171d06700ca9a40208286894) ) |
| 1955 | ROM_LOAD("mpr-23706.ic2", 0x1000000, 0x0800000, CRC(9f21865c) SHA1(a1f5aec34097cf2b86110110f586ba8b3cf28bd1) ) |
| 1956 | ROM_LOAD("mpr-23707.ic3", 0x1800000, 0x0800000, CRC(ba2f42cd) SHA1(e924f8ef58cc81b7303d8fb3baf0e384c6387e7f) ) |
| 1957 | ROM_LOAD("mpr-23708.ic4", 0x2000000, 0x0800000, CRC(19c4e61b) SHA1(a4619df98818d33bdaa3e6429c14d1aeec316e6a)) |
| 1958 | ROM_LOAD("mpr-23709.ic5", 0x2800000, 0x0800000, CRC(676430b3) SHA1(5fa40c45afe97b0f09e575e3c01d44aa9259961d) ) |
| 1959 | ROM_LOAD("mpr-23710.ic6", 0x3000000, 0x0800000, CRC(5d32dba3) SHA1(5bb5796a682cc6ee68458403c69343bf753ece7a) ) |
| 1960 | ROM_LOAD("mpr-23711.ic7", 0x3800000, 0x0800000, CRC(650df507) SHA1(dff192b3bd4f39627779e2ba86d9dd13536221dd) ) |
| 1961 | ROM_LOAD("mpr-23712.ic8", 0x4000000, 0x0800000, CRC(154f10ce) SHA1(67f6ff297f77632efe1965a81ed9f5c7dfa7a6b3) ) |
| 1962 | ROM_LOAD("mpr-23713.ic9", 0x4800000, 0x0800000, CRC(2969bac7) SHA1(5f1cf6ac726c2fe183d66e4022962e44592f9ccd) ) |
| 1963 | ROM_LOAD("mpr-23714.ic10",0x5000000, 0x0800000, CRC(da462c44) SHA1(ca450b6c07f939f96eba7b44c45b4e38abd598aa) ) |
| 1964 | ROM_LOAD("mpr-23715.ic11",0x5800000, 0x0800000, BAD_DUMP CRC(59dfd3ad) SHA1(bb8f7a1bcf16038b18f4485a6b6d81fa72ca7bd0) ) |
| 1967 | 1965 | ROM_END |
| 1968 | 1966 | |
| 1969 | 1967 | /* |
| r4499 | r4500 | |
| 2112 | 2110 | NAOMI_BIOS |
| 2113 | 2111 | |
| 2114 | 2112 | ROM_REGION( 0x9000000, "user1", 0) |
| 2115 | | ROM_LOAD("epr23341.22", 0x0000000, 0x0400000, CRC(477fa123) SHA1(d2474766dcd0b0e5fe317a858534829eb1c26789) ) |
| 2113 | ROM_LOAD("epr-23341.ic22", 0x0000000, 0x0400000, CRC(477fa123) SHA1(d2474766dcd0b0e5fe317a858534829eb1c26789) ) |
| 2116 | 2114 | ROM_RELOAD( 0x400000, 0x400000) |
| 2117 | | ROM_LOAD("ic1.bin", 0x0800000, 0x0800000, CRC(8624493a) SHA1(4fe940a889619f2a75c45e15efb2b8ed9020bc55) ) |
| 2118 | | ROM_LOAD("ic2.bin", 0x1000000, 0x0800000, CRC(f952d0d4) SHA1(4b5403b98bf977c1e3a045619e1eddb4e4ab69c7) ) |
| 2119 | | ROM_LOAD("ic3.bin", 0x1800000, 0x0800000, CRC(6c5ce16e) SHA1(110b5d536557ab6610a7c32db2e6e46901da9579) ) |
| 2120 | | ROM_LOAD("ic4.bin", 0x2000000, 0x0800000, CRC(1b3d02a0) SHA1(3e02a0cb3d945e5d6cea03236d6571d45a7afd51) ) |
| 2121 | | ROM_LOAD("ic5.bin", 0x2800000, 0x0800000, CRC(50053662) SHA1(3ced87ee533fd7a32d64c41f1fcbde9c648ab188) ) |
| 2122 | | ROM_LOAD("ic6.bin", 0x3000000, 0x0800000, CRC(96148e80) SHA1(c0f30556395edb9a7558006e89d6adc2f6bdc048) ) |
| 2123 | | ROM_LOAD("ic7.bin", 0x3800000, 0x0800000, CRC(15f2f9a1) SHA1(9cea71b6f6466ccd840218f5dcb09ea7525208d8) ) |
| 2124 | | ROM_LOAD("ic8.bin", 0x4000000, 0x0800000, CRC(a084ab51) SHA1(1f5c863012004bbeefc82b172a92011a175428a6) ) |
| 2125 | | ROM_LOAD("ic9.bin", 0x4800000, 0x0800000, CRC(50539e17) SHA1(38ec16a868c892e177fbb45be563e1b649956550) ) |
| 2126 | | ROM_LOAD("ic10.bin",0x5000000, 0x0800000, CRC(29891831) SHA1(f318bca11ac5eb24b32d5b910a596280221a44ab) ) |
| 2127 | | ROM_LOAD("ic11.bin",0x5800000, 0x0800000, CRC(c1ad0614) SHA1(e38ff316da889eb029d0a9348f6b2284f3a36f29) ) |
| 2128 | | ROM_LOAD("ic12.bin",0x6000000, 0x0800000, CRC(faeb25ed) SHA1(623f3f78c94ba44e77491c18a6521a19b1101a67) ) |
| 2129 | | ROM_LOAD("ic13.bin",0x6800000, 0x0800000, CRC(63589d0f) SHA1(53770cc1268892e8cdb76b6edf2fb39e8b605554) ) |
| 2130 | | ROM_LOAD("ic14.bin",0x7000000, 0x0800000, CRC(2bc46263) SHA1(38ec579768ac37ed3ad21911b1970241906af8ea) ) |
| 2131 | | ROM_LOAD("ic15.bin",0x7800000, 0x0800000, CRC(323e4db2) SHA1(c5484589c1613110faef6cf8b8f4def8867a8226) ) |
| 2132 | | ROM_LOAD("ic16.bin",0x8000000, 0x0800000, CRC(fd8c2736) SHA1(34ae1a4e35b4aac6666719fb4fc0959bd64ff3d6) ) |
| 2133 | | ROM_LOAD("ic17.bin",0x8800000, 0x0800000, CRC(001604f8) SHA1(615ec027d383d44d4aadb1175be6320e4139d7d1) ) |
| 2115 | ROM_LOAD("mpr-23324.ic1", 0x0800000, 0x0800000, CRC(8624493a) SHA1(4fe940a889619f2a75c45e15efb2b8ed9020bc55) ) |
| 2116 | ROM_LOAD("mpr-23325.ic2", 0x1000000, 0x0800000, CRC(f952d0d4) SHA1(4b5403b98bf977c1e3a045619e1eddb4e4ab69c7) ) |
| 2117 | ROM_LOAD("mpr-23326.ic3", 0x1800000, 0x0800000, CRC(6c5ce16e) SHA1(110b5d536557ab6610a7c32db2e6e46901da9579) ) |
| 2118 | ROM_LOAD("mpr-23327.ic4", 0x2000000, 0x0800000, CRC(1b3d02a0) SHA1(3e02a0cb3d945e5d6cea03236d6571d45a7afd51) ) |
| 2119 | ROM_LOAD("mpr-23328.ic5", 0x2800000, 0x0800000, CRC(50053662) SHA1(3ced87ee533fd7a32d64c41f1fcbde9c648ab188) ) |
| 2120 | ROM_LOAD("mpr-23329.ic6", 0x3000000, 0x0800000, CRC(96148e80) SHA1(c0f30556395edb9a7558006e89d6adc2f6bdc048) ) |
| 2121 | ROM_LOAD("mpr-23330.ic7", 0x3800000, 0x0800000, CRC(15f2f9a1) SHA1(9cea71b6f6466ccd840218f5dcb09ea7525208d8) ) |
| 2122 | ROM_LOAD("mpr-23331.ic8", 0x4000000, 0x0800000, CRC(a084ab51) SHA1(1f5c863012004bbeefc82b172a92011a175428a6) ) |
| 2123 | ROM_LOAD("mpr-23332.ic9", 0x4800000, 0x0800000, CRC(50539e17) SHA1(38ec16a868c892e177fbb45be563e1b649956550) ) |
| 2124 | ROM_LOAD("mpr-23333.ic10",0x5000000, 0x0800000, CRC(29891831) SHA1(f318bca11ac5eb24b32d5b910a596280221a44ab) ) |
| 2125 | ROM_LOAD("mpr-23334.ic11",0x5800000, 0x0800000, CRC(c1ad0614) SHA1(e38ff316da889eb029d0a9348f6b2284f3a36f29) ) |
| 2126 | ROM_LOAD("mpr-23335.ic12s",0x6000000, 0x0800000, CRC(faeb25ed) SHA1(623f3f78c94ba44e77491c18a6521a19b1101a67) ) |
| 2127 | ROM_LOAD("mpr-23336.ic13s",0x6800000, 0x0800000, CRC(63589d0f) SHA1(53770cc1268892e8cdb76b6edf2fb39e8b605554) ) |
| 2128 | ROM_LOAD("mpr-23337.ic14s",0x7000000, 0x0800000, CRC(2bc46263) SHA1(38ec579768ac37ed3ad21911b1970241906af8ea) ) |
| 2129 | ROM_LOAD("mpr-23338.ic15s",0x7800000, 0x0800000, CRC(323e4db2) SHA1(c5484589c1613110faef6cf8b8f4def8867a8226) ) |
| 2130 | ROM_LOAD("mpr-23339.ic16s",0x8000000, 0x0800000, CRC(fd8c2736) SHA1(34ae1a4e35b4aac6666719fb4fc0959bd64ff3d6) ) |
| 2131 | ROM_LOAD("mpr-23340.ic17s",0x8800000, 0x0800000, CRC(001604f8) SHA1(615ec027d383d44d4aadb1175be6320e4139d7d1) ) |
| 2134 | 2132 | ROM_END |
| 2135 | 2133 | |
| 2136 | 2134 | |
| r4499 | r4500 | |
| 2224 | 2222 | ROM_REGION( 0x200000, "maincpu", 0) |
| 2225 | 2223 | NAOMI_BIOS |
| 2226 | 2224 | |
| 2227 | | ROM_REGION( 0x400000, "user1", 0) |
| 2228 | | ROM_LOAD("epr21597.22", 0x0000000, 0x0200000, CRC(62c7acc0) SHA1(bb61641a7f3650757132cde379447bdc9bd91c78) ) |
| 2229 | | |
| 2230 | | ROM_REGION( 0x4000000, "user2", 0) |
| 2231 | | ROM_LOAD("ic1", 0x0000000, 0x0800000, NO_DUMP ) |
| 2232 | | ROM_LOAD("ic2", 0x0800000, 0x0800000, NO_DUMP ) |
| 2233 | | ROM_LOAD("ic3", 0x1000000, 0x0800000, NO_DUMP ) |
| 2234 | | ROM_LOAD("ic4", 0x1800000, 0x0800000, NO_DUMP ) |
| 2235 | | ROM_LOAD("ic5", 0x2000000, 0x0800000, NO_DUMP ) |
| 2236 | | ROM_LOAD("ic6", 0x2800000, 0x0800000, NO_DUMP ) |
| 2237 | | ROM_LOAD("ic7", 0x3000000, 0x0800000, NO_DUMP ) |
| 2238 | | ROM_LOAD("ic8", 0x3800000, 0x0800000, NO_DUMP ) |
| 2225 | ROM_REGION( 0x4800000, "user1", 0) |
| 2226 | ROM_LOAD("epr-21597.ic22", 0x0000000, 0x0200000, CRC(62c7acc0) SHA1(bb61641a7f3650757132cde379447bdc9bd91c78) ) |
| 2227 | ROM_RELOAD( 0x200000, 0x200000) |
| 2228 | ROM_RELOAD( 0x400000, 0x200000) |
| 2229 | ROM_RELOAD( 0x600000, 0x200000) |
| 2230 | ROM_LOAD("mpr-21589.ic1", 0x0800000, 0x0800000, CRC(2fa66608) SHA1(144bda75f892a1e4dbd8332439e9e44fad1d0695) ) |
| 2231 | ROM_LOAD("mpr-21590.ic2", 0x1000000, 0x0800000, CRC(6341b399) SHA1(d123b6a3eb7c4800950cc5849d748b0edafabc7d) ) |
| 2232 | ROM_LOAD("mpr-21591.ic3", 0x1800000, 0x0800000, CRC(7f2d99aa) SHA1(00f9ae67be0d7229c37479b6dc0ed5816035fd98) ) |
| 2233 | ROM_LOAD("mpr-21592.ic4", 0x2000000, 0x0800000, CRC(6ebe3b25) SHA1(c7dec77d55b0fcf1d230311b24553581a90a7d22) ) |
| 2234 | ROM_LOAD("mpr-21593.ic5", 0x2800000, 0x0800000, CRC(84366f3e) SHA1(c61985f627813db2e16182e437ab4a69d5253c9f) ) |
| 2235 | ROM_LOAD("mpr-21594.ic6", 0x3000000, 0x0800000, CRC(ddfa0467) SHA1(e758eae50035d5f18d99dbed728513e306d9566f) ) |
| 2236 | ROM_LOAD("mpr-21595.ic7", 0x3800000, 0x0800000, CRC(7ab218f7) SHA1(c5c022e63f926cce09d49331647cde20e8e42ab3) ) |
| 2237 | ROM_LOAD("mpr-21596.ic8", 0x4000000, 0x0800000, CRC(f27dbdc5) SHA1(d54717d62897546968de2f049239f68bee49bdd8) ) |
| 2239 | 2238 | ROM_END |
| 2240 | 2239 | |
| 2241 | 2240 | /* |
| r4499 | r4500 | |
| 2265 | 2264 | ROM_REGION( 0x200000, "maincpu", 0) |
| 2266 | 2265 | NAOMI_BIOS |
| 2267 | 2266 | |
| 2268 | | ROM_REGION( 0x400000, "user1", 0) |
| 2269 | | ROM_LOAD("epr23127.22", 0x0000000, 0x0400000, CRC(185761d6) SHA1(8c91b594dd59313d249c9da7b39dee21d3c9082e) ) |
| 2270 | | |
| 2271 | | ROM_REGION( 0x4800000, "user2", 0) |
| 2272 | | ROM_LOAD("ic1", 0x0000000, 0x0800000, NO_DUMP ) |
| 2273 | | ROM_LOAD("ic2", 0x0800000, 0x0800000, NO_DUMP ) |
| 2274 | | ROM_LOAD("ic3", 0x1000000, 0x0800000, NO_DUMP ) |
| 2275 | | ROM_LOAD("ic4", 0x1800000, 0x0800000, NO_DUMP ) |
| 2276 | | ROM_LOAD("ic5", 0x2000000, 0x0800000, NO_DUMP ) |
| 2277 | | ROM_LOAD("ic6", 0x2800000, 0x0800000, NO_DUMP ) |
| 2278 | | ROM_LOAD("ic7", 0x3000000, 0x0800000, NO_DUMP ) |
| 2279 | | ROM_LOAD("ic8", 0x3800000, 0x0800000, NO_DUMP ) |
| 2280 | | ROM_LOAD("ic9", 0x4000000, 0x0800000, NO_DUMP ) |
| 2267 | ROM_REGION( 0x5000000, "user1", 0) |
| 2268 | ROM_LOAD("epr-23127.ic22", 0x0000000, 0x0400000, CRC(185761d6) SHA1(8c91b594dd59313d249c9da7b39dee21d3c9082e) ) |
| 2269 | ROM_RELOAD( 0x400000, 0x400000) |
| 2270 | ROM_LOAD("mpr-23118.ic1", 0x0800000, 0x0800000, CRC(c69f3c3c) SHA1(e96ad24473197f8581f5e4398244b9b76957bfdd) ) |
| 2271 | ROM_LOAD("mpr-23119.ic2", 0x1000000, 0x0800000, CRC(a80d444d) SHA1(a7d2a5831412134a26ba37bf83e5ce38eb9f3928) ) |
| 2272 | ROM_LOAD("mpr-23120.ic3", 0x1800000, 0x0800000, CRC(c285dd64) SHA1(e64507caedb9f312ab291b41b8d7fe8922eb434e) ) |
| 2273 | ROM_LOAD("mpr-23121.ic4", 0x2000000, 0x0800000, CRC(1f3f6505) SHA1(da5eb3b9b5c85f5f0b4afe0c0ee8d034108300a2) ) |
| 2274 | ROM_LOAD("mpr-23122.ic5", 0x2800000, 0x0800000, CRC(5e403a12) SHA1(e71c15e63c30e60b6db1fcd2841f66490f31579a) ) |
| 2275 | ROM_LOAD("mpr-23123.ic6", 0x3000000, 0x0800000, CRC(4b71078b) SHA1(f3ed39402f585ae5cf6f8987bf6be6c6d46eafa1) ) |
| 2276 | ROM_LOAD("mpr-23124.ic7", 0x3800000, 0x0800000, CRC(508c0207) SHA1(e50d97a17cdd6771fbc63a254a4d638e7daa8f57) ) |
| 2277 | ROM_LOAD("mpr-23125.ic8", 0x4000000, 0x0800000, CRC(b9938bbc) SHA1(d55d7adecb5a5a4a276a5a17c12808085d980fd9) ) |
| 2278 | ROM_LOAD("mpr-23126.ic9", 0x4800000, 0x0800000, CRC(fbb0325b) SHA1(21b965519d7508d84344641d43e8af2c3ca29ba4) ) |
| 2281 | 2279 | ROM_END |
| 2282 | 2280 | |
| 2283 | 2281 | /* |
| r4499 | r4500 | |
| 2318 | 2316 | ROM_REGION( 0x200000, "maincpu", 0) |
| 2319 | 2317 | NAOMI_BIOS |
| 2320 | 2318 | |
| 2321 | | ROM_REGION( 0x400000, "user1", 0) |
| 2322 | | ROM_LOAD("epr22163.22", 0x0000000, 0x0400000, CRC(3bdafb6a) SHA1(c4c5a4ba94d85c4353df22d70bb08be67e9c22c3) ) |
| 2323 | | |
| 2324 | | ROM_REGION( 0x9800000, "user2", 0) |
| 2325 | | ROM_LOAD("ic1", 0x0000000, 0x0800000, NO_DUMP ) |
| 2326 | | ROM_LOAD("ic2", 0x0800000, 0x0800000, NO_DUMP ) |
| 2327 | | ROM_LOAD("ic3", 0x1000000, 0x0800000, NO_DUMP ) |
| 2328 | | ROM_LOAD("ic4", 0x1800000, 0x0800000, NO_DUMP ) |
| 2329 | | ROM_LOAD("ic5", 0x2000000, 0x0800000, NO_DUMP ) |
| 2330 | | ROM_LOAD("ic6", 0x2800000, 0x0800000, NO_DUMP ) |
| 2331 | | ROM_LOAD("ic7", 0x3000000, 0x0800000, NO_DUMP ) |
| 2332 | | ROM_LOAD("ic8", 0x3800000, 0x0800000, NO_DUMP ) |
| 2333 | | ROM_LOAD("ic9", 0x4000000, 0x0800000, NO_DUMP ) |
| 2334 | | ROM_LOAD("ic10",0x4800000, 0x0800000, NO_DUMP ) |
| 2335 | | ROM_LOAD("ic11",0x5000000, 0x0800000, NO_DUMP ) |
| 2336 | | ROM_LOAD("ic12",0x5800000, 0x0800000, NO_DUMP ) |
| 2337 | | ROM_LOAD("ic13",0x6000000, 0x0800000, NO_DUMP ) |
| 2338 | | ROM_LOAD("ic14",0x6800000, 0x0800000, NO_DUMP ) |
| 2339 | | ROM_LOAD("ic15",0x7000000, 0x0800000, NO_DUMP ) |
| 2340 | | ROM_LOAD("ic16",0x7800000, 0x0800000, NO_DUMP ) |
| 2341 | | ROM_LOAD("ic17",0x8000000, 0x0800000, NO_DUMP ) |
| 2342 | | ROM_LOAD("ic18",0x8800000, 0x0800000, NO_DUMP ) |
| 2343 | | ROM_LOAD("ic19",0x9000000, 0x0800000, NO_DUMP ) |
| 2319 | ROM_REGION( 0xa000000, "user1", 0) |
| 2320 | ROM_LOAD("epr-22163.ic22", 0x0000000, 0x0400000, CRC(3bdafb6a) SHA1(c4c5a4ba94d85c4353df22d70bb08be67e9c22c3) ) |
| 2321 | ROM_RELOAD( 0x400000, 0x400000) |
| 2322 | ROM_LOAD("mpr-22142.ic1", 0x0800000, 0x0800000, CRC(5b45fa35) SHA1(7d3fbecc6f0dce2b13bfb21ed68f44632b91b94b) ) |
| 2323 | ROM_LOAD("mpr-22143.ic2", 0x1000000, 0x0800000, CRC(b43c4d6d) SHA1(77e0b37ca3ee94b7f77d88ccb14bd0469a76aac0) ) |
| 2324 | ROM_LOAD("mpr-22144.ic3", 0x1800000, 0x0800000, CRC(e78581af) SHA1(d1fe4da3f16dd5ebc7d9eaa092de1e16ec9c3321) ) |
| 2325 | ROM_LOAD("mpr-22145.ic4", 0x2000000, 0x0800000, CRC(2b6274ea) SHA1(89165cf84ebb02e99163624c6d31da38aeec000e) ) |
| 2326 | ROM_LOAD("mpr-22146.ic5", 0x2800000, 0x0800000, CRC(c24eb03f) SHA1(2f4b720b4ab106f891f4469b6e93a9979b1c1061) ) |
| 2327 | ROM_LOAD("mpr-22147.ic6", 0x3000000, 0x0800000, CRC(578e36fd) SHA1(f39f74b046efbff7e7baf70effdd368605da496f) ) |
| 2328 | ROM_LOAD("mpr-22148.ic7", 0x3800000, 0x0800000, CRC(e6053373) SHA1(e7bafaffeac9b6851a3fce060be21e8be8eaa71e) ) |
| 2329 | ROM_LOAD("mpr-22149.ic8", 0x4000000, 0x0800000, CRC(cc86691b) SHA1(624958bc07eef5fac98642e9acd460cd5fe0c815) ) |
| 2330 | ROM_LOAD("mpr-22150.ic9", 0x4800000, 0x0800000, CRC(f585d41d) SHA1(335df3d3f2631e5c03c39465cd702b77ce3f9717) ) |
| 2331 | ROM_LOAD("mpr-22151.ic10",0x5000000, 0x0800000, CRC(aae31a4b) SHA1(1472e477c2c6b89ca03824838757bdf20efbdf45) ) |
| 2332 | ROM_LOAD("mpr-22152.ic11",0x5800000, 0x0800000, CRC(5ed2c5ea) SHA1(2b9237eda566ccb87b4914db61a03e2c9035a280) ) |
| 2333 | ROM_LOAD("mpr-22153.ic12s",0x6000000, 0x0800000, CRC(16630b85) SHA1(10e926c0d13270b5bf99d7456fe63baafc2df56a) ) |
| 2334 | ROM_LOAD("mpr-22154.ic13s",0x6800000, 0x0800000, CRC(30a2d60b) SHA1(6431b2d4e5106e25e5517707c9667bcd714f43ac) ) |
| 2335 | ROM_LOAD("mpr-22155.ic14s",0x7000000, 0x0800000, CRC(163993a5) SHA1(351a626a0dc9a3030b10fc0b822075f3010fdc05) ) |
| 2336 | ROM_LOAD("mpr-22156.ic15s",0x7800000, 0x0800000, CRC(37720b4f) SHA1(bd60beadb0081ed20610c3988577bbf37bfdab07) ) |
| 2337 | ROM_LOAD("mpr-22157.ic16s",0x8000000, 0x0800000, CRC(dfd6fa83) SHA1(e0dc9606f5521af16c29a30378e81843c8dbc188) ) |
| 2338 | ROM_LOAD("mpr-22158.ic17s",0x8800000, 0x0800000, CRC(f5d96fe9) SHA1(d5d0ac3d6b7c9b851a18b22d5fb599710c684a76) ) |
| 2339 | ROM_LOAD("mpr-22159.ic18s",0x9000000, 0x0800000, CRC(f8b5e99d) SHA1(bb174a6a80967d0ff05c3a7512e4f0f9c921d130) ) |
| 2340 | ROM_LOAD("mpr-22160.ic19s",0x9800000, 0x0800000, CRC(579eef4e) SHA1(bfcabd57f623647053afcedcabfbc74e5736819f) ) |
| 2344 | 2341 | ROM_END |
| 2345 | 2342 | |
| 2346 | 2343 | /* |
| r4499 | r4500 | |
| 2375 | 2372 | ROM_REGION( 0x200000, "maincpu", 0) |
| 2376 | 2373 | NAOMI_BIOS |
| 2377 | 2374 | |
| 2378 | | ROM_REGION( 0x400000, "user1", 0) |
| 2379 | | ROM_LOAD("epr22966b.ic22", 0x0000000, 0x0400000, CRC(893116b8) SHA1(35cb4f40690ff21af5ab7cc5adbc53228d6fb0b3) ) |
| 2380 | | |
| 2381 | | ROM_REGION( 0x8000000, "user2", 0) |
| 2382 | | ROM_LOAD("ic1", 0x0000000, 0x0800000, NO_DUMP ) |
| 2383 | | ROM_LOAD("ic2", 0x0800000, 0x0800000, NO_DUMP ) |
| 2384 | | ROM_LOAD("ic3", 0x1000000, 0x0800000, NO_DUMP ) |
| 2385 | | ROM_LOAD("ic4", 0x1800000, 0x0800000, NO_DUMP ) |
| 2386 | | ROM_LOAD("ic5", 0x2000000, 0x0800000, NO_DUMP ) |
| 2387 | | ROM_LOAD("ic6", 0x2800000, 0x0800000, NO_DUMP ) |
| 2388 | | ROM_LOAD("ic7", 0x3000000, 0x0800000, NO_DUMP ) |
| 2389 | | ROM_LOAD("ic8", 0x3800000, 0x0800000, NO_DUMP ) |
| 2390 | | ROM_LOAD("ic9", 0x4000000, 0x0800000, NO_DUMP ) |
| 2391 | | ROM_LOAD("ic10",0x4800000, 0x0800000, NO_DUMP ) |
| 2392 | | ROM_LOAD("ic11",0x5000000, 0x0800000, NO_DUMP ) |
| 2393 | | ROM_LOAD("ic12",0x5800000, 0x0800000, NO_DUMP ) |
| 2394 | | ROM_LOAD("ic13",0x6000000, 0x0800000, NO_DUMP ) |
| 2395 | | ROM_LOAD("ic14",0x6800000, 0x0800000, NO_DUMP ) |
| 2396 | | ROM_LOAD("ic15",0x7000000, 0x0800000, NO_DUMP ) |
| 2397 | | ROM_LOAD("ic16",0x7800000, 0x0800000, NO_DUMP ) |
| 2375 | ROM_REGION( 0x8800000, "user1", 0) |
| 2376 | ROM_LOAD("epr-22966b.ic22", 0x0000000, 0x0400000, CRC(893116b8) SHA1(35cb4f40690ff21af5ab7cc5adbc53228d6fb0b3) ) |
| 2377 | ROM_LOAD("mpr-22950.ic1", 0x0800000, 0x0800000, CRC(16dee15c) SHA1(b46849e492756ff406bf8956303472255fcf55a5) ) |
| 2378 | ROM_LOAD("mpr-22951.ic2", 0x1000000, 0x0800000, CRC(f509496f) SHA1(41281576f7d58c8ede9c0a89bfd46a98d5b97033) ) |
| 2379 | ROM_LOAD("mpr-22952.ic3", 0x1800000, 0x0800000, CRC(fb9b3ef0) SHA1(e9d44b673c273e97445a12186496a0594e291542) ) |
| 2380 | ROM_LOAD("mpr-22953.ic4", 0x2000000, 0x0800000, CRC(07207ce0) SHA1(b802bb4e78f3737a4e333f819b9a4e0249037288) ) |
| 2381 | ROM_LOAD("mpr-22954.ic5", 0x2800000, 0x0800000, CRC(c8e797d1) SHA1(fadbd1e24882787634229003245293ce79ba2617) ) |
| 2382 | ROM_LOAD("mpr-22955.ic6", 0x3000000, 0x0800000, CRC(064ef007) SHA1(8325f9aa537ce329e71dce2b588a3d4fc176c37b) ) |
| 2383 | ROM_LOAD("mpr-22956.ic7", 0x3800000, 0x0800000, CRC(fe8f2964) SHA1(3a33162f797cd93b7dbb313b531215e340719110) ) |
| 2384 | ROM_LOAD("mpr-22957.ic8", 0x4000000, 0x0800000, CRC(74842c01) SHA1(b02884925270edb66831ab502a0aa2f9430adc9f) ) |
| 2385 | ROM_LOAD("mpr-22958.ic9", 0x4800000, 0x0800000, CRC(b1ead447) SHA1(06b848eb7f592763768050a1ae82b4cac9499684) ) |
| 2386 | ROM_LOAD("mpr-22959.ic10",0x5000000, 0x0800000, CRC(d32d7983) SHA1(86a9e5eae4598b6998f0ea578d6152e66c1a0df1) ) |
| 2387 | ROM_LOAD("mpr-22960.ic11",0x5800000, 0x0800000, CRC(6c3b228e) SHA1(782c0fda106222be75b1973586c8bf78fd2186e7) ) |
| 2388 | ROM_LOAD("mpr-22961.ic12s",0x6000000, 0x0800000, CRC(d6d26a8d) SHA1(7d416f8ac9fbbeb9bfe217ccc8eccf1644511110) ) |
| 2389 | ROM_LOAD("mpr-22962.ic13s",0x6800000, 0x0800000, CRC(c2f41101) SHA1(0bf87cbffb7d6a5ab32543cef56c9759f475419a) ) |
| 2390 | ROM_LOAD("mpr-22963.ic14s",0x7000000, 0x0800000, CRC(a53e9919) SHA1(d81eb79bc706f85ebfbc56a9b2889ae62d629e8e) ) |
| 2391 | ROM_LOAD("mpr-22964.ic15s",0x7800000, 0x0800000, CRC(f581d5a3) SHA1(8cf769f5b0a48951246bb60e9cf58232bcee7bc8) ) |
| 2392 | ROM_LOAD("mpr-22965.ic16s",0x8000000, 0x0800000, CRC(8f7bfa8a) SHA1(19f137b1552978d232785c4408805b71835585c6) ) |
| 2398 | 2393 | ROM_END |
| 2399 | 2394 | |
| 2400 | 2395 | /* |
| r4499 | r4500 | |
| 2425 | 2420 | ROM_REGION( 0x200000, "maincpu", 0) |
| 2426 | 2421 | NAOMI_BIOS |
| 2427 | 2422 | |
| 2428 | | ROM_REGION( 0x400000, "user1", 0) |
| 2429 | | ROM_LOAD("epr22977b.22", 0x0000000, 0x0400000, CRC(814ff5d1) SHA1(5a0a9e55878927f98750000eb7d9391cbecfe21d) ) |
| 2430 | | |
| 2431 | | ROM_REGION( 0x5000000, "user2", 0) |
| 2432 | | ROM_LOAD("ic1", 0x0000000, 0x0800000, NO_DUMP ) |
| 2433 | | ROM_LOAD("ic2", 0x0800000, 0x0800000, NO_DUMP ) |
| 2434 | | ROM_LOAD("ic3", 0x1000000, 0x0800000, NO_DUMP ) |
| 2435 | | ROM_LOAD("ic4", 0x1800000, 0x0800000, NO_DUMP ) |
| 2436 | | ROM_LOAD("ic5", 0x2000000, 0x0800000, NO_DUMP ) |
| 2437 | | ROM_LOAD("ic6", 0x2800000, 0x0800000, NO_DUMP ) |
| 2438 | | ROM_LOAD("ic7", 0x3000000, 0x0800000, NO_DUMP ) |
| 2439 | | ROM_LOAD("ic8", 0x3800000, 0x0800000, NO_DUMP ) |
| 2440 | | ROM_LOAD("ic9", 0x4000000, 0x0800000, NO_DUMP ) |
| 2441 | | ROM_LOAD("ic10",0x4800000, 0x0800000, NO_DUMP ) |
| 2423 | ROM_REGION( 0x5800000, "user1", 0) |
| 2424 | ROM_LOAD("epr-22977b.ic22", 0x0000000, 0x0400000, CRC(814ff5d1) SHA1(5a0a9e55878927f98750000eb7d9391cbecfe21d) ) |
| 2425 | ROM_LOAD("mpr-22967.ic1", 0x0800000, 0x0800000, CRC(78c7d914) SHA1(0a000e396f9a83c2c777cfb61212a82ec17417ba) ) |
| 2426 | ROM_LOAD("mpr-22968.ic2", 0x1000000, 0x0800000, CRC(8c4ae1bb) SHA1(a91934a01d306c8fd8f987b3013f33aec028de70) ) |
| 2427 | ROM_LOAD("mpr-22969.ic3", 0x1800000, 0x0800000, CRC(2928627c) SHA1(146844edd22b0caf00b40f7635c8753d5758e958) ) |
| 2428 | ROM_LOAD("mpr-22970.ic4", 0x2000000, 0x0800000, CRC(12e27ffd) SHA1(d09096cd1ff9218cd849bfe05b34ec4d642e1663) ) |
| 2429 | ROM_LOAD("mpr-22971.ic5", 0x2800000, 0x0800000, CRC(993d2bce) SHA1(f04e484704dbddbbff0f36ac5a019fbdde56d402) ) |
| 2430 | ROM_LOAD("mpr-22972.ic6", 0x3000000, 0x0800000, CRC(e0f75067) SHA1(741ebef9e7ae6e5207f1819c3eea80491b934c63) ) |
| 2431 | ROM_LOAD("mpr-22973.ic7", 0x3800000, 0x0800000, CRC(698498ca) SHA1(b3691409cbf644b8acea01abaebf7b2dea4dd4f7) ) |
| 2432 | ROM_LOAD("mpr-22974.ic8", 0x4000000, 0x0800000, CRC(20983c51) SHA1(f7321abf8bf5f2a7329c98174e5cf9b1ebf596b2) ) |
| 2433 | ROM_LOAD("mpr-22975.ic9", 0x4800000, 0x0800000, CRC(0d3c70d1) SHA1(22920bc5fd1dda760b5cb17482e9181be899bc08) ) |
| 2434 | ROM_LOAD("mpr-22976.ic10",0x5000000, 0x0800000, CRC(092d8063) SHA1(14fafd3f4c4f2b37172453d1c815fb9b8f4814f4) ) |
| 2442 | 2435 | ROM_END |
| 2443 | 2436 | |
| 2444 | 2437 | /* |
| r4499 | r4500 | |
| 2537 | 2530 | NAOMI_BIOS |
| 2538 | 2531 | |
| 2539 | 2532 | ROM_REGION( 0x8000000, "user1", 0) |
| 2540 | | ROM_LOAD("epr21929c.22", 0x0000000, 0x0400000, CRC(831af08a) SHA1(af4c74623be823fd061765cede354c6a9722fd10) ) |
| 2541 | | ROM_LOAD("mpr21914.u1", 0x0800000, 0x0800000, CRC(f91ef69b) SHA1(4ed23091efad7ddf1878a0bfcdcbba3cf151af84) ) |
| 2542 | | ROM_LOAD("mpr21915.u2", 0x1000000, 0x0800000, CRC(40128a67) SHA1(9d191c4ec33465f29bbc09491dde62f354a9ab15) ) |
| 2543 | | ROM_LOAD("mpr21916.u3", 0x1800000, 0x0800000, CRC(19708b3c) SHA1(7d1ef995ce870ffcb68f420a571efb084f5bfcf2) ) |
| 2544 | | ROM_LOAD("mpr21917.u4", 0x2000000, 0x0800000, CRC(b082379b) SHA1(42f585279da1de7e613e42b76e1b81986c48e6ea) ) |
| 2545 | | ROM_LOAD("mpr21918.u5", 0x2800000, 0x0800000, CRC(a3bc1a47) SHA1(0e5043ab6e118feb59f68c84c095cf5b1dba7d09) ) |
| 2546 | | ROM_LOAD("mpr21919.u6", 0x3000000, 0x0800000, CRC(b1dfada7) SHA1(b4c906bc96b615975f6319a1fdbd5b990e7e4124) ) |
| 2547 | | ROM_LOAD("mpr21920.u7", 0x3800000, 0x0800000, CRC(1c189e28) SHA1(93400de2cb803357fa17ae7e1a5297177f9bcfa1) ) |
| 2548 | | ROM_LOAD("mpr21921.u8", 0x4000000, 0x0800000, CRC(55bcb652) SHA1(4de2e7e584dd4999dc8e405837a18a904dfee0bf) ) |
| 2549 | | ROM_LOAD("mpr21922.u9", 0x4800000, 0x0800000, CRC(2ecda3ff) SHA1(54afc77a01470662d580f5676b4e8dc4d04f63f8) ) |
| 2550 | | ROM_LOAD("mpr21923.u10", 0x5000000, 0x0800000, CRC(a5cd42ad) SHA1(59f62e995d45311b1592434d1ffa42c261fa8ba1) ) |
| 2551 | | ROM_LOAD("mpr21924.u11", 0x5800000, 0x0800000, CRC(cc1a4ed9) SHA1(0e3aaeaa55f1d145fb4877b6d187a3ee78cf214e) ) |
| 2552 | | ROM_LOAD("mpr21925.u12", 0x6000000, 0x0800000, CRC(9452c5fb) SHA1(5a04f96d83cca6248f513de0c6240fc671bcadf9) ) |
| 2553 | | ROM_LOAD("mpr21926.u13", 0x6800000, 0x0800000, CRC(d6346491) SHA1(830971cbc14cab022a09ad4c6e11ee49c550e308) ) |
| 2554 | | ROM_LOAD("mpr21927.u14", 0x7000000, 0x0800000, CRC(a1901e1e) SHA1(2281f91ac696cc14886bcdf4b0685ce2f5bb8117) ) |
| 2555 | | ROM_LOAD("mpr21928.u15", 0x7800000, 0x0400000, CRC(d127d9a5) SHA1(78c95357344ea15469b84fa8b1332e76521892cd) ) |
| 2533 | ROM_LOAD("epr-21929.ic22", 0x0000000, 0x0400000, CRC(831af08a) SHA1(af4c74623be823fd061765cede354c6a9722fd10) ) |
| 2534 | ROM_LOAD("mpr-21924.ic1", 0x0800000, 0x0800000, CRC(f91ef69b) SHA1(4ed23091efad7ddf1878a0bfcdcbba3cf151af84) ) |
| 2535 | ROM_LOAD("mpr-21925.ic2", 0x1000000, 0x0800000, CRC(40128a67) SHA1(9d191c4ec33465f29bbc09491dde62f354a9ab15) ) |
| 2536 | ROM_LOAD("mpr-21911.ic3", 0x1800000, 0x0800000, CRC(19708b3c) SHA1(7d1ef995ce870ffcb68f420a571efb084f5bfcf2) ) |
| 2537 | ROM_LOAD("mpr-21926.ic4", 0x2000000, 0x0800000, CRC(b082379b) SHA1(42f585279da1de7e613e42b76e1b81986c48e6ea) ) |
| 2538 | ROM_LOAD("mpr-21913.ic5", 0x2800000, 0x0800000, CRC(a3bc1a47) SHA1(0e5043ab6e118feb59f68c84c095cf5b1dba7d09) ) |
| 2539 | ROM_LOAD("mpr-21914.ic6", 0x3000000, 0x0800000, CRC(b1dfada7) SHA1(b4c906bc96b615975f6319a1fdbd5b990e7e4124) ) |
| 2540 | ROM_LOAD("mpr-21915.ic7", 0x3800000, 0x0800000, CRC(1c189e28) SHA1(93400de2cb803357fa17ae7e1a5297177f9bcfa1) ) |
| 2541 | ROM_LOAD("mpr-21916.ic8", 0x4000000, 0x0800000, CRC(55bcb652) SHA1(4de2e7e584dd4999dc8e405837a18a904dfee0bf) ) |
| 2542 | ROM_LOAD("mpr-21917.ic9", 0x4800000, 0x0800000, CRC(2ecda3ff) SHA1(54afc77a01470662d580f5676b4e8dc4d04f63f8) ) |
| 2543 | ROM_LOAD("mpr-21918.ic10", 0x5000000, 0x0800000, CRC(a5cd42ad) SHA1(59f62e995d45311b1592434d1ffa42c261fa8ba1) ) |
| 2544 | ROM_LOAD("mpr-21919.ic11", 0x5800000, 0x0800000, CRC(cc1a4ed9) SHA1(0e3aaeaa55f1d145fb4877b6d187a3ee78cf214e) ) |
| 2545 | ROM_LOAD("mpr-21920.ic12s", 0x6000000, 0x0800000, CRC(9452c5fb) SHA1(5a04f96d83cca6248f513de0c6240fc671bcadf9) ) |
| 2546 | ROM_LOAD("mpr-21921.ic13s", 0x6800000, 0x0800000, CRC(d6346491) SHA1(830971cbc14cab022a09ad4c6e11ee49c550e308) ) |
| 2547 | ROM_LOAD("mpr-21922.ic14s", 0x7000000, 0x0800000, CRC(a1901e1e) SHA1(2281f91ac696cc14886bcdf4b0685ce2f5bb8117) ) |
| 2548 | ROM_LOAD("mpr-21923.ic15s", 0x7800000, 0x0400000, CRC(d127d9a5) SHA1(78c95357344ea15469b84fa8b1332e76521892cd) ) |
| 2556 | 2549 | ROM_END |
| 2557 | 2550 | |
| 2558 | 2551 | /* Sega Marine Fishing */ |
| r4499 | r4500 | |
| 2769 | 2762 | /* |
| 2770 | 2763 | |
| 2771 | 2764 | SYSTEMID: NAOMI |
| 2765 | JAP: THE TYPING OF THE DEAD |
| 2766 | USA: THE TYPING OF THE DEAD |
| 2767 | EXP: THE TYPING OF THE DEAD |
| 2768 | |
| 2769 | */ |
| 2770 | |
| 2771 | ROM_START( totd ) |
| 2772 | ROM_REGION( 0x200000, "maincpu", 0) |
| 2773 | NAOMI_BIOS |
| 2774 | |
| 2775 | ROM_REGION( 0xb000000, "user1", 0) |
| 2776 | ROM_LOAD("epr-23021a.ic22", 0x0000000, 0x0400000, CRC(07d21033) SHA1(d1e619d13c1c01648eb1a6964aad1554dd16c6d5) ) |
| 2777 | |
| 2778 | ROM_LOAD("mpr-23001.ic1", 0x0800000, 0x0800000, CRC(2eaab8ed) SHA1(e078bd8781e2a04e23fd18b11d118b2548fa59a8) ) |
| 2779 | ROM_LOAD("mpr-23002.ic2", 0x1000000, 0x0800000, CRC(617edcc7) SHA1(10f92cd9be94739c7c2f94cf9a5fa54accbe6227) ) |
| 2780 | ROM_LOAD("mpr-23003.ic3", 0x1800000, 0x0800000, CRC(37d6d9f8) SHA1(3ad3fa65f33d250eb8a620e7dc7c6b1209794a80) ) |
| 2781 | ROM_LOAD("mpr-23004.ic4", 0x2000000, 0x0800000, CRC(e41186f2) SHA1(2f4b26d8dba1629db539736cf88ec85c21820aeb) ) |
| 2782 | ROM_LOAD("mpr-23005.ic5", 0x2800000, 0x0800000, CRC(2b8e1fc6) SHA1(a5cd8c5840dd316dd1ad9500804b459476ca8ba0) ) |
| 2783 | ROM_LOAD("mpr-23006.ic6", 0x3000000, 0x0800000, CRC(3de23e27) SHA1(d3aae2a7e5c78fc3bf8e296392d8f893961d946f) ) //not populated |
| 2784 | ROM_LOAD("mpr-23007.ic7", 0x3800000, 0x0800000, CRC(ca16cfdf) SHA1(6279bc9bd661bde2d3e36ca52625f9b91867c4b4) ) |
| 2785 | ROM_LOAD("mpr-23008.ic8", 0x4000000, 0x0800000, CRC(8c33191c) SHA1(6227fbb3d51c4301dd1fc60ec43df7c18eef06fa) ) |
| 2786 | ROM_LOAD("mpr-23009.ic9", 0x4800000, 0x0800000, CRC(c982d24d) SHA1(d5a15d04f19f5569709b0b1cde64814230f4f0bb) ) |
| 2787 | ROM_LOAD("mpr-23010.ic10",0x5000000, 0x0800000, CRC(c6e129b4) SHA1(642a9e1052efcb43d2b809f13d10617b43bd38f3) ) |
| 2788 | ROM_LOAD("mpr-23011.ic11",0x5800000, 0x0800000, CRC(9e6942ff) SHA1(8c657d7d74c4c9106756a9934bc3c850f5069e29) ) |
| 2789 | ROM_LOAD("mpr-23012.ic12s",0x6000000, 0x0800000, CRC(20e1ebe8) SHA1(e24cb5f48101e665c90af9be333e54ec274004fb) ) |
| 2790 | ROM_LOAD("mpr-23013.ic13s",0x6800000, 0x0800000, CRC(3de23e27) SHA1(d3aae2a7e5c78fc3bf8e296392d8f893961d946f) ) //not populated |
| 2791 | ROM_LOAD("mpr-23014.ic14s",0x7000000, 0x0800000, CRC(c4f95fdb) SHA1(8c0e806e27d7bed274dcb20b932897ea8b8bbf86) ) |
| 2792 | ROM_LOAD("mpr-23015.ic15s",0x7800000, 0x0800000, CRC(5360c49d) SHA1(dbdf955d9bb9a387ded8ada18d26d222d73514d7) ) |
| 2793 | ROM_LOAD("mpr-23016.ic16s",0x8000000, 0x0800000, CRC(fae2958b) SHA1(2bfe164723b7b2f57ae0c6e2fe348459f00dc460) ) |
| 2794 | ROM_LOAD("mpr-23017.ic17s",0x8800000, 0x0800000, CRC(22337e15) SHA1(6a9f5569177c2936d8ff04da74e1fd036a093422) ) |
| 2795 | ROM_LOAD("mpr-23018.ic18s",0x9000000, 0x0800000, CRC(5a608e74) SHA1(4f2ec47dad71d77ad1b8c640db236332c06d7ab7) ) |
| 2796 | ROM_LOAD("mpr-23019.ic19s",0x9800000, 0x0800000, CRC(5cc91cc4) SHA1(66a68991f716ec23555784163aa5140b4e44c7ab) ) |
| 2797 | ROM_LOAD("mpr-23020.ic20s",0xa000000, 0x0800000, CRC(b5943007) SHA1(d0e95084aec5e05027c21a6b4a3331408853781b) ) |
| 2798 | //ic21 not populated |
| 2799 | ROM_END |
| 2800 | |
| 2801 | /* |
| 2802 | |
| 2803 | SYSTEMID: NAOMI |
| 2772 | 2804 | JAP: DYNAMITE BASEBALL NAOMI |
| 2773 | 2805 | USA: SAMPLE GAME IN USA-------- |
| 2774 | 2806 | EXP: SAMPLE GAME |
| r4499 | r4500 | |
| 2975 | 3007 | GAME( 2000, doa2m, doa2, naomi, naomi, 0, ROT0, "Tecmo", "Dead or Alive 2 Millennium (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2976 | 3008 | GAME( 1999, vtennis, naomi, naomi, naomi, 0, ROT0, "Sega", "Power Smash (JPN) / Virtua Tennis (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2977 | 3009 | GAME( 2000, slasho, naomi, naomi, naomi, 0, ROT0, "Sega", "Slashout (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3010 | GAME( 2000, totd, naomi, naomi, naomi, 0, ROT0, "Sega", "The Typing of the Dead (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3011 | GAME( 1999, otrigger, naomi, naomi, naomi, 0, ROT0, "Sega", "OutTrigger (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3012 | GAME( 1999, spawn, naomi, naomi, naomi, 0, ROT0, "Capcom", "Spawn (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3013 | GAME( 1999, samba, naomi, naomi, naomi, 0, ROT0, "Sega", "Samba De Amigo (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3014 | GAME( 1999, pstone, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3015 | GAME( 2000, pstone2, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone 2 (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3016 | GAME( 2001, hmgeo, naomi, naomi, naomi, 0, ROT0, "Capcom", "Heavy Metal Geomatrix (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3017 | GAME( 2000, cspike, naomi, naomi, naomi, 0, ROT0, "Psikyo / Capcom", "Gun Spike (JPN) / Cannon Spike (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2978 | 3018 | |
| 2979 | | |
| 2980 | 3019 | /* Incomplete Dumps (just the program rom IC22) */ |
| 2981 | | GAME( 2000, cspike, naomi, naomi, naomi, 0, ROT0, "Psikyo / Capcom", "Gun Spike (JPN) / Cannon Spike (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2982 | 3020 | GAME( 2000, capsnk, naomi, naomi, naomi, 0, ROT0, "Capcom / SNK", "Capcom Vs. SNK Millennium Fight 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2983 | 3021 | GAME( 1999, derbyoc, naomi, naomi, naomi, 0, ROT0, "Sega", "Derby Owners Club (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2984 | 3022 | GAME( 1998, dybb99, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball '99 (JPN) / World Series '99 (USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2985 | 3023 | GAME( 2000, gram2000, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram 2000 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2986 | 3024 | GAME( 1999, ggram2, naomi, naomi, naomi, 0, ROT0, "Sega", "Giant Gram (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) // strings in rom don't contain '2' |
| 2987 | | GAME( 2001, hmgeo, naomi, naomi, naomi, 0, ROT0, "Capcom", "Heavy Metal Geomatrix (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2988 | 3025 | GAME( 2000, gwing2, naomi, naomi, naomi, 0, ROT0, "Takumi / Capcom", "Giga Wing 2 (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2989 | 3026 | GAME( 2000, pjustic, naomi, naomi, naomi, 0, ROT0, "Capcom", "Moero Justice Gakuen (JPN) / Project Justice (USA, EXP, KOR, AUS) ", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2990 | | GAME( 1999, pstone, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2991 | | GAME( 2000, pstone2, naomi, naomi, naomi, 0, ROT0, "Capcom", "Power Stone 2 (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2992 | | GAME( 1999, otrigger, naomi, naomi, naomi, 0, ROT0, "Sega", "OutTrigger (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2993 | | GAME( 1999, samba, naomi, naomi, naomi, 0, ROT0, "Sega", "Samba De Amigo (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2994 | | GAME( 1999, spawn, naomi, naomi, naomi, 0, ROT0, "Capcom", "Spawn (JPN, USA, EUR, ASI, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2995 | 3027 | GAME( 2000, virnba, naomi, naomi, naomi, 0, ROT0, "Sega", "Virtua NBA (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2996 | 3028 | GAME( 1999, zombrvn, naomi, naomi, naomi, 0, ROT0, "Sega", "Zombie Revenge (JPN, USA, EXP, KOR, AUS)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2997 | 3029 | GAME( 1998, dybbnao, naomi, naomi, naomi, 0, ROT0, "Sega", "Dynamite Baseball NAOMI (JPN)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| r4499 | r4500 | |
| 3853 | 3885 | |
| 3854 | 3886 | |
| 3855 | 3887 | /* Naomi GD-Rom Sets */ |
| 3856 | | GAME( 2001, naomigd, 0, naomi, naomi, naomigd, ROT0, "Sega", "Naomi GD-ROM Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) |
| 3888 | GAME( 2001, naomigd, 0, naomi, naomi, naomigd, ROT0, "Sega", "Naomi GD-ROM Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) |
| 3857 | 3889 | |
| 3858 | | // GDL-xxxx (licensed games?) |
| 3890 | /* GDL-xxxx ("licensed by Sega" games) */ |
| 3859 | 3891 | GAME( 2001, gundmgd, naomigd, naomigd, naomi, naomigd, ROT0, "Capcom", "Mobile Suit Gundam: Federation VS Zeon (GDL-0001)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3860 | 3892 | GAME( 2001, sfz3ugd, naomigd, naomigd, naomi, naomigd, ROT0, "Capcom", "Street Fighter Zero 3 Upper (GDL-0002)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3861 | | GAME( 2001, cvsgd, naomigd, naomigd, naomi, naomigd, ROT0, "Capcom", "Capcom vs SNK Millenium Fight 2000 Pro (GDL-0004)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3893 | //GDL-0003 |
| 3894 | GAME( 2001, cvsgd, naomigd, naomigd, naomi, naomigd, ROT0, "Capcom / SNK", "Capcom vs SNK Millenium Fight 2000 Pro (GDL-0004)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3895 | //GDL-0005 Doki Doki Idol Star Seeker |
| 3862 | 3896 | GAME( 2001, gundmxgd, naomigd, naomigd, naomi, naomigd, ROT0, "Capcom", "Mobile Suit Gundam: Federation VS Zeon DX (GDL-0006)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3863 | | GAME( 2001, cvs2gd, naomigd, naomigd, naomi, naomigd, ROT0, "Capcom", "Capcom vs SNK 2 Millionaire Fighting 2001 (Rev A) (GDL-0007A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3897 | //GDL-0007 Capcom vs SNK 2 |
| 3898 | GAME( 2001, cvs2gd, naomigd, naomigd, naomi, naomigd, ROT0, "Capcom / SNK", "Capcom vs SNK 2 Millionaire Fighting 2001 (Rev A) (GDL-0007A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3899 | //GDL-0008 Capcom vs SNK 2 Mark Of The Millenium 2001 (Export) |
| 3900 | //GDL-0009 |
| 3864 | 3901 | GAME( 2001, ikaruga, naomigd, naomigd, naomi, naomigd, ROT270, "Treasure", "Ikaruga (GDL-0010)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3865 | 3902 | GAME( 2002, ggxx, naomigd, naomigd, naomi, ggxx, ROT0, "Arc System Works", "Guilty Gear XX (GDL-0011)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3903 | //GDL-0012 Cleopatra Fortune Plus |
| 3866 | 3904 | GAME( 2002, moeru, naomigd, naomigd, naomi, naomigd, ROT0, "Altron", "Moeru Casinyo (GDL-0013)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3905 | //GDL-0014 Musapey's Choco Marker |
| 3867 | 3906 | GAME( 2002, chocomk, naomigd, naomigd, naomi, naomigd, ROT0, "Ecole Software", "Musapey's Choco Marker (Rev A) (GDL-0014A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3868 | | GAME( 2002, quizqgd, naomigd, naomigd, naomi, naomigd, ROT270, "Amedio", "Quiz Keitai Q mode (GDL-0017)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3907 | //GDL-0015 Mazan |
| 3908 | //GDL-0016 Yonin Uchi Mahjong MJ |
| 3909 | GAME( 2002, quizqgd, naomigd, naomigd, naomi, naomigd, ROT270, "Amedio (Taito license)", "Quiz Keitai Q mode (GDL-0017)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3910 | //GDL-0018 Azumanga Daioh Puzzle Bobble |
| 3911 | //GDL-0019 Guilty Gear XX #Reload |
| 3869 | 3912 | GAME( 2003, ggxxrl, naomigd, naomigd, naomi, ggxxrl, ROT0, "Arc System Works", "Guilty Gear XX #Reload (Rev A) (GDL-0019A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3870 | 3913 | GAME( 200?, tetkiwam, naomigd, naomigd, naomi, naomigd, ROT0, "Success", "Tetris Kiwamemichi (GDL-0020)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3871 | 3914 | GAME( 2003, shikgam2, naomigd, naomigd, naomi, naomigd, ROT270, "Alpha System", "Shikigami No Shiro II / The Castle of Shikigami II (GDL-0021)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3872 | 3915 | GAME( 2003, usagui, naomigd, naomigd, naomi, naomigd, ROT0, "Warashi", "Usagui - Yamashiro Mahjong Hen (GDL-0022)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3916 | //GDL-0023 Border Down |
| 3873 | 3917 | GAME( 2004, bdrdown, naomigd, naomigd, naomi, naomigd, ROT0, "G-Rev", "Border Down (Rev A) (GDL-0023A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3874 | 3918 | GAME( 2003, psyvar2, naomigd, naomigd, naomi, naomigd, ROT270, "G-Rev", "Psyvariar 2 - The Will To Fabricate (GDL-0024)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3875 | 3919 | GAME( 2004, cfield, naomigd, naomigd, naomi, naomigd, ROT0, "Able", "Chaos Field (GDL-0025)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3876 | 3920 | GAME( 2004, trizeal, naomigd, naomigd, naomi, naomigd, ROT270, "Taito", "Trizeal (GDL-0026)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3877 | | GAME( 2005, meltybld, naomigd, naomigd, naomi, naomigd, ROT0, "Ecole Software", "Melty Blood Act Cadenza (Rev C) (GDL-0028C)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3921 | //GDL-0027 Melty Blood Act Cadenza? |
| 3922 | //GDL-0028 Melty Blood Act Cadenza Ver A |
| 3923 | //GDL-0028A Melty Blood Act Cadenza Ver A (Rev A) |
| 3924 | //GDL-0028B Melty Blood Act Cadenza Ver A (Rev B) |
| 3925 | GAME( 2005, meltybld, naomigd, naomigd, naomi, naomigd, ROT0, "Ecole Software", "Melty Blood Act Cadenza Ver A (Rev C) (GDL-0028C)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3926 | //GDL-0029 |
| 3878 | 3927 | GAME( 2005, senko, naomigd, naomigd, naomi, naomigd, ROT0, "G-Rev", "Senko No Ronde NEW ver. (Rev A) (GDL-0030A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3879 | 3928 | GAME( 2005, senkoo, senko, naomigd, naomi, naomigd, ROT0, "G-Rev", "Senko No Ronde (GDL-0030)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3929 | //GDL-0031 Super Shanghai 2005 |
| 3880 | 3930 | GAME( 2005, ss2005, naomigd, naomigd, naomi, naomigd, ROT0, "Starfish", "Super Shanghai 2005 (Rev A) (GDL-0031A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3881 | 3931 | GAME( 2005, radirgy, naomigd, naomigd, naomi, naomigd, ROT270, "Milestone", "Radirgy (GDL-0032)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3932 | //GDL-0033 Guilty Gear XX Slash |
| 3882 | 3933 | GAME( 2005, ggxxsla, naomigd, naomigd, naomi, ggxxsla, ROT0, "Arc System Works", "Guilty Gear XX Slash (Rev A) (GDL-0033A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3883 | 3934 | GAME( 2006, kurucham, naomigd, naomigd, naomi, naomigd, ROT0, "Able", "Kurukuru Chameleon (GDL-0034)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3884 | 3935 | GAME( 2005, undefeat, naomigd, naomigd, naomi, naomigd, ROT270, "G-Rev", "Under Defeat (GDL-0035)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3936 | //GDL-0036 Trigger Heart Exelica |
| 3885 | 3937 | GAME( 2005, trgheart, naomigd, naomigd, naomi, naomigd, ROT270, "Warashi", "Trigger Heart Exelica (Rev A) (GDL-0036A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3886 | 3938 | GAME( 2005, jingystm, naomigd, naomigd, naomi, naomigd, ROT0, "Atrativa Japan", "Jingi Storm - The Arcade (GDL-0037)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3939 | //GDL-0038 Senko No Ronde Special |
| 3887 | 3940 | GAME( 2006, meltyb, naomigd, naomigd, naomi, naomigd, ROT0, "Ecole Software", "Melty Blood Act Cadenza Ver B (GDL-0039)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3888 | 3941 | GAME( 2006, meltyba, meltyb, naomigd, naomi, naomigd, ROT0, "Ecole Software", "Melty Blood Act Cadenza Ver B (Rev A) (GDL-0039A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3889 | 3942 | GAME( 2006, karous, naomigd, naomigd, naomi, naomigd, ROT270, "Milestone", "Karous (GDL-0040)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3943 | //GDL-0041 Guilty Gear XX Accent Core |
| 3890 | 3944 | GAME( 2006, takoron, naomigd, naomigd, naomi, naomigd, ROT0, "Compile", "Noukone Puzzle Takoron (GDL-0042)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3891 | 3945 | |
| 3892 | 3946 | |
| 3893 | | |
| 3894 | | |
| 3895 | | |
| 3896 | | // GDS-xxxx (first party games?) |
| 3947 | /* GDS-xxxx (Sega first party games) */ |
| 3897 | 3948 | GAME( 2001, confmiss, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Confidential Mission (GDS-0001)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3949 | //GDS-0002 Shakatto Tambourine |
| 3898 | 3950 | GAME( 2000, sprtjam, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Sports Jam (GDS-0003)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3899 | 3951 | GAME( 2000, slashout, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Slashout (GDS-0004)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3900 | 3952 | GAME( 2001, spkrbtl, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Spikers Battle (GDS-0005)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3953 | //GDS-0006 Virtua Striker 3 (NAOMI 2) |
| 3954 | //GDS-0007 Shakatto Tambourine Motto Norinori Shinkyoku Tsuika |
| 3901 | 3955 | GAME( 2001, monkeyba, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Monkey Ball (GDS-0008)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3902 | 3956 | GAME( 2001, dygolf, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Virtua Golf / Dynamic Golf (GDS-0009)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3903 | 3957 | GAME( 2001, wsbbgd, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "World Series Baseball / Super Major League (GDS-0010)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3904 | 3958 | GAME( 2001, vtennisg, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Virtua Tennis (GDS-0011)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3905 | | GAME( 2002, vathlete, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Virtua Athletics / Virtua Athlete (GDS-0019)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3959 | //GDS-0012 Virtua Fighter 4 (NAOMI 2) |
| 3960 | //GDS-0013 |
| 3961 | //GDS-0014 Beach Spikers (NAOMI 2) |
| 3962 | //GDS-0015 Virtua Tennis 2 / Power Smash 2 |
| 3906 | 3963 | GAME( 2001, vtennis2, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Virtua Tennis 2 (Rev A) (GDS-0015A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3964 | //GDS-0016 Shakatto Tambourine Cho Powerup Chu |
| 3907 | 3965 | GAME( 2001, keyboard, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "La Keyboardxyu (GDS-0017)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3908 | 3966 | GAME( 2001, lupinsho, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Lupin The Third - The Shooting (GDS-0018)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3967 | GAME( 2002, vathlete, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Virtua Athletics / Virtua Athlete (GDS-0019)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3968 | //GDS-0020 Initial D Arcade Stage (Japan) (NAOMI 2) |
| 3969 | //GDS-0021 Lupin The Third - The Typing |
| 3909 | 3970 | GAME( 2002, luptype, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Lupin The Third - The Typing (Rev A) (GDS-0021A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3910 | 3971 | GAME( 2002, mok, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "The Maze of the Kings (GDS-0022)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3911 | | GAME( 2001, ngdup23a, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Naomi DIMM Firmware Updater (GDL-0023A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3912 | | GAME( 2001, ngdup23c, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Naomi DIMM Firmware Updater (GDL-0023C)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3972 | //GDS-0023 Naomi DIMM Firmware Updater |
| 3973 | GAME( 2001, ngdup23a, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Naomi DIMM Firmware Updater (GDS-0023A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3974 | //GDS-0023B Naomi DIMM Firmware Updater |
| 3975 | GAME( 2001, ngdup23c, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Naomi DIMM Firmware Updater (GDS-0023C)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3976 | //GDS-0024 Virtua Fighter 4 Evolution (NAOMI 2) |
| 3977 | //GDS-0025 Initial D Arcade Stage (Export) (NAOMI 2) |
| 3978 | //GDS-0026 Initial D Arcade Stage Ver. 2 (Japan) (NAOMI 2) |
| 3979 | //GDS-0027 Initial D Arcade Stage Ver. 2 (Export) (NAOMI 2) |
| 3980 | //GDS-0028 |
| 3981 | //GDS-0029 |
| 3982 | //GDS-0030 |
| 3913 | 3983 | GAME( 2003, puyofev, naomigd, naomigd, naomi, naomigd, ROT0, "Sega", "Puyo Puyo Fever (GDS-0031)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 3984 | //GDS-0032 Initial D Arcade Stage Ver. 3 (Japan) |
| 3985 | //GDS-0033 Initial D Arcade Stage Ver. 3 (Export) |
| 3986 | //GDS-0034 |
| 3987 | //GDS-0035 |
| 3988 | //GDS-0036 Virtua Fighter 4 Final Tuned |
| 3989 | //GDS-0037? Puyo Puyo Fever (Export) |
| 3914 | 3990 | |
| 3991 | |
| 3915 | 3992 | /* Naomi 2 & Naomi 2 GD-ROM */ |
| 3916 | 3993 | |
| 3917 | 3994 | ROM_START( vstrik3c ) |
src/mame/drivers/jalmah.c
| r4499 | r4500 | |
| 24 | 24 | -daireika: the ranking screen on the original pcb shows some hearts instead of the "0". |
| 25 | 25 | Some investigation indicates that the game reads area "fe100" onwards for these to be filled. |
| 26 | 26 | These are likely to be provided by one of the mcu snippets... |
| 27 | -kakumei/kakumei2:has weird text layer strings in test mode (like "#p control panel"), |
| 28 | unsure if this one is somehow related to the above daireika bug, it's a BTANB or something else. |
| 27 | 29 | -Check if urashima has a "mode 3" for the layer 0 tilemap; |
| 28 | 30 | -Complete the dip-switches for all the games; |
| 29 | 31 | -There could be timing issues caused by MCU simulation at $80004; |
| r4499 | r4500 | |
| 101 | 103 | Sound: M6295 |
| 102 | 104 | OSC: 12.000MHz |
| 103 | 105 | 4.000MHz |
| 106 | |
| 107 | |
| 108 | 2009-04: Verified DipLocations and Default settings with manual (thanks to Uki) |
| 109 | |
| 104 | 110 | *******************************************************************************************/ |
| 105 | 111 | |
| 106 | 112 | #include "driver.h" |
| r4499 | r4500 | |
| 607 | 613 | #define SUCHIPI_MCU (0x23) |
| 608 | 614 | |
| 609 | 615 | static int respcount; |
| 616 | static UINT8 test_mode; |
| 610 | 617 | |
| 611 | 618 | #define MCU_READ(tag, _bit_, _offset_, _retval_) \ |
| 612 | 619 | if((0xffff - input_port_read(machine, tag)) & _bit_) { jm_shared_ram[_offset_] = _retval_; } |
| r4499 | r4500 | |
| 656 | 663 | daireika_palette_dma(machine,((jm_shared_ram[0x540/2] & 0x0f00) >> 8)); |
| 657 | 664 | } |
| 658 | 665 | |
| 659 | | if((0xffff - input_port_read(machine, "SYSTEM")) & 0x0008) //service_mode |
| 666 | if(test_mode) //service_mode |
| 660 | 667 | { |
| 661 | 668 | jm_shared_ram[0x000/2] = input_port_read(machine, "KEY0"); |
| 662 | 669 | jm_shared_ram[0x002/2] = input_port_read(machine, "KEY1"); |
| r4499 | r4500 | |
| 699 | 706 | { |
| 700 | 707 | static UINT16 prg_prot; |
| 701 | 708 | |
| 702 | | if((0xffff - input_port_read(machine, "SYSTEM")) & 0x0008) //service_mode |
| 709 | if(test_mode) //service_mode |
| 703 | 710 | { |
| 704 | 711 | jm_shared_ram[0x000/2] = input_port_read(machine, "KEY0"); |
| 705 | 712 | jm_shared_ram[0x002/2] = input_port_read(machine, "KEY1"); |
| r4499 | r4500 | |
| 743 | 750 | { |
| 744 | 751 | static UINT16 prg_prot; |
| 745 | 752 | |
| 746 | | if((0xffff - input_port_read(machine, "SYSTEM")) & 0x0008) //service_mode |
| 753 | if(test_mode) //service_mode |
| 747 | 754 | { |
| 748 | 755 | jm_shared_ram[0x300/2] = input_port_read(machine, "KEY0"); |
| 749 | 756 | jm_shared_ram[0x302/2] = input_port_read(machine, "KEY1"); |
| r4499 | r4500 | |
| 785 | 792 | |
| 786 | 793 | static void second_mcu_run(running_machine *machine) |
| 787 | 794 | { |
| 788 | | if((0xffff - input_port_read(machine, "DSW")) & 0x0004) //service_mode |
| 795 | if(test_mode) //service_mode |
| 789 | 796 | { |
| 790 | 797 | jm_shared_ram[0x200/2] = input_port_read(machine, "KEY0"); |
| 791 | 798 | jm_shared_ram[0x202/2] = input_port_read(machine, "KEY1"); |
| r4499 | r4500 | |
| 938 | 945 | |
| 939 | 946 | static INPUT_PORTS_START( common ) |
| 940 | 947 | PORT_START("SYSTEM") |
| 941 | | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 942 | | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 943 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 944 | | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) |
| 945 | | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 946 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 947 | | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) |
| 948 | | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 949 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 950 | | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) |
| 951 | | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 952 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 953 | | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) |
| 954 | | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 955 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 948 | PORT_BIT( 0x001f, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 956 | 949 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 957 | 950 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 958 | 951 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 959 | | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) |
| 960 | | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 961 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 962 | | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) |
| 963 | | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 964 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 965 | | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) |
| 966 | | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 967 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 968 | | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) |
| 969 | | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) |
| 970 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 971 | | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) |
| 972 | | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 973 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 974 | | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) |
| 975 | | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) |
| 976 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 977 | | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) |
| 978 | | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 979 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 980 | | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) |
| 981 | | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 982 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 952 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 953 | INPUT_PORTS_END |
| 983 | 954 | |
| 984 | | PORT_START("DSW") |
| 985 | | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) // Coin2 is always 1C/1C. |
| 986 | | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 987 | | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| 988 | | PORT_DIPSETTING( 0x0003, DEF_STR( 2C_1C ) ) |
| 989 | | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| 990 | | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 991 | | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 992 | | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 993 | | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 994 | | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) |
| 995 | | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 996 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 997 | | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) |
| 998 | | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 999 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1000 | | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) |
| 1001 | | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 1002 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1003 | | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) |
| 1004 | | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 1005 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1006 | | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) |
| 1007 | | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1008 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1009 | | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) |
| 1010 | | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 1011 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1012 | | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) |
| 1013 | | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 1014 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1015 | | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) |
| 1016 | | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 1017 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1018 | | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) |
| 1019 | | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) |
| 1020 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1021 | | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) |
| 1022 | | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 1023 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1024 | | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) |
| 1025 | | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) |
| 1026 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1027 | | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) ) |
| 1028 | | PORT_DIPSETTING( 0x4000, DEF_STR( Off ) ) |
| 1029 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1030 | | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) |
| 1031 | | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1032 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1033 | | |
| 955 | static INPUT_PORTS_START( ctrl_mj1 ) |
| 1034 | 956 | PORT_START("KEY0") |
| 1035 | 957 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START1 ) |
| 1036 | 958 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) |
| r4499 | r4500 | |
| 1062 | 984 | PORT_BIT( 0xe1e1, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1063 | 985 | INPUT_PORTS_END |
| 1064 | 986 | |
| 1065 | | static INPUT_PORTS_START( jalmah ) |
| 1066 | | PORT_INCLUDE( common ) |
| 1067 | | |
| 1068 | | PORT_MODIFY("SYSTEM") |
| 1069 | | PORT_SERVICE( 0x0008, IP_ACTIVE_LOW ) |
| 1070 | | |
| 987 | static INPUT_PORTS_START( ctrl_mj2 ) |
| 1071 | 988 | PORT_START("KEY3") |
| 1072 | 989 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_START2 ) |
| 1073 | 990 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_MAHJONG_RON ) PORT_PLAYER(2) |
| r4499 | r4500 | |
| 1099 | 1016 | PORT_BIT( 0xe1e1, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 1100 | 1017 | INPUT_PORTS_END |
| 1101 | 1018 | |
| 1019 | static INPUT_PORTS_START( urashima ) |
| 1020 | PORT_INCLUDE( common ) |
| 1021 | PORT_INCLUDE( ctrl_mj1 ) |
| 1022 | PORT_INCLUDE( ctrl_mj2 ) |
| 1102 | 1023 | |
| 1103 | | static INPUT_PORTS_START( jalmah2 ) |
| 1024 | PORT_MODIFY("SYSTEM") |
| 1025 | PORT_SERVICE( 0x0008, IP_ACTIVE_LOW ) |
| 1026 | |
| 1027 | PORT_START("DSW") |
| 1028 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:8,7,6") |
| 1029 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 1030 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| 1031 | PORT_DIPSETTING( 0x0003, DEF_STR( 2C_1C ) ) |
| 1032 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| 1033 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 1034 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 1035 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 1036 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 1037 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,4") |
| 1038 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) |
| 1039 | PORT_DIPSETTING( 0x0010, DEF_STR( Hard ) ) |
| 1040 | PORT_DIPSETTING( 0x0008, DEF_STR( Harder ) ) |
| 1041 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1042 | PORT_DIPNAME( 0x0020, 0x0020, "Display Tenpai/Noten" ) PORT_DIPLOCATION("SW2:3") |
| 1043 | PORT_DIPSETTING( 0x0020, DEF_STR( No ) ) |
| 1044 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) |
| 1045 | PORT_DIPNAME( 0x0040, 0x0040, "Pinfu with Tsumo" ) PORT_DIPLOCATION("SW2:2") |
| 1046 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 1047 | PORT_DIPSETTING( 0x0040, DEF_STR( Yes ) ) |
| 1048 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") |
| 1049 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1050 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1051 | PORT_DIPNAME( 0x0300, 0x0300, "Number of Chips (Start - Continue)" ) PORT_DIPLOCATION("SW1:8,7") |
| 1052 | PORT_DIPSETTING( 0x0300, "1 - 1" ) |
| 1053 | PORT_DIPSETTING( 0x0200, "1 - 2" ) |
| 1054 | PORT_DIPSETTING( 0x0100, "2 - 1" ) |
| 1055 | PORT_DIPSETTING( 0x0000, "2 - 2" ) |
| 1056 | PORT_DIPNAME( 0x0c00, 0x0c00, "Number of Players" ) PORT_DIPLOCATION("SW1:6,5") |
| 1057 | PORT_DIPSETTING( 0x0800, "0" ) |
| 1058 | PORT_DIPSETTING( 0x0c00, "1" ) |
| 1059 | PORT_DIPSETTING( 0x0400, "2" ) |
| 1060 | PORT_DIPSETTING( 0x0000, "4" ) |
| 1061 | PORT_DIPNAME( 0x1000, 0x1000, "Chip Added After Win" ) PORT_DIPLOCATION("SW1:4") |
| 1062 | PORT_DIPSETTING( 0x1000, "Less" ) |
| 1063 | PORT_DIPSETTING( 0x0000, "More" ) |
| 1064 | PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW1:3" ) // Unused according to the manual |
| 1065 | PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW1:2" ) // Unused according to the manual |
| 1066 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Service_Mode ) ) PORT_DIPLOCATION("SW1:1") |
| 1067 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1068 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1069 | INPUT_PORTS_END |
| 1070 | |
| 1071 | static INPUT_PORTS_START( daireika ) |
| 1104 | 1072 | PORT_INCLUDE( common ) |
| 1073 | PORT_INCLUDE( ctrl_mj1 ) |
| 1074 | PORT_INCLUDE( ctrl_mj2 ) |
| 1105 | 1075 | |
| 1076 | PORT_MODIFY("SYSTEM") |
| 1077 | PORT_SERVICE( 0x0008, IP_ACTIVE_LOW ) |
| 1078 | |
| 1079 | PORT_START("DSW") |
| 1080 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:1,2,3") |
| 1081 | PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) ) |
| 1082 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) |
| 1083 | PORT_DIPSETTING( 0x0003, DEF_STR( 2C_1C ) ) |
| 1084 | PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) ) |
| 1085 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) ) |
| 1086 | PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) ) |
| 1087 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 1088 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 1089 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5") |
| 1090 | PORT_DIPSETTING( 0x0018, DEF_STR( Normal ) ) |
| 1091 | PORT_DIPSETTING( 0x0010, DEF_STR( Hard ) ) |
| 1092 | PORT_DIPSETTING( 0x0008, DEF_STR( Harder ) ) |
| 1093 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1094 | PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW2:6" ) // Unused according to the manual |
| 1095 | PORT_DIPNAME( 0x0040, 0x0040, "Pinfu with Tsumo" ) PORT_DIPLOCATION("SW2:7") |
| 1096 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 1097 | PORT_DIPSETTING( 0x0040, DEF_STR( Yes ) ) |
| 1098 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW2:8" ) // Unused according to the manual |
| 1099 | PORT_DIPNAME( 0x0300, 0x0300, "Number of Chips (Start - Continue)" ) PORT_DIPLOCATION("SW1:1,2") |
| 1100 | PORT_DIPSETTING( 0x0300, "1 - 1" ) |
| 1101 | PORT_DIPSETTING( 0x0200, "1 - 2" ) |
| 1102 | PORT_DIPSETTING( 0x0100, "2 - 1" ) |
| 1103 | PORT_DIPSETTING( 0x0000, "2 - 2" ) |
| 1104 | PORT_DIPUNKNOWN_DIPLOC( 0x0400, 0x0400, "SW1:3" ) // Unused according to the manual |
| 1105 | PORT_DIPUNKNOWN_DIPLOC( 0x0800, 0x0800, "SW1:4" ) // Unused according to the manual |
| 1106 | PORT_DIPUNKNOWN_DIPLOC( 0x1000, 0x1000, "SW1:5" ) // Unused according to the manual |
| 1107 | PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW1:6" ) // Unused according to the manual |
| 1108 | PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW1:7" ) // Unused according to the manual |
| 1109 | /* SW1:8 should be "Switch Control Panel" off: no - on : yes -> likely to be controlled by the MCU. */ |
| 1110 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:8") |
| 1111 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1112 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1113 | INPUT_PORTS_END |
| 1114 | |
| 1115 | static INPUT_PORTS_START( mjzoomin ) |
| 1116 | PORT_INCLUDE( daireika ) |
| 1117 | |
| 1106 | 1118 | PORT_MODIFY("DSW") |
| 1107 | | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) |
| 1119 | PORT_DIPNAME( 0x0038, 0x0038, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4,5,6") |
| 1120 | PORT_DIPSETTING( 0x0010, "0 (Easy)" ) |
| 1121 | PORT_DIPSETTING( 0x0008, "1 (Easier)" ) |
| 1122 | PORT_DIPSETTING( 0x0000, "2 (Easiest)" ) |
| 1123 | PORT_DIPSETTING( 0x0038, "3 (Normal)" ) |
| 1124 | PORT_DIPSETTING( 0x0030, "4 (Little Hard)" ) |
| 1125 | PORT_DIPSETTING( 0x0028, "5 (Hard)" ) |
| 1126 | PORT_DIPSETTING( 0x0020, "6 (Harder)" ) |
| 1127 | PORT_DIPSETTING( 0x0018, "7 (Hardest)" ) |
| 1128 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:8") |
| 1129 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1130 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1131 | PORT_DIPNAME( 0x0300, 0x0300, "Start Score Type" ) PORT_DIPLOCATION("SW1:1,2") |
| 1132 | PORT_DIPSETTING( 0x0300, "1" ) |
| 1133 | PORT_DIPSETTING( 0x0200, "2" ) |
| 1134 | PORT_DIPSETTING( 0x0100, "3" ) |
| 1135 | PORT_DIPSETTING( 0x0000, "4" ) |
| 1136 | PORT_DIPUNKNOWN_DIPLOC( 0x0400, 0x0400, "SW1:3" ) // Unused according to the manual |
| 1137 | PORT_DIPUNKNOWN_DIPLOC( 0x0800, 0x0800, "SW1:4" ) // Unused according to the manual |
| 1138 | PORT_DIPUNKNOWN_DIPLOC( 0x1000, 0x1000, "SW1:5" ) // Unused according to the manual |
| 1139 | PORT_DIPNAME( 0x2000, 0x2000, "Item Availability" ) PORT_DIPLOCATION("SW1:6") |
| 1140 | PORT_DIPSETTING( 0x2000, DEF_STR( Normal ) ) |
| 1141 | PORT_DIPSETTING( 0x0000, DEF_STR( High ) ) |
| 1142 | PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW1:7" ) // Unused according to the manual |
| 1143 | PORT_DIPUNKNOWN_DIPLOC( 0x8000, 0x8000, "SW1:8" ) // Unused according to the manual |
| 1144 | INPUT_PORTS_END |
| 1145 | |
| 1146 | static INPUT_PORTS_START( kakumei ) |
| 1147 | PORT_INCLUDE( common ) |
| 1148 | PORT_INCLUDE( ctrl_mj1 ) |
| 1149 | |
| 1150 | PORT_MODIFY("KEY1") |
| 1151 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) PORT_NAME("P1 Mahjong Flip Flop") PORT_CODE(KEYCODE_2) |
| 1152 | |
| 1153 | PORT_START("DSW") |
| 1154 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW2:1") |
| 1108 | 1155 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1109 | 1156 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1110 | | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) |
| 1111 | | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 1112 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1113 | | PORT_SERVICE( 0x0004, IP_ACTIVE_LOW ) |
| 1114 | | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) |
| 1115 | | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1116 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1117 | | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coinage ) ) |
| 1157 | PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" ) // Unused according to the manual |
| 1158 | PORT_SERVICE_DIPLOC( 0x0004, IP_ACTIVE_LOW, "SW2:3" ) |
| 1159 | PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW2:4" ) // Unused according to the manual |
| 1160 | PORT_DIPUNKNOWN_DIPLOC( 0x0010, 0x0010, "SW2:5" ) // Unused according to the manual |
| 1161 | PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW2:6" ) // Unused according to the manual |
| 1162 | PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW2:7" ) // Unused according to the manual |
| 1163 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW2:8" ) // Unused according to the manual |
| 1164 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| 1118 | 1165 | PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) ) |
| 1119 | 1166 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) ) |
| 1120 | 1167 | PORT_DIPSETTING( 0x0300, DEF_STR( 2C_1C ) ) |
| r4499 | r4500 | |
| 1122 | 1169 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_2C ) ) |
| 1123 | 1170 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) ) |
| 1124 | 1171 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) |
| 1125 | | PORT_DIPSETTING( 0x0000, "1 Coin / 99 Credits" ) |
| 1126 | | |
| 1127 | | PORT_MODIFY("KEY1") |
| 1128 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) PORT_NAME("P1 Mahjong Flip Flop?") PORT_CODE(KEYCODE_2) //? seems a button,affects continue countdown |
| 1172 | PORT_DIPSETTING( 0x0000, "1 Coin / 99 Credits" ) // Free Play according to the manual |
| 1173 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4,5") |
| 1174 | PORT_DIPSETTING( 0x1800, DEF_STR( Easy ) ) |
| 1175 | PORT_DIPSETTING( 0x1000, DEF_STR( Normal ) ) |
| 1176 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 1177 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1178 | PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW1:6" ) // Unused according to the manual |
| 1179 | PORT_DIPUNKNOWN_DIPLOC( 0x4000, 0x4000, "SW1:7" ) // Unused according to the manual |
| 1180 | PORT_DIPUNKNOWN_DIPLOC( 0x8000, 0x8000, "SW1:8" ) // Unused according to the manual |
| 1129 | 1181 | INPUT_PORTS_END |
| 1130 | 1182 | |
| 1131 | | |
| 1132 | | static INPUT_PORTS_START( jalmah2a ) |
| 1183 | static INPUT_PORTS_START( kakumei2 ) |
| 1133 | 1184 | PORT_INCLUDE( common ) |
| 1185 | PORT_INCLUDE( ctrl_mj1 ) |
| 1134 | 1186 | |
| 1135 | | PORT_MODIFY("DSW") |
| 1136 | | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 1137 | | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 1138 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1139 | | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unknown ) ) |
| 1140 | | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 1141 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1142 | | PORT_SERVICE( 0x0004, IP_ACTIVE_LOW ) |
| 1143 | | PORT_DIPNAME( 0x0010, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 1187 | PORT_MODIFY("KEY1") |
| 1188 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) PORT_NAME("P1 Mahjong Flip Flop") PORT_CODE(KEYCODE_2) |
| 1189 | |
| 1190 | PORT_START("DSW") |
| 1191 | PORT_DIPUNKNOWN_DIPLOC( 0x0001, 0x0001, "SW2:1" ) // Unused according to the manual |
| 1192 | PORT_DIPUNKNOWN_DIPLOC( 0x0002, 0x0002, "SW2:2" ) // Unused according to the manual |
| 1193 | PORT_SERVICE_DIPLOC( 0x0004, IP_ACTIVE_LOW, "SW2:3" ) |
| 1194 | PORT_DIPUNKNOWN_DIPLOC( 0x0008, 0x0008, "SW2:4" ) // Unused according to the manual |
| 1195 | PORT_DIPNAME( 0x0010, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:5") // Should default to OFF according to manual |
| 1144 | 1196 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 1145 | 1197 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1146 | | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) |
| 1147 | | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 1148 | | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1149 | | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coinage ) ) |
| 1198 | PORT_DIPUNKNOWN_DIPLOC( 0x0020, 0x0020, "SW2:6" ) // Unused according to the manual |
| 1199 | PORT_DIPUNKNOWN_DIPLOC( 0x0040, 0x0040, "SW2:7" ) // Unused according to the manual |
| 1200 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, 0x0080, "SW2:8" ) // Unused according to the manual |
| 1201 | PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2,3") |
| 1150 | 1202 | PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) ) |
| 1151 | 1203 | PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) ) |
| 1152 | 1204 | PORT_DIPSETTING( 0x0300, DEF_STR( 2C_1C ) ) |
| r4499 | r4500 | |
| 1154 | 1206 | PORT_DIPSETTING( 0x0600, DEF_STR( 1C_2C ) ) |
| 1155 | 1207 | PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) ) |
| 1156 | 1208 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) |
| 1157 | | PORT_DIPSETTING( 0x0000, "1 Coin / 99 Credits" ) |
| 1158 | | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Flip_Screen ) ) |
| 1209 | PORT_DIPSETTING( 0x0000, "1 Coin / 99 Credits" ) // Free Play according to the manual |
| 1210 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4,5") |
| 1211 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) |
| 1212 | PORT_DIPSETTING( 0x1800, DEF_STR( Normal ) ) |
| 1213 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 1214 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1215 | PORT_DIPUNKNOWN_DIPLOC( 0x2000, 0x2000, "SW1:6" ) // Unused according to the manual |
| 1216 | PORT_DIPNAME( 0x4000, 0x4000, "Pinfu with Tsumo" ) PORT_DIPLOCATION("SW1:7") |
| 1217 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 1218 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) |
| 1219 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8") |
| 1159 | 1220 | PORT_DIPSETTING( 0x8000, DEF_STR( Off ) ) |
| 1160 | 1221 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 1222 | INPUT_PORTS_END |
| 1161 | 1223 | |
| 1162 | | PORT_MODIFY("KEY1") |
| 1163 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_MAHJONG_FLIP_FLOP ) PORT_NAME("P1 Mahjong Flip Flop?") PORT_CODE(KEYCODE_2) //? seems a button,affects continue countdown |
| 1224 | static INPUT_PORTS_START( suchipi ) |
| 1225 | PORT_INCLUDE( kakumei2 ) |
| 1226 | |
| 1227 | PORT_MODIFY("DSW") |
| 1228 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4,5") |
| 1229 | PORT_DIPSETTING( 0x1800, DEF_STR( Easy ) ) |
| 1230 | PORT_DIPSETTING( 0x1000, DEF_STR( Normal ) ) |
| 1231 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 1232 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 1233 | PORT_DIPNAME( 0x2000, 0x2000, "Campaign Mode" ) PORT_DIPLOCATION("SW1:6") |
| 1234 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 1235 | PORT_DIPSETTING( 0x2000, DEF_STR( Yes ) ) |
| 1164 | 1236 | INPUT_PORTS_END |
| 1165 | 1237 | |
| 1166 | 1238 | static const gfx_layout charlayout = |
| r4499 | r4500 | |
| 1205 | 1277 | static MACHINE_RESET ( jalmah ) |
| 1206 | 1278 | { |
| 1207 | 1279 | respcount = 0; |
| 1280 | /*check if we are into service or normal mode*/ |
| 1281 | switch(mcu_prg) |
| 1282 | { |
| 1283 | case MJZOOMIN_MCU: |
| 1284 | case DAIREIKA_MCU: |
| 1285 | test_mode = (~(input_port_read(machine, "SYSTEM")) & 0x0008) ? (1) : (0); |
| 1286 | break; |
| 1287 | case URASHIMA_MCU: |
| 1288 | test_mode = ((~(input_port_read(machine, "SYSTEM")) & 0x0008) || (~(input_port_read(machine, "DSW")) & 0x8000)) ? (1) : (0); |
| 1289 | break; |
| 1290 | case KAKUMEI_MCU: |
| 1291 | case KAKUMEI2_MCU: |
| 1292 | case SUCHIPI_MCU: |
| 1293 | test_mode = (~(input_port_read(machine, "DSW")) & 0x0004) ? (1) : (0); |
| 1294 | break; |
| 1295 | } |
| 1208 | 1296 | } |
| 1209 | 1297 | |
| 1210 | 1298 | static MACHINE_DRIVER_START( jalmah ) |
| r4499 | r4500 | |
| 2256 | 2344 | } |
| 2257 | 2345 | |
| 2258 | 2346 | /*First version of the MCU*/ |
| 2259 | | GAME( 1989, urashima, 0, urashima, jalmah, urashima, ROT0, "UPL", "Otogizoushi Urashima Mahjong", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 2260 | | GAME( 1989, daireika, 0, jalmah, jalmah, daireika, ROT0, "Jaleco / NMK", "Mahjong Daireikai", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 2261 | | GAME( 1990, mjzoomin, 0, jalmah, jalmah, mjzoomin, ROT0, "Jaleco", "Mahjong Channel Zoom In", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 2347 | GAME( 1989, urashima, 0, urashima, urashima, urashima, ROT0, "UPL", "Otogizoushi Urashima Mahjong", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 2348 | GAME( 1989, daireika, 0, jalmah, daireika, daireika, ROT0, "Jaleco / NMK", "Mahjong Daireikai", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 2349 | GAME( 1990, mjzoomin, 0, jalmah, mjzoomin, mjzoomin, ROT0, "Jaleco", "Mahjong Channel Zoom In", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 2262 | 2350 | /*Second version of the MCU*/ |
| 2263 | | GAME( 1990, kakumei, 0, jalmah, jalmah2, kakumei, ROT0, "Jaleco", "Mahjong Kakumei", GAME_IMPERFECT_GRAPHICS ) |
| 2264 | | GAME( 1992, kakumei2, 0, jalmah, jalmah2a, kakumei2, ROT0, "Jaleco", "Mahjong Kakumei 2 - Princess League", GAME_IMPERFECT_GRAPHICS ) |
| 2265 | | GAME( 1993, suchipi, 0, jalmah, jalmah2a, suchipi, ROT0, "Jaleco", "Idol Janshi Suchie-Pai Special", GAME_IMPERFECT_GRAPHICS ) |
| 2351 | GAME( 1990, kakumei, 0, jalmah, kakumei, kakumei, ROT0, "Jaleco", "Mahjong Kakumei", GAME_IMPERFECT_GRAPHICS ) |
| 2352 | GAME( 1992, kakumei2, 0, jalmah, kakumei2, kakumei2, ROT0, "Jaleco", "Mahjong Kakumei 2 - Princess League", GAME_IMPERFECT_GRAPHICS ) |
| 2353 | GAME( 1993, suchipi, 0, jalmah, suchipi, suchipi, ROT0, "Jaleco", "Idol Janshi Suchie-Pai Special", GAME_IMPERFECT_GRAPHICS ) |
src/mame/drivers/taito_f2.c
| r4499 | r4500 | |
| 186 | 186 | Roz layer is one pixel out vertically when screen flipped. |
| 187 | 187 | |
| 188 | 188 | |
| 189 | | Cameltry (camltrya) |
| 189 | Cameltry (cameltrya) |
| 190 | 190 | -------- |
| 191 | 191 | |
| 192 | 192 | Alt version with YM2203 and M6295 |
| r4499 | r4500 | |
| 305 | 305 | #include "includes/cchip.h" |
| 306 | 306 | |
| 307 | 307 | |
| 308 | | static INT32 banknum = 0; |
| 309 | 308 | static INT32 mjnquest_input; |
| 310 | 309 | |
| 311 | 310 | |
| r4499 | r4500 | |
| 313 | 312 | GAME INPUTS |
| 314 | 313 | **********************************************************/ |
| 315 | 314 | |
| 316 | | static WRITE16_HANDLER( taitof2_watchdog_w ) |
| 317 | | { |
| 318 | | watchdog_reset(space->machine); |
| 319 | | } |
| 320 | | |
| 321 | 315 | static WRITE16_HANDLER( growl_coin_word_w ) /* what about coins 3&4 ?? */ |
| 322 | 316 | { |
| 323 | 317 | if (ACCESSING_BITS_0_7) |
| r4499 | r4500 | |
| 359 | 353 | } |
| 360 | 354 | } |
| 361 | 355 | |
| 362 | | static READ16_HANDLER( growl_dsw_r ) |
| 363 | | { |
| 364 | | switch (offset) |
| 365 | | { |
| 366 | | case 0x00: |
| 367 | | return input_port_read(space->machine, "DSWA"); |
| 368 | | |
| 369 | | case 0x01: |
| 370 | | return input_port_read(space->machine, "DSWB"); |
| 371 | | } |
| 372 | | |
| 373 | | logerror("CPU #0 PC %06x: warning - read unmapped dsw_r offset %06x\n", cpu_get_pc(space->cpu), offset); |
| 374 | | |
| 375 | | return 0xff; |
| 376 | | } |
| 377 | | |
| 378 | | static READ16_HANDLER( growl_input_r ) |
| 379 | | { |
| 380 | | switch (offset) |
| 381 | | { |
| 382 | | case 0x00: |
| 383 | | return input_port_read(space->machine, "IN0"); |
| 384 | | |
| 385 | | case 0x01: |
| 386 | | return input_port_read(space->machine, "IN1"); |
| 387 | | |
| 388 | | case 0x02: |
| 389 | | return input_port_read(space->machine, "IN2"); |
| 390 | | |
| 391 | | } |
| 392 | | |
| 393 | | logerror("CPU #0 PC %06x: warning - read unmapped input_r offset %06x\n", cpu_get_pc(space->cpu), offset); |
| 394 | | |
| 395 | | return 0xff; |
| 396 | | } |
| 397 | | |
| 398 | | static READ16_HANDLER( footchmp_input_r ) |
| 399 | | { |
| 400 | | switch (offset) |
| 401 | | { |
| 402 | | case 0x00: |
| 403 | | return input_port_read(space->machine, "DSWA"); |
| 404 | | |
| 405 | | case 0x01: |
| 406 | | return input_port_read(space->machine, "DSWB"); |
| 407 | | |
| 408 | | case 0x02: |
| 409 | | return input_port_read(space->machine, "IN2"); |
| 410 | | |
| 411 | | // case 0x03: |
| 412 | | // return (coin_word & mem_mask); |
| 413 | | |
| 414 | | case 0x05: |
| 415 | | return input_port_read(space->machine, "IN0"); |
| 416 | | |
| 417 | | case 0x06: |
| 418 | | return input_port_read(space->machine, "IN1"); |
| 419 | | |
| 420 | | case 0x07: |
| 421 | | return input_port_read(space->machine, "IN3"); |
| 422 | | |
| 423 | | case 0x08: |
| 424 | | return input_port_read(space->machine, "IN4"); |
| 425 | | } |
| 426 | | |
| 427 | | logerror("CPU #0 PC %06x: warning - read unmapped input offset %06x\n", cpu_get_pc(space->cpu), offset); |
| 428 | | |
| 429 | | return 0xff; |
| 430 | | } |
| 431 | | |
| 432 | 356 | static READ16_HANDLER( ninjak_input_r ) |
| 433 | 357 | { |
| 434 | 358 | switch (offset) |
| r4499 | r4500 | |
| 488 | 412 | return 0; |
| 489 | 413 | } |
| 490 | 414 | |
| 491 | | static READ16_HANDLER( driftout_paddle_r ) |
| 492 | | { |
| 493 | | switch (offset) |
| 494 | | { |
| 495 | | case 0x00: |
| 496 | | return input_port_read(space->machine, "PADDLE1"); |
| 497 | | |
| 498 | | case 0x01: |
| 499 | | return input_port_read(space->machine, "PADDLE2"); |
| 500 | | } |
| 501 | | |
| 502 | | logerror("CPU #0 PC %06x: warning - read unmapped paddle offset %06x\n", cpu_get_pc(space->cpu), offset); |
| 503 | | |
| 504 | | return 0xff; |
| 505 | | } |
| 506 | | |
| 507 | | static READ16_HANDLER( deadconx_input_r ) |
| 508 | | { |
| 509 | | switch (offset) |
| 510 | | { |
| 511 | | case 0x00: |
| 512 | | return input_port_read(space->machine, "DSWA"); |
| 513 | | |
| 514 | | case 0x01: |
| 515 | | return input_port_read(space->machine, "DSWB"); |
| 516 | | |
| 517 | | case 0x02: |
| 518 | | return input_port_read(space->machine, "IN2"); |
| 519 | | |
| 520 | | // case 0x03: |
| 521 | | // return (coin_word & mem_mask); |
| 522 | | |
| 523 | | case 0x05: |
| 524 | | return input_port_read(space->machine, "IN0"); |
| 525 | | |
| 526 | | case 0x06: |
| 527 | | return input_port_read(space->machine, "IN1"); |
| 528 | | } |
| 529 | | |
| 530 | | logerror("CPU #0 PC %06x: warning - read unmapped input offset %06x\n", cpu_get_pc(space->cpu), offset); |
| 531 | | |
| 532 | | return 0xff; |
| 533 | | } |
| 534 | | |
| 535 | 415 | static READ16_HANDLER( mjnquest_dsw_r ) |
| 536 | 416 | { |
| 537 | 417 | switch (offset) |
| r4499 | r4500 | |
| 583 | 463 | mjnquest_input = (data >> 6); |
| 584 | 464 | } |
| 585 | 465 | |
| 586 | | static READ16_HANDLER( quizhq_input1_r ) |
| 587 | | { |
| 588 | | switch (offset) |
| 589 | | { |
| 590 | | case 0x00: |
| 591 | | return input_port_read(space->machine, "DSWB"); |
| 592 | | |
| 593 | | case 0x01: |
| 594 | | return input_port_read(space->machine, "IN0"); |
| 595 | | } |
| 596 | | |
| 597 | | logerror("CPU #0 PC %06x: warning - read unmapped input_r offset %06x\n", cpu_get_pc(space->cpu), offset); |
| 598 | | |
| 599 | | return 0xff; |
| 600 | | } |
| 601 | | |
| 602 | | static READ16_HANDLER( quizhq_input2_r ) |
| 603 | | { |
| 604 | | switch (offset) |
| 605 | | { |
| 606 | | case 0x00: |
| 607 | | return input_port_read(space->machine, "DSWA"); |
| 608 | | |
| 609 | | case 0x01: |
| 610 | | return input_port_read(space->machine, "IN1"); |
| 611 | | |
| 612 | | case 0x02: |
| 613 | | return input_port_read(space->machine, "IN2"); |
| 614 | | } |
| 615 | | |
| 616 | | logerror("CPU #0 PC %06x: warning - read unmapped input_r offset %06x\n", cpu_get_pc(space->cpu), offset); |
| 617 | | |
| 618 | | return 0xff; |
| 619 | | } |
| 620 | | |
| 621 | | static READ16_HANDLER( yesnoj_input_r ) |
| 622 | | { |
| 623 | | switch (offset) |
| 624 | | { |
| 625 | | case 0x00: |
| 626 | | return input_port_read(space->machine, "IN0"); |
| 627 | | |
| 628 | | case 0x01: |
| 629 | | return input_port_read(space->machine, "IN1"); |
| 630 | | |
| 631 | | case 0x02: |
| 632 | | return input_port_read(space->machine, "IN2"); |
| 633 | | } |
| 634 | | #ifdef MAME_DEBUG |
| 635 | | logerror("CPU #0 PC %06x: warning - read unmapped input_r offset %06x\n", cpu_get_pc(space->cpu), offset); |
| 636 | | #endif |
| 637 | | |
| 638 | | return 0x0; |
| 639 | | } |
| 640 | | |
| 641 | | static READ16_HANDLER( yesnoj_dsw_r ) |
| 642 | | { |
| 643 | | return input_port_read(space->machine, "DSWA"); |
| 644 | | } |
| 645 | | |
| 646 | 466 | /****************************************************************** |
| 647 | 467 | INTERRUPTS (still a WIP) |
| 648 | 468 | |
| r4499 | r4500 | |
| 803 | 623 | SOUND |
| 804 | 624 | ****************************************************************/ |
| 805 | 625 | |
| 806 | | static void reset_sound_region(running_machine *machine) |
| 807 | | { |
| 808 | | memory_set_bankptr(machine, 2, memory_region(machine, "audiocpu") + (banknum * 0x4000) + 0x10000 ); |
| 809 | | } |
| 810 | | |
| 811 | 626 | static WRITE8_HANDLER( sound_bankswitch_w ) |
| 812 | 627 | { |
| 813 | | banknum = (data - 1) & 7; |
| 814 | | reset_sound_region(space->machine); |
| 628 | memory_set_bank(space->machine, 2, (data - 1) & 7); |
| 815 | 629 | |
| 816 | 630 | #ifdef MAME_DEBUG |
| 817 | | if (banknum>2) logerror("CPU #1 switch to ROM bank %06x: should only happen if Z80 prg rom is 128K!\n",banknum); |
| 631 | if (((data - 1) & 7)>2) logerror("CPU #1 switch to ROM bank %06x: should only happen if Z80 prg rom is 128K!\n",(data - 1) & 7); |
| 818 | 632 | #endif |
| 819 | 633 | } |
| 820 | 634 | |
| 821 | 635 | |
| 822 | | static READ16_HANDLER( taitof2_sound_r ) |
| 823 | | { |
| 824 | | if (offset == 1 && ACCESSING_BITS_0_7) |
| 825 | | return (taitosound_comm_r(space,0)); |
| 826 | | else return 0; |
| 827 | | } |
| 828 | 636 | |
| 829 | | static READ16_HANDLER( taitof2_msb_sound_r ) |
| 830 | | { |
| 831 | | if (offset == 1 && ACCESSING_BITS_8_15) |
| 832 | | return (taitosound_comm_r(space,0)); |
| 833 | | else return 0; |
| 834 | | } |
| 835 | | |
| 836 | | |
| 837 | 637 | static INT32 driveout_sound_latch = 0; |
| 838 | 638 | |
| 839 | 639 | |
| r4499 | r4500 | |
| 891 | 691 | MEMORY STRUCTURES |
| 892 | 692 | ***********************************************************/ |
| 893 | 693 | |
| 894 | | static ADDRESS_MAP_START( finalb_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 895 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 896 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 897 | | AM_RANGE(0x200000, 0x200007) AM_READ(TC0110PCR_word_r) /* palette */ |
| 898 | | AM_RANGE(0x300000, 0x30000f) AM_READ(TC0220IOC_halfword_r) /* I/O */ |
| 899 | | AM_RANGE(0x320000, 0x320003) AM_READ(taitof2_sound_r) |
| 900 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 901 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 902 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 903 | | ADDRESS_MAP_END |
| 904 | | |
| 905 | | static ADDRESS_MAP_START( finalb_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 906 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 907 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 908 | | AM_RANGE(0x200000, 0x200007) AM_WRITE(TC0110PCR_word_w) /* palette */ |
| 909 | | AM_RANGE(0x300000, 0x30000f) AM_WRITE(TC0220IOC_halfword_w) /* I/O */ |
| 694 | static ADDRESS_MAP_START( finalb_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 695 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 696 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 697 | AM_RANGE(0x200000, 0x200007) AM_READWRITE(TC0110PCR_word_r, TC0110PCR_word_w) /* palette */ |
| 698 | AM_RANGE(0x300000, 0x30000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) /* I/O */ |
| 910 | 699 | AM_RANGE(0x320000, 0x320001) AM_WRITE8(taitosound_port_w, 0x00ff) |
| 911 | | AM_RANGE(0x320002, 0x320003) AM_WRITE8(taitosound_comm_w, 0x00ff) |
| 912 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 700 | AM_RANGE(0x320002, 0x320003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff) |
| 701 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 913 | 702 | AM_RANGE(0x810000, 0x81ffff) AM_WRITENOP /* error in game init code ? */ |
| 914 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 915 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 703 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 704 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 916 | 705 | AM_RANGE(0xb00002, 0xb00003) AM_WRITENOP /* ?? */ |
| 917 | 706 | ADDRESS_MAP_END |
| 918 | 707 | |
| 919 | | static ADDRESS_MAP_START( dondokod_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 920 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 921 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 922 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 923 | | AM_RANGE(0x300000, 0x30000f) AM_READ(TC0220IOC_halfword_r) /* I/O */ |
| 924 | | AM_RANGE(0x320000, 0x320003) AM_READ(taitof2_msb_sound_r) |
| 925 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 926 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 927 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 928 | | AM_RANGE(0xa00000, 0xa01fff) AM_READ(TC0280GRD_word_r) |
| 929 | | ADDRESS_MAP_END |
| 930 | | |
| 931 | | static ADDRESS_MAP_START( dondokod_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 932 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 933 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 934 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 935 | | AM_RANGE(0x300000, 0x30000f) AM_WRITE(TC0220IOC_halfword_w) /* I/O */ |
| 708 | static ADDRESS_MAP_START( dondokod_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 709 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 710 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 711 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 712 | AM_RANGE(0x300000, 0x30000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) /* I/O */ |
| 936 | 713 | AM_RANGE(0x320000, 0x320001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 937 | | AM_RANGE(0x320002, 0x320003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 938 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 939 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 940 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 941 | | AM_RANGE(0xa00000, 0xa01fff) AM_WRITE(TC0280GRD_word_w) /* ROZ tilemap */ |
| 714 | AM_RANGE(0x320002, 0x320003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 715 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 716 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 717 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 718 | AM_RANGE(0xa00000, 0xa01fff) AM_READWRITE(TC0280GRD_word_r, TC0280GRD_word_w) /* ROZ tilemap */ |
| 942 | 719 | AM_RANGE(0xa02000, 0xa0200f) AM_WRITE(TC0280GRD_ctrl_word_w) |
| 943 | | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 720 | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 944 | 721 | ADDRESS_MAP_END |
| 945 | 722 | |
| 946 | | static ADDRESS_MAP_START( megab_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 947 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 948 | | AM_RANGE(0x100000, 0x100003) AM_READ(taitof2_msb_sound_r) |
| 949 | | AM_RANGE(0x120000, 0x12000f) AM_READ(TC0220IOC_halfword_r) /* I/O */ |
| 950 | | AM_RANGE(0x180000, 0x180fff) AM_READ(cchip2_word_r) |
| 951 | | AM_RANGE(0x200000, 0x20ffff) AM_READ(SMH_RAM) |
| 952 | | AM_RANGE(0x300000, 0x301fff) AM_READ(SMH_RAM) |
| 953 | | AM_RANGE(0x600000, 0x60ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 954 | | AM_RANGE(0x610000, 0x61ffff) AM_READ(SMH_RAM) /* unused? */ |
| 955 | | AM_RANGE(0x620000, 0x62000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 956 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(SMH_RAM) |
| 957 | | ADDRESS_MAP_END |
| 958 | | |
| 959 | | static ADDRESS_MAP_START( megab_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 960 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 723 | static ADDRESS_MAP_START( megab_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 724 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 961 | 725 | AM_RANGE(0x100000, 0x100001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 962 | | AM_RANGE(0x100002, 0x100003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 963 | | AM_RANGE(0x120000, 0x12000f) AM_WRITE(TC0220IOC_halfword_w) /* I/O */ |
| 964 | | AM_RANGE(0x180000, 0x180fff) AM_WRITE(cchip2_word_w) AM_BASE(&cchip2_ram) |
| 965 | | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(SMH_RAM) |
| 966 | | AM_RANGE(0x300000, 0x301fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 967 | | AM_RANGE(0x400000, 0x40001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 968 | | AM_RANGE(0x600000, 0x60ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 969 | | AM_RANGE(0x610000, 0x61ffff) AM_WRITE(SMH_RAM) /* unused? */ |
| 970 | | AM_RANGE(0x620000, 0x62000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 971 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 726 | AM_RANGE(0x100002, 0x100003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 727 | AM_RANGE(0x120000, 0x12000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) /* I/O */ |
| 728 | AM_RANGE(0x180000, 0x180fff) AM_READWRITE(cchip2_word_r, cchip2_word_w) AM_BASE(&cchip2_ram) |
| 729 | AM_RANGE(0x200000, 0x20ffff) AM_RAM |
| 730 | AM_RANGE(0x300000, 0x301fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 731 | AM_RANGE(0x400000, 0x40001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 732 | AM_RANGE(0x600000, 0x60ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 733 | AM_RANGE(0x610000, 0x61ffff) AM_RAM /* unused? */ |
| 734 | AM_RANGE(0x620000, 0x62000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 735 | AM_RANGE(0x800000, 0x80ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 972 | 736 | ADDRESS_MAP_END |
| 973 | 737 | |
| 974 | | static ADDRESS_MAP_START( thundfox_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 975 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 976 | | AM_RANGE(0x100000, 0x101fff) AM_READ(SMH_RAM) |
| 977 | | AM_RANGE(0x200000, 0x20000f) AM_READ(TC0220IOC_halfword_r) /* I/O */ |
| 978 | | AM_RANGE(0x220000, 0x220003) AM_READ(taitof2_msb_sound_r) |
| 979 | | AM_RANGE(0x300000, 0x30ffff) AM_READ(SMH_RAM) |
| 980 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 981 | | AM_RANGE(0x420000, 0x42000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 982 | | AM_RANGE(0x500000, 0x50ffff) AM_READ(TC0100SCN_word_1_r) /* tilemaps */ |
| 983 | | AM_RANGE(0x520000, 0x52000f) AM_READ(TC0100SCN_ctrl_word_1_r) |
| 984 | | AM_RANGE(0x600000, 0x60ffff) AM_READ(SMH_RAM) |
| 985 | | ADDRESS_MAP_END |
| 986 | | |
| 987 | | static ADDRESS_MAP_START( thundfox_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 988 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 989 | | AM_RANGE(0x100000, 0x101fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 990 | | AM_RANGE(0x200000, 0x20000f) AM_WRITE(TC0220IOC_halfword_w) /* I/O */ |
| 738 | static ADDRESS_MAP_START( thundfox_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 739 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 740 | AM_RANGE(0x100000, 0x101fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 741 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) /* I/O */ |
| 991 | 742 | AM_RANGE(0x220000, 0x220001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 992 | | AM_RANGE(0x220002, 0x220003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 993 | | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(SMH_RAM) |
| 994 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 995 | | AM_RANGE(0x420000, 0x42000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 996 | | AM_RANGE(0x500000, 0x50ffff) AM_WRITE(TC0100SCN_word_1_w) /* tilemaps */ |
| 997 | | AM_RANGE(0x520000, 0x52000f) AM_WRITE(TC0100SCN_ctrl_word_1_w) |
| 998 | | AM_RANGE(0x600000, 0x60ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 999 | | AM_RANGE(0x800000, 0x80001f) AM_WRITE(TC0360PRI_halfword_swap_w) |
| 743 | AM_RANGE(0x220002, 0x220003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 744 | AM_RANGE(0x300000, 0x30ffff) AM_RAM |
| 745 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 746 | AM_RANGE(0x420000, 0x42000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 747 | AM_RANGE(0x500000, 0x50ffff) AM_READWRITE(TC0100SCN_word_1_r, TC0100SCN_word_1_w) /* tilemaps */ |
| 748 | AM_RANGE(0x520000, 0x52000f) AM_READWRITE(TC0100SCN_ctrl_word_1_r, TC0100SCN_ctrl_word_1_w) |
| 749 | AM_RANGE(0x600000, 0x60ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 750 | AM_RANGE(0x800000, 0x80001f) AM_WRITE8(TC0360PRI_w, 0xff00) |
| 1000 | 751 | ADDRESS_MAP_END |
| 1001 | 752 | |
| 1002 | | static ADDRESS_MAP_START( cameltry_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1003 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 1004 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1005 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 1006 | | AM_RANGE(0x300000, 0x30000f) AM_READ(TC0220IOC_halfword_r) /* I/O */ |
| 753 | static ADDRESS_MAP_START( cameltry_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 754 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 755 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 756 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 757 | AM_RANGE(0x300000, 0x30000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) /* I/O */ |
| 1007 | 758 | AM_RANGE(0x300018, 0x30001f) AM_READ(cameltry_paddle_r) |
| 1008 | | AM_RANGE(0x320000, 0x320003) AM_READ(taitof2_msb_sound_r) |
| 1009 | | AM_RANGE(0x800000, 0x813fff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1010 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1011 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1012 | | AM_RANGE(0xa00000, 0xa01fff) AM_READ(TC0280GRD_word_r) |
| 1013 | | ADDRESS_MAP_END |
| 1014 | | |
| 1015 | | static ADDRESS_MAP_START( cameltry_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1016 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1017 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1018 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1019 | | AM_RANGE(0x300000, 0x30000f) AM_WRITE(TC0220IOC_halfword_w) /* I/O */ |
| 1020 | 759 | AM_RANGE(0x320000, 0x320001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1021 | | AM_RANGE(0x320002, 0x320003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1022 | | AM_RANGE(0x800000, 0x813fff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1023 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1024 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1025 | | AM_RANGE(0xa00000, 0xa01fff) AM_WRITE(TC0280GRD_word_w) /* ROZ tilemap */ |
| 760 | AM_RANGE(0x320002, 0x320003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 761 | AM_RANGE(0x800000, 0x813fff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 762 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 763 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 764 | AM_RANGE(0xa00000, 0xa01fff) AM_READWRITE(TC0280GRD_word_r, TC0280GRD_word_w) /* ROZ tilemap */ |
| 1026 | 765 | AM_RANGE(0xa02000, 0xa0200f) AM_WRITE(TC0280GRD_ctrl_word_w) |
| 1027 | | AM_RANGE(0xd00000, 0xd0001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 766 | AM_RANGE(0xd00000, 0xd0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1028 | 767 | ADDRESS_MAP_END |
| 1029 | 768 | |
| 1030 | | static ADDRESS_MAP_START( qtorimon_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1031 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1032 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1033 | | AM_RANGE(0x200000, 0x200007) AM_READ(TC0110PCR_word_r) /* palette */ |
| 1034 | | AM_RANGE(0x500000, 0x50000f) AM_READ(TC0220IOC_halfword_r) /* I/O */ |
| 1035 | | AM_RANGE(0x600000, 0x600003) AM_READ(taitof2_msb_sound_r) |
| 1036 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1037 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1038 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1039 | | ADDRESS_MAP_END |
| 1040 | | |
| 1041 | | static ADDRESS_MAP_START( qtorimon_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1042 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1043 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1044 | | AM_RANGE(0x200000, 0x200007) AM_WRITE(TC0110PCR_word_w) /* palette */ |
| 1045 | | AM_RANGE(0x500000, 0x50000f) AM_WRITE(TC0220IOC_halfword_w) /* I/O */ |
| 769 | static ADDRESS_MAP_START( qtorimon_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 770 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 771 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 772 | AM_RANGE(0x200000, 0x200007) AM_READWRITE(TC0110PCR_word_r, TC0110PCR_word_w) /* palette */ |
| 773 | AM_RANGE(0x500000, 0x50000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) /* I/O */ |
| 1046 | 774 | AM_RANGE(0x600000, 0x600001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1047 | | AM_RANGE(0x600002, 0x600003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1048 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1049 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1050 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 775 | AM_RANGE(0x600002, 0x600003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 776 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 777 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 778 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1051 | 779 | AM_RANGE(0x910000, 0x9120ff) AM_WRITENOP /* error in init code ? */ |
| 1052 | 780 | ADDRESS_MAP_END |
| 1053 | 781 | |
| 1054 | | static ADDRESS_MAP_START( liquidk_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1055 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1056 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1057 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 1058 | | AM_RANGE(0x300000, 0x30000f) AM_READ(TC0220IOC_halfword_r) /* I/O */ |
| 1059 | | AM_RANGE(0x320000, 0x320003) AM_READ(taitof2_sound_r) |
| 1060 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1061 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1062 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1063 | | ADDRESS_MAP_END |
| 1064 | | |
| 1065 | | static ADDRESS_MAP_START( liquidk_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1066 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1067 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1068 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1069 | | AM_RANGE(0x300000, 0x30000f) AM_WRITE(TC0220IOC_halfword_w) /* I/O */ |
| 782 | static ADDRESS_MAP_START( liquidk_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 783 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 784 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 785 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 786 | AM_RANGE(0x300000, 0x30000f) AM_READWRITE8(TC0220IOC_r, TC0220IOC_w, 0x00ff) /* I/O */ |
| 1070 | 787 | AM_RANGE(0x320000, 0x320001) AM_WRITE8(taitosound_port_w, 0x00ff) |
| 1071 | | AM_RANGE(0x320002, 0x320003) AM_WRITE8(taitosound_comm_w, 0x00ff) |
| 1072 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1073 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1074 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1075 | | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 788 | AM_RANGE(0x320002, 0x320003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff) |
| 789 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 790 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 791 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 792 | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1076 | 793 | ADDRESS_MAP_END |
| 1077 | 794 | |
| 1078 | | static ADDRESS_MAP_START( quizhq_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1079 | | AM_RANGE(0x000000, 0x0bffff) AM_READ(SMH_ROM) |
| 1080 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1081 | | AM_RANGE(0x200000, 0x200007) AM_READ(TC0110PCR_word_r) /* palette */ |
| 1082 | | AM_RANGE(0x500000, 0x50000f) AM_READ(quizhq_input1_r) |
| 1083 | | AM_RANGE(0x580000, 0x58000f) AM_READ(quizhq_input2_r) |
| 1084 | | AM_RANGE(0x600000, 0x600003) AM_READ(taitof2_sound_r) |
| 1085 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1086 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1087 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1088 | | ADDRESS_MAP_END |
| 1089 | | |
| 1090 | | static ADDRESS_MAP_START( quizhq_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1091 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1092 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1093 | | AM_RANGE(0x200000, 0x200007) AM_WRITE(TC0110PCR_word_w) /* palette */ |
| 795 | static ADDRESS_MAP_START( quizhq_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 796 | AM_RANGE(0x000000, 0x0bffff) AM_ROM |
| 797 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 798 | AM_RANGE(0x200000, 0x200007) AM_READWRITE(TC0110PCR_word_r, TC0110PCR_word_w) /* palette */ |
| 1094 | 799 | AM_RANGE(0x500004, 0x500005) AM_WRITE(growl_coin_word_w) |
| 1095 | | AM_RANGE(0x580000, 0x580001) AM_WRITE(taitof2_watchdog_w) /* ??? */ |
| 800 | AM_RANGE(0x500000, 0x500001) AM_READ_PORT("DSWB") |
| 801 | AM_RANGE(0x500002, 0x500003) AM_READ_PORT("IN0") |
| 802 | AM_RANGE(0x580000, 0x580001) AM_WRITE(watchdog_reset16_w) /* ??? */ |
| 1096 | 803 | AM_RANGE(0x580006, 0x580007) AM_WRITENOP /* ??? */ |
| 804 | AM_RANGE(0x580000, 0x580001) AM_READ_PORT("DSWA") |
| 805 | AM_RANGE(0x580002, 0x580003) AM_READ_PORT("IN1") |
| 806 | AM_RANGE(0x580004, 0x580005) AM_READ_PORT("IN2") |
| 1097 | 807 | AM_RANGE(0x600000, 0x600001) AM_WRITE8(taitosound_port_w, 0x00ff) |
| 1098 | | AM_RANGE(0x600002, 0x600003) AM_WRITE8(taitosound_comm_w, 0x00ff) |
| 808 | AM_RANGE(0x600002, 0x600003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff) |
| 1099 | 809 | AM_RANGE(0x680000, 0x680001) AM_WRITENOP /* ??? */ |
| 1100 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 810 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1101 | 811 | AM_RANGE(0x810000, 0x81ffff) AM_WRITENOP /* error in init code ? */ |
| 1102 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1103 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 812 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 813 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1104 | 814 | ADDRESS_MAP_END |
| 1105 | 815 | |
| 1106 | | static ADDRESS_MAP_START( ssi_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1107 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1108 | | AM_RANGE(0x100000, 0x10000f) AM_READ(TC0510NIO_halfword_r) |
| 1109 | | AM_RANGE(0x200000, 0x20ffff) AM_READ(SMH_RAM) |
| 1110 | | AM_RANGE(0x300000, 0x301fff) AM_READ(SMH_RAM) |
| 1111 | | AM_RANGE(0x400000, 0x400003) AM_READ(taitof2_msb_sound_r) |
| 1112 | | AM_RANGE(0x600000, 0x60ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1113 | | AM_RANGE(0x620000, 0x62000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1114 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(SMH_RAM) |
| 1115 | | ADDRESS_MAP_END |
| 1116 | | |
| 1117 | | static ADDRESS_MAP_START( ssi_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1118 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1119 | | AM_RANGE(0x100000, 0x10000f) AM_WRITE(TC0510NIO_halfword_w) |
| 1120 | | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(SMH_RAM) |
| 1121 | | AM_RANGE(0x300000, 0x301fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 816 | static ADDRESS_MAP_START( ssi_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 817 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 818 | AM_RANGE(0x100000, 0x10000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 819 | AM_RANGE(0x200000, 0x20ffff) AM_RAM |
| 820 | AM_RANGE(0x300000, 0x301fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1122 | 821 | AM_RANGE(0x400000, 0x400001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1123 | | AM_RANGE(0x400002, 0x400003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 822 | AM_RANGE(0x400002, 0x400003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1124 | 823 | // AM_RANGE(0x500000, 0x500001) AM_WRITENOP /* ?? */ |
| 1125 | | AM_RANGE(0x600000, 0x60ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps (not used) */ |
| 1126 | | AM_RANGE(0x620000, 0x62000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1127 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* sprite ram */ |
| 824 | AM_RANGE(0x600000, 0x60ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps (not used) */ |
| 825 | AM_RANGE(0x620000, 0x62000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 826 | AM_RANGE(0x800000, 0x80ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* sprite ram */ |
| 1128 | 827 | ADDRESS_MAP_END |
| 1129 | 828 | |
| 1130 | | static ADDRESS_MAP_START( gunfront_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1131 | | AM_RANGE(0x000000, 0x0bffff) AM_READ(SMH_ROM) |
| 1132 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1133 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 1134 | | AM_RANGE(0x300000, 0x30000f) AM_READ(TC0510NIO_halfword_wordswap_r) |
| 1135 | | AM_RANGE(0x320000, 0x320003) AM_READ(taitof2_msb_sound_r) |
| 1136 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1137 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1138 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1139 | | ADDRESS_MAP_END |
| 1140 | | |
| 1141 | | static ADDRESS_MAP_START( gunfront_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1142 | | AM_RANGE(0x000000, 0x0bffff) AM_WRITE(SMH_ROM) |
| 1143 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1144 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1145 | | AM_RANGE(0x300000, 0x30000f) AM_WRITE(TC0510NIO_halfword_wordswap_w) |
| 829 | static ADDRESS_MAP_START( gunfront_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 830 | AM_RANGE(0x000000, 0x0bffff) AM_ROM |
| 831 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 832 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 833 | AM_RANGE(0x300000, 0x30000f) AM_READWRITE(TC0510NIO_halfword_wordswap_r, TC0510NIO_halfword_wordswap_w) |
| 1146 | 834 | AM_RANGE(0x320000, 0x320001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1147 | | AM_RANGE(0x320002, 0x320003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1148 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1149 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1150 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 835 | AM_RANGE(0x320002, 0x320003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 836 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 837 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 838 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1151 | 839 | // AM_RANGE(0xa00000, 0xa00001) AM_WRITENOP /* ?? */ |
| 1152 | | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 840 | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1153 | 841 | ADDRESS_MAP_END |
| 1154 | 842 | |
| 1155 | | static ADDRESS_MAP_START( growl_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1156 | | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 1157 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1158 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 1159 | | AM_RANGE(0x300000, 0x30000f) AM_READ(growl_dsw_r) |
| 1160 | | AM_RANGE(0x320000, 0x32000f) AM_READ(growl_input_r) |
| 1161 | | AM_RANGE(0x400000, 0x400003) AM_READ(taitof2_msb_sound_r) |
| 1162 | | AM_RANGE(0x508000, 0x50800f) AM_READ_PORT("IN3") |
| 1163 | | AM_RANGE(0x50c000, 0x50c00f) AM_READ_PORT("IN4") |
| 1164 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1165 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1166 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1167 | | ADDRESS_MAP_END |
| 1168 | | |
| 1169 | | static ADDRESS_MAP_START( growl_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1170 | | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM) |
| 1171 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1172 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 843 | static ADDRESS_MAP_START( growl_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 844 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 845 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 846 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1173 | 847 | AM_RANGE(0x300004, 0x300005) AM_WRITE(growl_coin_word_w) |
| 1174 | | AM_RANGE(0x340000, 0x340001) AM_WRITE(taitof2_watchdog_w) |
| 848 | AM_RANGE(0x300000, 0x300001) AM_READ_PORT("DSWA") |
| 849 | AM_RANGE(0x300002, 0x300003) AM_READ_PORT("DSWB") |
| 850 | AM_RANGE(0x320000, 0x320001) AM_READ_PORT("IN0") |
| 851 | AM_RANGE(0x320002, 0x320003) AM_READ_PORT("IN1") |
| 852 | AM_RANGE(0x320004, 0x320005) AM_READ_PORT("IN2") |
| 853 | AM_RANGE(0x340000, 0x340001) AM_WRITE(watchdog_reset16_w) |
| 1175 | 854 | AM_RANGE(0x400000, 0x400001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1176 | | AM_RANGE(0x400002, 0x400003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 855 | AM_RANGE(0x400002, 0x400003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1177 | 856 | AM_RANGE(0x500000, 0x50000f) AM_WRITE(taitof2_spritebank_w) |
| 1178 | 857 | AM_RANGE(0x504000, 0x504001) AM_WRITENOP /* unknown... various values */ |
| 1179 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1180 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1181 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1182 | | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 858 | AM_RANGE(0x508000, 0x50800f) AM_READ_PORT("IN3") |
| 859 | AM_RANGE(0x50c000, 0x50c00f) AM_READ_PORT("IN4") |
| 860 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 861 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 862 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 863 | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1183 | 864 | ADDRESS_MAP_END |
| 1184 | 865 | |
| 1185 | | static ADDRESS_MAP_START( mjnquest_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1186 | | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 1187 | | AM_RANGE(0x110000, 0x11ffff) AM_READ(SMH_RAM) /* "sram" */ |
| 1188 | | AM_RANGE(0x120000, 0x12ffff) AM_READ(SMH_RAM) |
| 1189 | | AM_RANGE(0x200000, 0x200007) AM_READ(TC0110PCR_word_r) /* palette */ |
| 866 | static ADDRESS_MAP_START( mjnquest_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 867 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 868 | AM_RANGE(0x110000, 0x11ffff) AM_RAM /* "sram" */ |
| 869 | AM_RANGE(0x120000, 0x12ffff) AM_RAM |
| 870 | AM_RANGE(0x200000, 0x200007) AM_READWRITE(TC0110PCR_word_r, TC0110PCR_word_w) /* palette */ |
| 1190 | 871 | AM_RANGE(0x300000, 0x30000f) AM_READ(mjnquest_dsw_r) |
| 1191 | 872 | AM_RANGE(0x310000, 0x310001) AM_READ(mjnquest_input_r) |
| 1192 | | AM_RANGE(0x360000, 0x360003) AM_READ(taitof2_msb_sound_r) |
| 1193 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1194 | | AM_RANGE(0x420000, 0x42000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1195 | | AM_RANGE(0x500000, 0x50ffff) AM_READ(SMH_RAM) |
| 1196 | | ADDRESS_MAP_END |
| 1197 | | |
| 1198 | | static ADDRESS_MAP_START( mjnquest_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1199 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1200 | | AM_RANGE(0x110000, 0x11ffff) AM_WRITE(SMH_RAM) /* "sram" */ |
| 1201 | | AM_RANGE(0x120000, 0x12ffff) AM_WRITE(SMH_RAM) |
| 1202 | | AM_RANGE(0x200000, 0x200007) AM_WRITE(TC0110PCR_word_w) /* palette */ |
| 1203 | 873 | AM_RANGE(0x320000, 0x320001) AM_WRITE(mjnquest_inputselect_w) |
| 1204 | 874 | AM_RANGE(0x330000, 0x330001) AM_WRITENOP /* watchdog ? */ |
| 1205 | 875 | AM_RANGE(0x350000, 0x350001) AM_WRITENOP /* watchdog ? */ |
| 1206 | 876 | AM_RANGE(0x360000, 0x360001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1207 | | AM_RANGE(0x360002, 0x360003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 877 | AM_RANGE(0x360002, 0x360003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1208 | 878 | AM_RANGE(0x380000, 0x380001) AM_WRITE(TC0100SCN_gfxbank_w) /* scr gfx bank select */ |
| 1209 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1210 | | AM_RANGE(0x420000, 0x42000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1211 | | AM_RANGE(0x500000, 0x50ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 879 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 880 | AM_RANGE(0x420000, 0x42000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 881 | AM_RANGE(0x500000, 0x50ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1212 | 882 | ADDRESS_MAP_END |
| 1213 | 883 | |
| 1214 | | static ADDRESS_MAP_START( footchmp_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1215 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1216 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1217 | | AM_RANGE(0x200000, 0x20ffff) AM_READ(SMH_RAM) |
| 1218 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(TC0480SCP_word_r) /* tilemaps */ |
| 1219 | | AM_RANGE(0x430000, 0x43002f) AM_READ(TC0480SCP_ctrl_word_r) |
| 1220 | | AM_RANGE(0x600000, 0x601fff) AM_READ(SMH_RAM) |
| 1221 | | AM_RANGE(0x700000, 0x70001f) AM_READ(footchmp_input_r) |
| 1222 | | AM_RANGE(0xa00000, 0xa00003) AM_READ(taitof2_sound_r) |
| 1223 | | ADDRESS_MAP_END |
| 1224 | | |
| 1225 | | static ADDRESS_MAP_START( footchmp_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1226 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1227 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1228 | | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 884 | static ADDRESS_MAP_START( footchmp_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 885 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 886 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 887 | AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1229 | 888 | AM_RANGE(0x300000, 0x30000f) AM_WRITE(taitof2_spritebank_w) /* updated at $a6e, off irq5 */ |
| 1230 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(TC0480SCP_word_w) /* tilemaps */ |
| 1231 | | AM_RANGE(0x430000, 0x43002f) AM_WRITE(TC0480SCP_ctrl_word_w) |
| 1232 | | AM_RANGE(0x500000, 0x50001f) AM_WRITE(TC0360PRI_halfword_w) /* 500002 written like a watchdog?! */ |
| 1233 | | AM_RANGE(0x600000, 0x601fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 889 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(TC0480SCP_word_r, TC0480SCP_word_w) /* tilemaps */ |
| 890 | AM_RANGE(0x430000, 0x43002f) AM_READWRITE(TC0480SCP_ctrl_word_r, TC0480SCP_ctrl_word_w) |
| 891 | AM_RANGE(0x500000, 0x50001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* 500002 written like a watchdog?! */ |
| 892 | AM_RANGE(0x600000, 0x601fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1234 | 893 | AM_RANGE(0x700006, 0x700007) AM_WRITE(taitof2_4p_coin_word_w) |
| 1235 | | AM_RANGE(0x800000, 0x800001) AM_WRITE(taitof2_watchdog_w) /* ??? */ |
| 894 | AM_RANGE(0x700000, 0x700001) AM_READ_PORT("DSWA") |
| 895 | AM_RANGE(0x700002, 0x700003) AM_READ_PORT("DSWB") |
| 896 | AM_RANGE(0x700004, 0x700005) AM_READ_PORT("IN2") |
| 897 | AM_RANGE(0x70000a, 0x70000b) AM_READ_PORT("IN0") |
| 898 | AM_RANGE(0x70000c, 0x70000d) AM_READ_PORT("IN1") |
| 899 | AM_RANGE(0x70000e, 0x70000f) AM_READ_PORT("IN3") |
| 900 | AM_RANGE(0x700010, 0x700011) AM_READ_PORT("IN4") |
| 901 | AM_RANGE(0x800000, 0x800001) AM_WRITE(watchdog_reset16_w) /* ??? */ |
| 1236 | 902 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE8(taitosound_port_w, 0x00ff) |
| 1237 | | AM_RANGE(0xa00002, 0xa00003) AM_WRITE8(taitosound_comm_w, 0x00ff) |
| 903 | AM_RANGE(0xa00002, 0xa00003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff) |
| 1238 | 904 | ADDRESS_MAP_END |
| 1239 | 905 | |
| 1240 | | static ADDRESS_MAP_START( koshien_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1241 | | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 1242 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1243 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 1244 | | AM_RANGE(0x300000, 0x30000f) AM_READ(TC0510NIO_halfword_r) |
| 1245 | | AM_RANGE(0x320000, 0x320003) AM_READ(taitof2_msb_sound_r) |
| 1246 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1247 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1248 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1249 | | // AM_RANGE(0xa20000, 0xa20001) AM_READ(koshien_spritebank_r) /* for debugging spritebank */ |
| 1250 | | ADDRESS_MAP_END |
| 1251 | | |
| 1252 | | static ADDRESS_MAP_START( koshien_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1253 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1254 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1255 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1256 | | AM_RANGE(0x300000, 0x30000f) AM_WRITE(TC0510NIO_halfword_w) |
| 906 | static ADDRESS_MAP_START( koshien_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 907 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 908 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 909 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 910 | AM_RANGE(0x300000, 0x30000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1257 | 911 | AM_RANGE(0x320000, 0x320001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1258 | | AM_RANGE(0x320002, 0x320003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1259 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1260 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1261 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 912 | AM_RANGE(0x320002, 0x320003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 913 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 914 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 915 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1262 | 916 | AM_RANGE(0xa20000, 0xa20001) AM_WRITE(koshien_spritebank_w) |
| 1263 | | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE(TC0360PRI_halfword_swap_w) |
| 917 | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE8(TC0360PRI_w, 0xff00) |
| 1264 | 918 | ADDRESS_MAP_END |
| 1265 | 919 | |
| 1266 | | static ADDRESS_MAP_START( yuyugogo_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1267 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) |
| 1268 | | AM_RANGE(0x200000, 0x20000f) AM_READ(TC0510NIO_halfword_r) |
| 1269 | | AM_RANGE(0x400000, 0x400003) AM_READ(taitof2_msb_sound_r) |
| 1270 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1271 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1272 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1273 | | AM_RANGE(0xa00000, 0xa01fff) AM_READ(SMH_RAM) |
| 1274 | | AM_RANGE(0xb00000, 0xb10fff) AM_READ(SMH_RAM) |
| 1275 | | AM_RANGE(0xd00000, 0xdfffff) AM_READ(SMH_BANK1) /* extra data rom */ |
| 1276 | | ADDRESS_MAP_END |
| 1277 | | |
| 1278 | | static ADDRESS_MAP_START( yuyugogo_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1279 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1280 | | AM_RANGE(0x200000, 0x20000f) AM_WRITE(TC0510NIO_halfword_w) |
| 920 | static ADDRESS_MAP_START( yuyugogo_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 921 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 922 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1281 | 923 | AM_RANGE(0x400000, 0x400001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1282 | | AM_RANGE(0x400002, 0x400003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1283 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1284 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1285 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1286 | | AM_RANGE(0xa00000, 0xa01fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1287 | | AM_RANGE(0xb00000, 0xb10fff) AM_WRITE(SMH_RAM) /* deliberate writes to $b10xxx, I think */ |
| 924 | AM_RANGE(0x400002, 0x400003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 925 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 926 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 927 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 928 | AM_RANGE(0xa00000, 0xa01fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 929 | AM_RANGE(0xb00000, 0xb10fff) AM_RAM /* deliberate writes to $b10xxx, I think */ |
| 1288 | 930 | AM_RANGE(0xc00000, 0xc01fff) AM_WRITE(taitof2_sprite_extension_w) AM_BASE(&f2_sprite_extension) AM_SIZE(&f2_spriteext_size) |
| 1289 | | AM_RANGE(0xd00000, 0xdfffff) AM_WRITE(SMH_ROM) |
| 931 | AM_RANGE(0xd00000, 0xdfffff) AM_ROM AM_REGION("extra", 0) |
| 1290 | 932 | ADDRESS_MAP_END |
| 1291 | 933 | |
| 1292 | | static ADDRESS_MAP_START( ninjak_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1293 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1294 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1295 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 934 | static ADDRESS_MAP_START( ninjak_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 935 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 936 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 937 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1296 | 938 | AM_RANGE(0x300000, 0x30000f) AM_READ(ninjak_input_r) |
| 1297 | | AM_RANGE(0x400000, 0x400003) AM_READ(taitof2_msb_sound_r) |
| 1298 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1299 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1300 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1301 | | ADDRESS_MAP_END |
| 1302 | | |
| 1303 | | static ADDRESS_MAP_START( ninjak_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1304 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1305 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1306 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1307 | 939 | AM_RANGE(0x30000e, 0x30000f) AM_WRITE(ninjak_coin_word_w) |
| 1308 | | AM_RANGE(0x380000, 0x380001) AM_WRITE(taitof2_watchdog_w) /* ??? */ |
| 940 | AM_RANGE(0x380000, 0x380001) AM_WRITE(watchdog_reset16_w) /* ??? */ |
| 1309 | 941 | AM_RANGE(0x400000, 0x400001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1310 | | AM_RANGE(0x400002, 0x400003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 942 | AM_RANGE(0x400002, 0x400003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1311 | 943 | AM_RANGE(0x600000, 0x60000f) AM_WRITE(taitof2_spritebank_w) |
| 1312 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1313 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1314 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1315 | | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE(TC0360PRI_halfword_w) /* b00002 written like a watchdog?! */ |
| 944 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 945 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 946 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 947 | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* b00002 written like a watchdog?! */ |
| 1316 | 948 | ADDRESS_MAP_END |
| 1317 | 949 | |
| 1318 | | static ADDRESS_MAP_START( solfigtr_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1319 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1320 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1321 | | AM_RANGE(0x200000, 0x201fff) AM_READ(SMH_RAM) |
| 1322 | | AM_RANGE(0x300000, 0x30000f) AM_READ(growl_dsw_r) |
| 1323 | | AM_RANGE(0x320000, 0x32000f) AM_READ(growl_input_r) |
| 1324 | | AM_RANGE(0x400000, 0x400003) AM_READ(taitof2_msb_sound_r) |
| 1325 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1326 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1327 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1328 | | ADDRESS_MAP_END |
| 1329 | | |
| 1330 | | static ADDRESS_MAP_START( solfigtr_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1331 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1332 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1333 | | AM_RANGE(0x200000, 0x201fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 950 | static ADDRESS_MAP_START( solfigtr_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 951 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 952 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 953 | AM_RANGE(0x200000, 0x201fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1334 | 954 | AM_RANGE(0x300004, 0x300005) AM_WRITE(growl_coin_word_w) /* NOT VERIFIED */ |
| 1335 | | AM_RANGE(0x340000, 0x340001) AM_WRITE(taitof2_watchdog_w) /* NOT VERIFIED */ |
| 955 | AM_RANGE(0x300000, 0x300001) AM_READ_PORT("DSWA") |
| 956 | AM_RANGE(0x300002, 0x300003) AM_READ_PORT("DSWB") |
| 957 | AM_RANGE(0x320000, 0x320001) AM_READ_PORT("IN0") |
| 958 | AM_RANGE(0x320002, 0x320003) AM_READ_PORT("IN1") |
| 959 | AM_RANGE(0x320004, 0x320005) AM_READ_PORT("IN2") |
| 960 | AM_RANGE(0x340000, 0x340001) AM_WRITE(watchdog_reset16_w) /* NOT VERIFIED */ |
| 1336 | 961 | AM_RANGE(0x400000, 0x400001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1337 | | AM_RANGE(0x400002, 0x400003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 962 | AM_RANGE(0x400002, 0x400003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1338 | 963 | AM_RANGE(0x500000, 0x50000f) AM_WRITE(taitof2_spritebank_w) |
| 1339 | 964 | AM_RANGE(0x504000, 0x504001) AM_WRITENOP /* unknown... various values */ |
| 1340 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1341 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1342 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1343 | | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 965 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 966 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 967 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 968 | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1344 | 969 | ADDRESS_MAP_END |
| 1345 | 970 | |
| 1346 | | static ADDRESS_MAP_START( qzquest_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1347 | | AM_RANGE(0x000000, 0x17ffff) AM_READ(SMH_ROM) |
| 1348 | | AM_RANGE(0x200000, 0x20000f) AM_READ(TC0510NIO_halfword_r) |
| 1349 | | AM_RANGE(0x300000, 0x300003) AM_READ(taitof2_sound_r) |
| 1350 | | AM_RANGE(0x400000, 0x401fff) AM_READ(SMH_RAM) |
| 1351 | | AM_RANGE(0x500000, 0x50ffff) AM_READ(SMH_RAM) |
| 1352 | | AM_RANGE(0x600000, 0x60ffff) AM_READ(SMH_RAM) |
| 1353 | | AM_RANGE(0x700000, 0x70ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1354 | | AM_RANGE(0x720000, 0x72000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1355 | | ADDRESS_MAP_END |
| 1356 | | |
| 1357 | | static ADDRESS_MAP_START( qzquest_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1358 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1359 | | AM_RANGE(0x200000, 0x20000f) AM_WRITE(TC0510NIO_halfword_w) |
| 971 | static ADDRESS_MAP_START( qzquest_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 972 | AM_RANGE(0x000000, 0x17ffff) AM_ROM |
| 973 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1360 | 974 | AM_RANGE(0x300000, 0x300001) AM_WRITE8(taitosound_port_w, 0x00ff) |
| 1361 | | AM_RANGE(0x300002, 0x300003) AM_WRITE8(taitosound_comm_w, 0x00ff) |
| 1362 | | AM_RANGE(0x400000, 0x401fff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 1363 | | AM_RANGE(0x500000, 0x50ffff) AM_WRITE(SMH_RAM) |
| 1364 | | AM_RANGE(0x600000, 0x60ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1365 | | AM_RANGE(0x700000, 0x70ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1366 | | AM_RANGE(0x720000, 0x72000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 975 | AM_RANGE(0x300002, 0x300003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff) |
| 976 | AM_RANGE(0x400000, 0x401fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 977 | AM_RANGE(0x500000, 0x50ffff) AM_RAM |
| 978 | AM_RANGE(0x600000, 0x60ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 979 | AM_RANGE(0x700000, 0x70ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 980 | AM_RANGE(0x720000, 0x72000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1367 | 981 | ADDRESS_MAP_END |
| 1368 | 982 | |
| 1369 | | static ADDRESS_MAP_START( pulirula_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1370 | | AM_RANGE(0x000000, 0x0bffff) AM_READ(SMH_ROM) |
| 1371 | | AM_RANGE(0x200000, 0x200003) AM_READ(taitof2_msb_sound_r) |
| 1372 | | AM_RANGE(0x300000, 0x30ffff) AM_READ(SMH_RAM) |
| 1373 | | AM_RANGE(0x400000, 0x401fff) AM_READ(TC0430GRW_word_r) |
| 1374 | | AM_RANGE(0x700000, 0x701fff) AM_READ(SMH_RAM) |
| 1375 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1376 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1377 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1378 | | AM_RANGE(0xb00000, 0xb0000f) AM_READ(TC0510NIO_halfword_r) |
| 1379 | | ADDRESS_MAP_END |
| 1380 | | |
| 1381 | | static ADDRESS_MAP_START( pulirula_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1382 | | AM_RANGE(0x000000, 0x0bffff) AM_WRITE(SMH_ROM) |
| 983 | static ADDRESS_MAP_START( pulirula_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 984 | AM_RANGE(0x000000, 0x0bffff) AM_ROM |
| 1383 | 985 | AM_RANGE(0x200000, 0x200001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1384 | | AM_RANGE(0x200002, 0x200003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1385 | | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(SMH_RAM) |
| 1386 | | AM_RANGE(0x400000, 0x401fff) AM_WRITE(TC0430GRW_word_w) /* ROZ tilemap */ |
| 986 | AM_RANGE(0x200002, 0x200003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 987 | AM_RANGE(0x300000, 0x30ffff) AM_RAM |
| 988 | AM_RANGE(0x400000, 0x401fff) AM_READWRITE(TC0430GRW_word_r, TC0430GRW_word_w) /* ROZ tilemap */ |
| 1387 | 989 | AM_RANGE(0x402000, 0x40200f) AM_WRITE(TC0430GRW_ctrl_word_w) |
| 1388 | 990 | // AM_RANGE(0x500000, 0x500001) AM_WRITENOP /* ??? */ |
| 1389 | 991 | AM_RANGE(0x600000, 0x603fff) AM_WRITE(taitof2_sprite_extension_w) AM_BASE(&f2_sprite_extension) AM_SIZE(&f2_spriteext_size) |
| 1390 | | AM_RANGE(0x700000, 0x701fff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 1391 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1392 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1393 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1394 | | AM_RANGE(0xa00000, 0xa0001f) AM_WRITE(TC0360PRI_halfword_swap_w) |
| 1395 | | AM_RANGE(0xb00000, 0xb0000f) AM_WRITE(TC0510NIO_halfword_w) |
| 992 | AM_RANGE(0x700000, 0x701fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 993 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 994 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 995 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 996 | AM_RANGE(0xa00000, 0xa0001f) AM_WRITE8(TC0360PRI_w, 0xff00) |
| 997 | AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1396 | 998 | ADDRESS_MAP_END |
| 1397 | 999 | |
| 1398 | | static ADDRESS_MAP_START( metalb_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1399 | | AM_RANGE(0x000000, 0x0bffff) AM_READ(SMH_ROM) |
| 1400 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1401 | | AM_RANGE(0x300000, 0x30ffff) AM_READ(SMH_RAM) |
| 1402 | | AM_RANGE(0x500000, 0x50ffff) AM_READ(TC0480SCP_word_r) /* tilemaps */ |
| 1403 | | AM_RANGE(0x530000, 0x53002f) AM_READ(TC0480SCP_ctrl_word_r) |
| 1404 | | AM_RANGE(0x700000, 0x703fff) AM_READ(SMH_RAM) |
| 1405 | | AM_RANGE(0x800000, 0x80000f) AM_READ(TC0510NIO_halfword_wordswap_r) |
| 1406 | | AM_RANGE(0x900000, 0x900003) AM_READ(taitof2_msb_sound_r) |
| 1407 | | ADDRESS_MAP_END |
| 1408 | | |
| 1409 | | static ADDRESS_MAP_START( metalb_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1410 | | AM_RANGE(0x000000, 0x0bffff) AM_WRITE(SMH_ROM) |
| 1411 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1412 | | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1000 | static ADDRESS_MAP_START( metalb_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1001 | AM_RANGE(0x000000, 0x0bffff) AM_ROM |
| 1002 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 1003 | AM_RANGE(0x300000, 0x30ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1413 | 1004 | // AM_RANGE(0x42000c, 0x42000f) AM_WRITENOP /* zeroed */ |
| 1414 | | AM_RANGE(0x500000, 0x50ffff) AM_WRITE(TC0480SCP_word_w) /* tilemaps */ |
| 1415 | | AM_RANGE(0x530000, 0x53002f) AM_WRITE(TC0480SCP_ctrl_word_w) |
| 1416 | | AM_RANGE(0x600000, 0x60001f) AM_WRITE(TC0360PRI_halfword_w) |
| 1417 | | AM_RANGE(0x700000, 0x703fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1418 | | AM_RANGE(0x800000, 0x80000f) AM_WRITE(TC0510NIO_halfword_wordswap_w) |
| 1005 | AM_RANGE(0x500000, 0x50ffff) AM_READWRITE(TC0480SCP_word_r, TC0480SCP_word_w) /* tilemaps */ |
| 1006 | AM_RANGE(0x530000, 0x53002f) AM_READWRITE(TC0480SCP_ctrl_word_r, TC0480SCP_ctrl_word_w) |
| 1007 | AM_RANGE(0x600000, 0x60001f) AM_WRITE8(TC0360PRI_w, 0x00ff) |
| 1008 | AM_RANGE(0x700000, 0x703fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1009 | AM_RANGE(0x800000, 0x80000f) AM_READWRITE(TC0510NIO_halfword_wordswap_r, TC0510NIO_halfword_wordswap_w) |
| 1419 | 1010 | AM_RANGE(0x900000, 0x900001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1420 | | AM_RANGE(0x900002, 0x900003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1011 | AM_RANGE(0x900002, 0x900003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1421 | 1012 | // AM_RANGE(0xa00000, 0xa00001) AM_WRITENOP /* ??? */ |
| 1422 | 1013 | ADDRESS_MAP_END |
| 1423 | 1014 | |
| 1424 | | static ADDRESS_MAP_START( qzchikyu_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1425 | | AM_RANGE(0x000000, 0x17ffff) AM_READ(SMH_ROM) |
| 1426 | | AM_RANGE(0x200000, 0x20000f) AM_READ(TC0510NIO_halfword_r) |
| 1427 | | AM_RANGE(0x300000, 0x300003) AM_READ(taitof2_sound_r) |
| 1428 | | AM_RANGE(0x400000, 0x401fff) AM_READ(SMH_RAM) |
| 1429 | | AM_RANGE(0x500000, 0x50ffff) AM_READ(SMH_RAM) |
| 1430 | | AM_RANGE(0x600000, 0x60ffff) AM_READ(SMH_RAM) |
| 1431 | | AM_RANGE(0x700000, 0x70ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1432 | | AM_RANGE(0x720000, 0x72000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1433 | | ADDRESS_MAP_END |
| 1434 | | |
| 1435 | | static ADDRESS_MAP_START( qzchikyu_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1436 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) |
| 1437 | | AM_RANGE(0x200000, 0x20000f) AM_WRITE(TC0510NIO_halfword_w) |
| 1015 | static ADDRESS_MAP_START( qzchikyu_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1016 | AM_RANGE(0x000000, 0x17ffff) AM_ROM |
| 1017 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1438 | 1018 | AM_RANGE(0x300000, 0x300001) AM_WRITE8(taitosound_port_w, 0x00ff) |
| 1439 | | AM_RANGE(0x300002, 0x300003) AM_WRITE8(taitosound_comm_w, 0x00ff) |
| 1440 | | AM_RANGE(0x400000, 0x401fff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 1441 | | AM_RANGE(0x500000, 0x50ffff) AM_WRITE(SMH_RAM) |
| 1442 | | AM_RANGE(0x600000, 0x60ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1443 | | AM_RANGE(0x700000, 0x70ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1444 | | AM_RANGE(0x720000, 0x72000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1019 | AM_RANGE(0x300002, 0x300003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff) |
| 1020 | AM_RANGE(0x400000, 0x401fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 1021 | AM_RANGE(0x500000, 0x50ffff) AM_RAM |
| 1022 | AM_RANGE(0x600000, 0x60ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1023 | AM_RANGE(0x700000, 0x70ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1024 | AM_RANGE(0x720000, 0x72000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1445 | 1025 | ADDRESS_MAP_END |
| 1446 | 1026 | |
| 1447 | | static ADDRESS_MAP_START( yesnoj_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1448 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1449 | | AM_RANGE(0x200000, 0x20ffff) AM_READ(SMH_RAM) |
| 1450 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SMH_RAM) |
| 1451 | | AM_RANGE(0x500000, 0x50ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1452 | | AM_RANGE(0x520000, 0x52000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1453 | | AM_RANGE(0x600000, 0x601fff) AM_READ(SMH_RAM) |
| 1027 | static ADDRESS_MAP_START( yesnoj_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1028 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 1029 | AM_RANGE(0x200000, 0x20ffff) AM_RAM |
| 1030 | AM_RANGE(0x400000, 0x40ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1031 | AM_RANGE(0x500000, 0x50ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1032 | AM_RANGE(0x520000, 0x52000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1033 | AM_RANGE(0x600000, 0x601fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1454 | 1034 | // AM_RANGE(0x700000, 0x70000b) AM_READ(yesnoj_unknown_r) /* what's this? */ |
| 1455 | | AM_RANGE(0x800000, 0x800003) AM_READ(taitof2_msb_sound_r) |
| 1456 | | AM_RANGE(0xa00000, 0xa0000f) AM_READ(yesnoj_input_r) |
| 1457 | | AM_RANGE(0xb00000, 0xb00001) AM_READ(yesnoj_dsw_r) |
| 1458 | | ADDRESS_MAP_END |
| 1459 | | |
| 1460 | | static ADDRESS_MAP_START( yesnoj_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1461 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1462 | | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(SMH_RAM) |
| 1463 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1464 | | AM_RANGE(0x500000, 0x50ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1465 | | AM_RANGE(0x520000, 0x52000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1466 | | AM_RANGE(0x600000, 0x601fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1467 | 1035 | AM_RANGE(0x800000, 0x800001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1468 | | AM_RANGE(0x800002, 0x800003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1036 | AM_RANGE(0x800002, 0x800003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1469 | 1037 | AM_RANGE(0x900002, 0x900003) AM_WRITENOP /* lots of similar writes */ |
| 1038 | AM_RANGE(0xa00000, 0xa00001) AM_READ_PORT("IN0") |
| 1039 | AM_RANGE(0xa00002, 0xa00003) AM_READ_PORT("IN1") |
| 1040 | AM_RANGE(0xa00004, 0xa00005) AM_READ_PORT("IN2") |
| 1041 | AM_RANGE(0xb00000, 0xb00001) AM_READ_PORT("DSWA") |
| 1470 | 1042 | AM_RANGE(0xc00000, 0xc00001) AM_WRITENOP /* watchdog ?? */ |
| 1471 | 1043 | AM_RANGE(0xd00000, 0xd00001) AM_WRITENOP /* lots of similar writes */ |
| 1472 | 1044 | ADDRESS_MAP_END |
| 1473 | 1045 | |
| 1474 | | static ADDRESS_MAP_START( deadconx_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1475 | | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 1476 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1477 | | AM_RANGE(0x200000, 0x20ffff) AM_READ(SMH_RAM) |
| 1478 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(TC0480SCP_word_r) /* tilemaps */ |
| 1479 | | AM_RANGE(0x430000, 0x43002f) AM_READ(TC0480SCP_ctrl_word_r) |
| 1480 | | AM_RANGE(0x600000, 0x601fff) AM_READ(SMH_RAM) |
| 1481 | | AM_RANGE(0x700000, 0x70001f) AM_READ(deadconx_input_r) |
| 1482 | | AM_RANGE(0xa00000, 0xa00003) AM_READ(taitof2_msb_sound_r) |
| 1483 | | ADDRESS_MAP_END |
| 1484 | | |
| 1485 | | static ADDRESS_MAP_START( deadconx_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1486 | | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM) |
| 1487 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1488 | | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1046 | static ADDRESS_MAP_START( deadconx_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1047 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 1048 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 1049 | AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1489 | 1050 | AM_RANGE(0x300000, 0x30000f) AM_WRITE(taitof2_spritebank_w) |
| 1490 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(TC0480SCP_word_w) /* tilemaps */ |
| 1051 | AM_RANGE(0x400000, 0x40ffff) AM_READWRITE(TC0480SCP_word_r, TC0480SCP_word_w) /* tilemaps */ |
| 1491 | 1052 | // AM_RANGE(0x42000c, 0x42000f) AM_WRITENOP /* zeroed */ |
| 1492 | | AM_RANGE(0x430000, 0x43002f) AM_WRITE(TC0480SCP_ctrl_word_w) |
| 1493 | | AM_RANGE(0x500000, 0x50001f) AM_WRITE(TC0360PRI_halfword_w) /* uses 500002 like a watchdog !? */ |
| 1494 | | AM_RANGE(0x600000, 0x601fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1053 | AM_RANGE(0x430000, 0x43002f) AM_READWRITE(TC0480SCP_ctrl_word_r, TC0480SCP_ctrl_word_w) |
| 1054 | AM_RANGE(0x500000, 0x50001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* uses 500002 like a watchdog !? */ |
| 1055 | AM_RANGE(0x600000, 0x601fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1056 | AM_RANGE(0x700000, 0x700001) AM_READ_PORT("DSWA") |
| 1057 | AM_RANGE(0x700002, 0x700003) AM_READ_PORT("DSWB") |
| 1058 | AM_RANGE(0x700004, 0x700005) AM_READ_PORT("IN2") |
| 1495 | 1059 | AM_RANGE(0x700006, 0x700007) AM_WRITE(taitof2_4p_coin_word_w) |
| 1496 | | AM_RANGE(0x800000, 0x800001) AM_WRITE(taitof2_watchdog_w) /* ??? */ |
| 1060 | AM_RANGE(0x70000a, 0x70000b) AM_READ_PORT("IN0") |
| 1061 | AM_RANGE(0x70000c, 0x70000d) AM_READ_PORT("IN1") |
| 1062 | AM_RANGE(0x800000, 0x800001) AM_WRITE(watchdog_reset16_w) /* ??? */ |
| 1497 | 1063 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1498 | | AM_RANGE(0xa00002, 0xa00003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1064 | AM_RANGE(0xa00002, 0xa00003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1499 | 1065 | ADDRESS_MAP_END |
| 1500 | 1066 | |
| 1501 | | static ADDRESS_MAP_START( dinorex_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1502 | | AM_RANGE(0x000000, 0x2fffff) AM_READ(SMH_ROM) |
| 1503 | | AM_RANGE(0x300000, 0x30000f) AM_READ(TC0510NIO_halfword_r) |
| 1504 | | AM_RANGE(0x500000, 0x501fff) AM_READ(SMH_RAM) |
| 1505 | | AM_RANGE(0x600000, 0x60ffff) AM_READ(SMH_RAM) |
| 1506 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(SMH_RAM) |
| 1507 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1508 | | AM_RANGE(0x920000, 0x92000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1509 | | AM_RANGE(0xa00000, 0xa00003) AM_READ(taitof2_msb_sound_r) |
| 1510 | | ADDRESS_MAP_END |
| 1511 | | |
| 1512 | | static ADDRESS_MAP_START( dinorex_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1513 | | AM_RANGE(0x000000, 0x2fffff) AM_WRITE(SMH_ROM) |
| 1514 | | AM_RANGE(0x300000, 0x30000f) AM_WRITE(TC0510NIO_halfword_w) |
| 1067 | static ADDRESS_MAP_START( dinorex_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1068 | AM_RANGE(0x000000, 0x2fffff) AM_ROM |
| 1069 | AM_RANGE(0x300000, 0x30000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1515 | 1070 | AM_RANGE(0x400000, 0x400fff) AM_WRITE(taitof2_sprite_extension_w) AM_BASE(&f2_sprite_extension) AM_SIZE(&f2_spriteext_size) |
| 1516 | | AM_RANGE(0x500000, 0x501fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1517 | | AM_RANGE(0x600000, 0x60ffff) AM_WRITE(SMH_RAM) |
| 1518 | | AM_RANGE(0x700000, 0x70001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 1519 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1520 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1521 | | AM_RANGE(0x920000, 0x92000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1071 | AM_RANGE(0x500000, 0x501fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1072 | AM_RANGE(0x600000, 0x60ffff) AM_RAM |
| 1073 | AM_RANGE(0x700000, 0x70001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1074 | AM_RANGE(0x800000, 0x80ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1075 | AM_RANGE(0x900000, 0x90ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1076 | AM_RANGE(0x920000, 0x92000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1522 | 1077 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1523 | | AM_RANGE(0xa00002, 0xa00003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1078 | AM_RANGE(0xa00002, 0xa00003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1524 | 1079 | AM_RANGE(0xb00000, 0xb00001) AM_WRITENOP /* watchdog? */ |
| 1525 | 1080 | ADDRESS_MAP_END |
| 1526 | 1081 | |
| 1527 | | static ADDRESS_MAP_START( qjinsei_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1528 | | AM_RANGE(0x000000, 0x1fffff) AM_READ(SMH_ROM) |
| 1529 | | AM_RANGE(0x200000, 0x200003) AM_READ(taitof2_msb_sound_r) |
| 1530 | | AM_RANGE(0x300000, 0x30ffff) AM_READ(SMH_RAM) |
| 1531 | | AM_RANGE(0x700000, 0x701fff) AM_READ(SMH_RAM) |
| 1532 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1533 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1534 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1535 | | AM_RANGE(0xb00000, 0xb0000f) AM_READ(TC0510NIO_halfword_r) |
| 1536 | | ADDRESS_MAP_END |
| 1537 | | |
| 1538 | | static ADDRESS_MAP_START( qjinsei_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1539 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1082 | static ADDRESS_MAP_START( qjinsei_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1083 | AM_RANGE(0x000000, 0x1fffff) AM_ROM |
| 1540 | 1084 | AM_RANGE(0x200000, 0x200001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1541 | | AM_RANGE(0x200002, 0x200003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1542 | | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(SMH_RAM) |
| 1085 | AM_RANGE(0x200002, 0x200003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1086 | AM_RANGE(0x300000, 0x30ffff) AM_RAM |
| 1543 | 1087 | AM_RANGE(0x500000, 0x500001) AM_WRITENOP /* watchdog ? */ |
| 1544 | 1088 | AM_RANGE(0x600000, 0x603fff) AM_WRITE(taitof2_sprite_extension_w) AM_BASE(&f2_sprite_extension) AM_SIZE(&f2_spriteext_size) |
| 1545 | | AM_RANGE(0x700000, 0x701fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1546 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1547 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1548 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1549 | | AM_RANGE(0xa00000, 0xa0001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 1550 | | AM_RANGE(0xb00000, 0xb0000f) AM_WRITE(TC0510NIO_halfword_w) |
| 1089 | AM_RANGE(0x700000, 0x701fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1090 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1091 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1092 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1093 | AM_RANGE(0xa00000, 0xa0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1094 | AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1551 | 1095 | ADDRESS_MAP_END |
| 1552 | 1096 | |
| 1553 | | static ADDRESS_MAP_START( qcrayon_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1554 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1555 | | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) |
| 1556 | | AM_RANGE(0x300000, 0x3fffff) AM_READ(SMH_BANK1) /* extra data rom */ |
| 1557 | | AM_RANGE(0x500000, 0x500003) AM_READ(taitof2_msb_sound_r) |
| 1558 | | AM_RANGE(0x700000, 0x701fff) AM_READ(SMH_RAM) |
| 1559 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(SMH_RAM) |
| 1560 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1561 | | AM_RANGE(0x920000, 0x92000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1562 | | AM_RANGE(0xa00000, 0xa0000f) AM_READ(TC0510NIO_halfword_r) |
| 1563 | | ADDRESS_MAP_END |
| 1564 | | |
| 1565 | | static ADDRESS_MAP_START( qcrayon_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1566 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1567 | | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) |
| 1097 | static ADDRESS_MAP_START( qcrayon_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1098 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 1099 | AM_RANGE(0x100000, 0x10ffff) AM_RAM |
| 1568 | 1100 | // AM_RANGE(0x200000, 0x200001) AM_WRITENOP /* unknown */ |
| 1569 | | AM_RANGE(0x300000, 0x3fffff) AM_WRITE(SMH_ROM) |
| 1101 | AM_RANGE(0x300000, 0x3fffff) AM_ROM AM_REGION("extra", 0) /* extra data rom */ |
| 1570 | 1102 | AM_RANGE(0x500000, 0x500001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1571 | | AM_RANGE(0x500002, 0x500003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1103 | AM_RANGE(0x500002, 0x500003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1572 | 1104 | AM_RANGE(0x600000, 0x603fff) AM_WRITE(taitof2_sprite_extension_w) AM_BASE(&f2_sprite_extension) AM_SIZE(&f2_spriteext_size) |
| 1573 | | AM_RANGE(0x700000, 0x701fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1574 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1575 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1576 | | AM_RANGE(0x920000, 0x92000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1577 | | AM_RANGE(0xa00000, 0xa0000f) AM_WRITE(TC0510NIO_halfword_w) |
| 1578 | | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 1105 | AM_RANGE(0x700000, 0x701fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1106 | AM_RANGE(0x800000, 0x80ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1107 | AM_RANGE(0x900000, 0x90ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1108 | AM_RANGE(0x920000, 0x92000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1109 | AM_RANGE(0xa00000, 0xa0000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1110 | AM_RANGE(0xb00000, 0xb0001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1579 | 1111 | ADDRESS_MAP_END |
| 1580 | 1112 | |
| 1581 | | static ADDRESS_MAP_START( qcrayon2_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1582 | | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) |
| 1583 | | AM_RANGE(0x200000, 0x20ffff) AM_READ(SMH_RAM) |
| 1584 | | AM_RANGE(0x300000, 0x301fff) AM_READ(SMH_RAM) |
| 1585 | | AM_RANGE(0x400000, 0x40ffff) AM_READ(SMH_RAM) |
| 1586 | | AM_RANGE(0x500000, 0x50ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1587 | | AM_RANGE(0x520000, 0x52000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1588 | | AM_RANGE(0x600000, 0x67ffff) AM_READ(SMH_BANK1) /* extra data rom */ |
| 1589 | | AM_RANGE(0x700000, 0x70000f) AM_READ(TC0510NIO_halfword_r) |
| 1590 | | AM_RANGE(0xa00000, 0xa00003) AM_READ(taitof2_msb_sound_r) |
| 1591 | | ADDRESS_MAP_END |
| 1592 | | |
| 1593 | | static ADDRESS_MAP_START( qcrayon2_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1594 | | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) |
| 1595 | | AM_RANGE(0x200000, 0x20ffff) AM_WRITE(SMH_RAM) |
| 1596 | | AM_RANGE(0x300000, 0x301fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1597 | | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1598 | | AM_RANGE(0x500000, 0x50ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1599 | | AM_RANGE(0x520000, 0x52000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1600 | | AM_RANGE(0x600000, 0x67ffff) AM_WRITE(SMH_ROM) |
| 1601 | | AM_RANGE(0x700000, 0x70000f) AM_WRITE(TC0510NIO_halfword_w) |
| 1602 | | AM_RANGE(0x900000, 0x90001f) AM_WRITE(TC0360PRI_halfword_w) /* ?? */ |
| 1113 | static ADDRESS_MAP_START( qcrayon2_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1114 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 1115 | AM_RANGE(0x200000, 0x20ffff) AM_RAM |
| 1116 | AM_RANGE(0x300000, 0x301fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) |
| 1117 | AM_RANGE(0x400000, 0x40ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1118 | AM_RANGE(0x500000, 0x50ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1119 | AM_RANGE(0x520000, 0x52000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1120 | AM_RANGE(0x600000, 0x67ffff) AM_ROM AM_REGION("extra", 0) /* extra data rom */ |
| 1121 | AM_RANGE(0x700000, 0x70000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1122 | AM_RANGE(0x900000, 0x90001f) AM_WRITE8(TC0360PRI_w, 0x00ff) /* ?? */ |
| 1603 | 1123 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1604 | | AM_RANGE(0xa00002, 0xa00003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1124 | AM_RANGE(0xa00002, 0xa00003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1605 | 1125 | AM_RANGE(0xb00000, 0xb017ff) AM_WRITE(taitof2_sprite_extension_w) AM_BASE(&f2_sprite_extension) AM_SIZE(&f2_spriteext_size) |
| 1606 | 1126 | ADDRESS_MAP_END |
| 1607 | 1127 | |
| 1608 | | static ADDRESS_MAP_START( driftout_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1609 | | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 1610 | | AM_RANGE(0x200000, 0x200003) AM_READ(taitof2_msb_sound_r) |
| 1611 | | AM_RANGE(0x300000, 0x30ffff) AM_READ(SMH_RAM) |
| 1612 | | AM_RANGE(0x400000, 0x401fff) AM_READ(TC0430GRW_word_r) |
| 1613 | | AM_RANGE(0x700000, 0x701fff) AM_READ(SMH_RAM) |
| 1614 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1615 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1616 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1617 | | AM_RANGE(0xb00000, 0xb0000f) AM_READ(TC0510NIO_halfword_r) |
| 1618 | | AM_RANGE(0xb00018, 0xb0001f) AM_READ(driftout_paddle_r) |
| 1619 | | ADDRESS_MAP_END |
| 1620 | | |
| 1621 | | static ADDRESS_MAP_START( driftout_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1622 | | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM) |
| 1128 | static ADDRESS_MAP_START( driftout_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1129 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 1623 | 1130 | AM_RANGE(0x200000, 0x200001) AM_WRITE8(taitosound_port_w, 0xff00) |
| 1624 | | AM_RANGE(0x200002, 0x200003) AM_WRITE8(taitosound_comm_w, 0xff00) |
| 1625 | | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(SMH_RAM) |
| 1626 | | AM_RANGE(0x400000, 0x401fff) AM_WRITE(TC0430GRW_word_w) /* ROZ tilemap */ |
| 1131 | AM_RANGE(0x200002, 0x200003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0xff00) |
| 1132 | AM_RANGE(0x300000, 0x30ffff) AM_RAM |
| 1133 | AM_RANGE(0x400000, 0x401fff) AM_READWRITE(TC0430GRW_word_r, TC0430GRW_word_w) /* ROZ tilemap */ |
| 1627 | 1134 | AM_RANGE(0x402000, 0x40200f) AM_WRITE(TC0430GRW_ctrl_word_w) |
| 1628 | | AM_RANGE(0x700000, 0x701fff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 1629 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1630 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1631 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1632 | | AM_RANGE(0xa00000, 0xa0001f) AM_WRITE(TC0360PRI_halfword_swap_w) |
| 1633 | | AM_RANGE(0xb00000, 0xb0000f) AM_WRITE(TC0510NIO_halfword_w) |
| 1135 | AM_RANGE(0x700000, 0x701fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 1136 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1137 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1138 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1139 | AM_RANGE(0xa00000, 0xa0001f) AM_WRITE8(TC0360PRI_w, 0xff00) |
| 1140 | AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1141 | AM_RANGE(0xb00018, 0xb00019) AM_READ_PORT("PADDLE1") |
| 1142 | AM_RANGE(0xb0001a, 0xb0001b) AM_READ_PORT("PADDLE2") |
| 1634 | 1143 | ADDRESS_MAP_END |
| 1635 | 1144 | |
| 1636 | 1145 | /* same as driftout, except for sound address 0x200000 */ |
| 1637 | | static ADDRESS_MAP_START( driveout_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1638 | | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) |
| 1639 | | AM_RANGE(0x200000, 0x200003) AM_READNOP |
| 1640 | | AM_RANGE(0x300000, 0x30ffff) AM_READ(SMH_RAM) |
| 1641 | | AM_RANGE(0x400000, 0x401fff) AM_READ(TC0430GRW_word_r) |
| 1642 | | AM_RANGE(0x700000, 0x701fff) AM_READ(SMH_RAM) |
| 1643 | | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ |
| 1644 | | AM_RANGE(0x820000, 0x82000f) AM_READ(TC0100SCN_ctrl_word_0_r) |
| 1645 | | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) |
| 1646 | | AM_RANGE(0xb00000, 0xb0000f) AM_READ(TC0510NIO_halfword_r) |
| 1647 | | AM_RANGE(0xb00018, 0xb0001f) AM_READ(driftout_paddle_r) |
| 1648 | | ADDRESS_MAP_END |
| 1649 | | |
| 1650 | | static ADDRESS_MAP_START( driveout_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1651 | | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM) |
| 1652 | | AM_RANGE(0x200000, 0x200003) AM_WRITE(driveout_sound_command_w) |
| 1653 | | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(SMH_RAM) |
| 1654 | | AM_RANGE(0x400000, 0x401fff) AM_WRITE(TC0430GRW_word_w) /* ROZ tilemap */ |
| 1146 | static ADDRESS_MAP_START( driveout_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1147 | AM_RANGE(0x000000, 0x0fffff) AM_ROM |
| 1148 | AM_RANGE(0x200000, 0x200003) AM_READNOP AM_WRITE(driveout_sound_command_w) |
| 1149 | AM_RANGE(0x300000, 0x30ffff) AM_RAM |
| 1150 | AM_RANGE(0x400000, 0x401fff) AM_READWRITE(TC0430GRW_word_r, TC0430GRW_word_w) /* ROZ tilemap */ |
| 1655 | 1151 | AM_RANGE(0x402000, 0x40200f) AM_WRITE(TC0430GRW_ctrl_word_w) |
| 1656 | | AM_RANGE(0x700000, 0x701fff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 1657 | | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ |
| 1658 | | AM_RANGE(0x820000, 0x82000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) |
| 1659 | | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1660 | | AM_RANGE(0xa00000, 0xa0001f) AM_WRITE(TC0360PRI_halfword_swap_w) |
| 1661 | | AM_RANGE(0xb00000, 0xb0000f) AM_WRITE(TC0510NIO_halfword_w) |
| 1152 | AM_RANGE(0x700000, 0x701fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) |
| 1153 | AM_RANGE(0x800000, 0x80ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */ |
| 1154 | AM_RANGE(0x820000, 0x82000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r, TC0100SCN_ctrl_word_0_w) |
| 1155 | AM_RANGE(0x900000, 0x90ffff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1156 | AM_RANGE(0xa00000, 0xa0001f) AM_WRITE8(TC0360PRI_w, 0xff00) |
| 1157 | AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE(TC0510NIO_halfword_r, TC0510NIO_halfword_w) |
| 1158 | AM_RANGE(0xb00018, 0xb00019) AM_READ_PORT("PADDLE1") |
| 1159 | AM_RANGE(0xb0001a, 0xb0001b) AM_READ_PORT("PADDLE2") |
| 1662 | 1160 | ADDRESS_MAP_END |
| 1663 | 1161 | |
| 1664 | 1162 | |
| 1665 | 1163 | /***************************************************************************/ |
| 1666 | 1164 | |
| 1667 | | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1668 | | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 1669 | | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK2) |
| 1670 | | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM) |
| 1671 | | AM_RANGE(0xe000, 0xe003) AM_DEVREAD("ym", ym2610_r) |
| 1672 | | AM_RANGE(0xe200, 0xe200) AM_READNOP |
| 1673 | | AM_RANGE(0xe201, 0xe201) AM_READ(taitosound_slave_comm_r) |
| 1674 | | AM_RANGE(0xea00, 0xea00) AM_READNOP |
| 1675 | | ADDRESS_MAP_END |
| 1676 | | |
| 1677 | | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1678 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 1679 | | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_RAM) |
| 1680 | | AM_RANGE(0xe000, 0xe003) AM_DEVWRITE("ym", ym2610_w) |
| 1681 | | AM_RANGE(0xe200, 0xe200) AM_WRITE(taitosound_slave_port_w) |
| 1682 | | AM_RANGE(0xe201, 0xe201) AM_WRITE(taitosound_slave_comm_w) |
| 1165 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1166 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 1167 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(2) |
| 1168 | AM_RANGE(0xc000, 0xdfff) AM_RAM |
| 1169 | AM_RANGE(0xe000, 0xe003) AM_DEVREADWRITE("ym", ym2610_r, ym2610_w) |
| 1170 | AM_RANGE(0xe200, 0xe200) AM_READNOP AM_WRITE(taitosound_slave_port_w) |
| 1171 | AM_RANGE(0xe201, 0xe201) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) |
| 1683 | 1172 | AM_RANGE(0xe400, 0xe403) AM_WRITENOP /* pan */ |
| 1173 | AM_RANGE(0xea00, 0xea00) AM_READNOP |
| 1684 | 1174 | AM_RANGE(0xee00, 0xee00) AM_WRITENOP /* ? */ |
| 1685 | 1175 | AM_RANGE(0xf000, 0xf000) AM_WRITENOP /* ? */ |
| 1686 | 1176 | AM_RANGE(0xf200, 0xf200) AM_WRITE(sound_bankswitch_w) /* ?? */ |
| r4499 | r4500 | |
| 1689 | 1179 | |
| 1690 | 1180 | /* Alt version of Cameltry, YM2203 + M6925 sound */ |
| 1691 | 1181 | |
| 1692 | | static ADDRESS_MAP_START( camltrya_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1693 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) // I can't see a bank control, but there ARE some bytes past 0x8000 |
| 1694 | | // AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK1) |
| 1695 | | AM_RANGE(0x8000, 0x8fff) AM_READ(SMH_RAM) |
| 1696 | | AM_RANGE(0x9000, 0x9001) AM_DEVREAD("ym", ym2203_r) |
| 1697 | | AM_RANGE(0xa001, 0xa001) AM_READ(taitosound_slave_comm_r) |
| 1698 | | AM_RANGE(0xb000, 0xb000) AM_DEVREAD("oki", okim6295_r) |
| 1699 | | ADDRESS_MAP_END |
| 1700 | | |
| 1701 | | static ADDRESS_MAP_START( camltrya_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1702 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 1703 | | AM_RANGE(0x8000, 0x8fff) AM_WRITE(SMH_RAM) |
| 1704 | | AM_RANGE(0x9000, 0x9001) AM_DEVWRITE("ym", ym2203_w) |
| 1182 | static ADDRESS_MAP_START( cameltrya_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1183 | AM_RANGE(0x0000, 0x7fff) AM_ROM // I can't see a bank control, but there ARE some bytes past 0x8000 |
| 1184 | AM_RANGE(0x8000, 0x8fff) AM_RAM |
| 1185 | AM_RANGE(0x9000, 0x9001) AM_DEVREADWRITE("ym", ym2203_r, ym2203_w) |
| 1705 | 1186 | AM_RANGE(0xa000, 0xa000) AM_WRITE(taitosound_slave_port_w) |
| 1706 | | AM_RANGE(0xa001, 0xa001) AM_WRITE(taitosound_slave_comm_w) |
| 1187 | AM_RANGE(0xa001, 0xa001) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) |
| 1707 | 1188 | // AM_RANGE(0xb000, 0xb000) AM_WRITE(unknown_w) // probably controlling sample player? |
| 1708 | | AM_RANGE(0xb000, 0xb000) AM_DEVWRITE("oki", okim6295_w) |
| 1709 | | AM_RANGE(0xb001, 0xb001) AM_DEVWRITE("oki", okim6295_w) |
| 1189 | AM_RANGE(0xb000, 0xb001) AM_MIRROR(0x0001) AM_DEVREADWRITE("oki", okim6295_r, okim6295_w) |
| 1710 | 1190 | ADDRESS_MAP_END |
| 1711 | 1191 | |
| 1712 | 1192 | |
| 1713 | | static ADDRESS_MAP_START( driveout_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1714 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 1715 | | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) |
| 1716 | | AM_RANGE(0x9800, 0x9800) AM_DEVREAD("oki", okim6295_r) |
| 1193 | static ADDRESS_MAP_START( driveout_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1194 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 1195 | AM_RANGE(0x8000, 0x87ff) AM_RAM |
| 1196 | AM_RANGE(0x9000, 0x9000) AM_WRITE(oki_bank_w) |
| 1197 | AM_RANGE(0x9800, 0x9800) AM_DEVREADWRITE("oki", okim6295_r, okim6295_w) |
| 1717 | 1198 | AM_RANGE(0xa000, 0xa000) AM_READ(driveout_sound_command_r) |
| 1718 | 1199 | ADDRESS_MAP_END |
| 1719 | 1200 | |
| 1720 | | static ADDRESS_MAP_START( driveout_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1721 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 1722 | | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) |
| 1723 | | AM_RANGE(0x9000, 0x9000) AM_WRITE(oki_bank_w) |
| 1724 | | AM_RANGE(0x9800, 0x9800) AM_DEVWRITE("oki", okim6295_w) |
| 1725 | | ADDRESS_MAP_END |
| 1726 | | |
| 1727 | 1201 | /*********************************************************** |
| 1728 | 1202 | INPUT PORTS, DIPs |
| 1729 | 1203 | ***********************************************************/ |
| r4499 | r4500 | |
| 1841 | 1315 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1842 | 1316 | INPUT_PORTS_END |
| 1843 | 1317 | |
| 1844 | | static INPUT_PORTS_START( dondokdu ) |
| 1318 | static INPUT_PORTS_START( dondokodu ) |
| 1845 | 1319 | PORT_INCLUDE(dondokod) |
| 1846 | 1320 | |
| 1847 | 1321 | PORT_MODIFY("DSWA") |
| 1848 | 1322 | TAITO_COINAGE_US |
| 1849 | 1323 | INPUT_PORTS_END |
| 1850 | 1324 | |
| 1851 | | static INPUT_PORTS_START( dondokdj ) |
| 1325 | static INPUT_PORTS_START( dondokodj ) |
| 1852 | 1326 | PORT_INCLUDE(dondokod) |
| 1853 | 1327 | |
| 1854 | 1328 | PORT_MODIFY("DSWA") |
| r4499 | r4500 | |
| 1959 | 1433 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1960 | 1434 | INPUT_PORTS_END |
| 1961 | 1435 | |
| 1962 | | static INPUT_PORTS_START( thndfoxu ) |
| 1436 | static INPUT_PORTS_START( thundfoxu ) |
| 1963 | 1437 | PORT_INCLUDE(thundfox) |
| 1964 | 1438 | |
| 1965 | 1439 | PORT_MODIFY("DSWA") |
| 1966 | 1440 | TAITO_COINAGE_US |
| 1967 | 1441 | INPUT_PORTS_END |
| 1968 | 1442 | |
| 1969 | | static INPUT_PORTS_START( thndfoxj ) |
| 1443 | static INPUT_PORTS_START( thundfoxj ) |
| 1970 | 1444 | PORT_INCLUDE(thundfox) |
| 1971 | 1445 | |
| 1972 | 1446 | PORT_MODIFY("DSWA") |
| r4499 | r4500 | |
| 2041 | 1515 | PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(100) PORT_KEYDELTA(20) PORT_PLAYER(2) |
| 2042 | 1516 | INPUT_PORTS_END |
| 2043 | 1517 | |
| 2044 | | static INPUT_PORTS_START( cameltrj ) |
| 1518 | static INPUT_PORTS_START( cameltryj ) |
| 2045 | 1519 | PORT_INCLUDE(cameltry) |
| 2046 | 1520 | |
| 2047 | 1521 | PORT_MODIFY("DSWA") |
| r4499 | r4500 | |
| 2405 | 1879 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2406 | 1880 | INPUT_PORTS_END |
| 2407 | 1881 | |
| 2408 | | static INPUT_PORTS_START( pulirulj ) |
| 1882 | static INPUT_PORTS_START( pulirulaj ) |
| 2409 | 1883 | PORT_INCLUDE(pulirula) |
| 2410 | 1884 | |
| 2411 | 1885 | PORT_MODIFY("DSWA") |
| r4499 | r4500 | |
| 2816 | 2290 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2817 | 2291 | INPUT_PORTS_END |
| 2818 | 2292 | |
| 2819 | | static INPUT_PORTS_START( gunfronj ) |
| 2293 | static INPUT_PORTS_START( gunfrontj ) |
| 2820 | 2294 | PORT_INCLUDE(gunfront) |
| 2821 | 2295 | |
| 2822 | 2296 | PORT_MODIFY("DSWA") |
| r4499 | r4500 | |
| 2928 | 2402 | PORT_DIPSETTING( 0x80, "Multiplayer" ) |
| 2929 | 2403 | INPUT_PORTS_END |
| 2930 | 2404 | |
| 2931 | | static INPUT_PORTS_START( deadconj ) |
| 2405 | static INPUT_PORTS_START( deadconxj ) |
| 2932 | 2406 | PORT_INCLUDE(deadconx) |
| 2933 | 2407 | |
| 2934 | 2408 | PORT_MODIFY("DSWA") |
| r4499 | r4500 | |
| 3664 | 3138 | }; |
| 3665 | 3139 | |
| 3666 | 3140 | |
| 3667 | | static WRITE8_DEVICE_HANDLER( camltrya_porta_w ) |
| 3141 | static WRITE8_DEVICE_HANDLER( cameltrya_porta_w ) |
| 3668 | 3142 | { |
| 3669 | 3143 | // Implement // |
| 3670 | 3144 | } |
| r4499 | r4500 | |
| 3676 | 3150 | AY8910_DEFAULT_LOADS, |
| 3677 | 3151 | DEVCB_NULL, /* portA read */ |
| 3678 | 3152 | DEVCB_NULL, |
| 3679 | | DEVCB_HANDLER(camltrya_porta_w), /* portA write - not implemented */ |
| 3153 | DEVCB_HANDLER(cameltrya_porta_w), /* portA write - not implemented */ |
| 3680 | 3154 | DEVCB_NULL, /* portB write */ |
| 3681 | 3155 | }, |
| 3682 | 3156 | irq_handler |
| r4499 | r4500 | |
| 3687 | 3161 | MACHINE DRIVERS |
| 3688 | 3162 | ***********************************************************/ |
| 3689 | 3163 | |
| 3690 | | static STATE_POSTLOAD( f2_postload ) |
| 3691 | | { |
| 3692 | | reset_sound_region(machine); |
| 3693 | | } |
| 3694 | | |
| 3695 | 3164 | static MACHINE_START( f2 ) |
| 3696 | 3165 | { |
| 3697 | | state_save_register_global(machine, banknum); |
| 3698 | | state_save_register_postload(machine, f2_postload, NULL); |
| 3166 | memory_configure_bank(machine, 2, 0, 8, memory_region(machine, "audiocpu") + 0x10000, 0x4000); |
| 3699 | 3167 | } |
| 3700 | 3168 | |
| 3701 | | static MACHINE_RESET( qcrayon ) |
| 3702 | | { |
| 3703 | | /* point to the extra ROM */ |
| 3704 | | memory_set_bankptr(machine, 1,memory_region(machine, "user1")); |
| 3705 | | } |
| 3706 | 3169 | |
| 3707 | | |
| 3708 | 3170 | static MACHINE_DRIVER_START( taito_f2 ) |
| 3709 | 3171 | |
| 3710 | 3172 | /* basic machine hardware */ |
| r4499 | r4500 | |
| 3712 | 3174 | MDRV_CPU_VBLANK_INT("screen", taitof2_interrupt) |
| 3713 | 3175 | |
| 3714 | 3176 | MDRV_CPU_ADD("audiocpu", Z80, 24000000/6) /* 4 MHz */ |
| 3715 | | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) |
| 3177 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 3716 | 3178 | |
| 3717 | 3179 | MDRV_MACHINE_START(f2) |
| 3718 | 3180 | |
| r4499 | r4500 | |
| 3748 | 3210 | /* basic machine hardware */ |
| 3749 | 3211 | MDRV_IMPORT_FROM(taito_f2) |
| 3750 | 3212 | MDRV_CPU_MODIFY("maincpu") |
| 3751 | | MDRV_CPU_PROGRAM_MAP(finalb_readmem,finalb_writemem) |
| 3213 | MDRV_CPU_PROGRAM_MAP(finalb_map,0) |
| 3752 | 3214 | |
| 3753 | 3215 | /* video hardware */ |
| 3754 | 3216 | MDRV_GFXDECODE(finalb) |
| r4499 | r4500 | |
| 3762 | 3224 | /* basic machine hardware */ |
| 3763 | 3225 | MDRV_IMPORT_FROM(taito_f2) |
| 3764 | 3226 | MDRV_CPU_MODIFY("maincpu") |
| 3765 | | MDRV_CPU_PROGRAM_MAP(dondokod_readmem,dondokod_writemem) |
| 3227 | MDRV_CPU_PROGRAM_MAP(dondokod_map,0) |
| 3766 | 3228 | |
| 3767 | 3229 | /* video hardware */ |
| 3768 | 3230 | MDRV_GFXDECODE(pivot) |
| r4499 | r4500 | |
| 3777 | 3239 | /* basic machine hardware */ |
| 3778 | 3240 | MDRV_IMPORT_FROM(taito_f2) |
| 3779 | 3241 | MDRV_CPU_MODIFY("maincpu") |
| 3780 | | MDRV_CPU_PROGRAM_MAP(megab_readmem,megab_writemem) |
| 3242 | MDRV_CPU_PROGRAM_MAP(megab_map,0) |
| 3781 | 3243 | |
| 3782 | 3244 | /* video hardware */ |
| 3783 | 3245 | MDRV_VIDEO_START(taitof2_megab) |
| r4499 | r4500 | |
| 3790 | 3252 | /* basic machine hardware */ |
| 3791 | 3253 | MDRV_IMPORT_FROM(taito_f2) |
| 3792 | 3254 | MDRV_CPU_MODIFY("maincpu") |
| 3793 | | MDRV_CPU_PROGRAM_MAP(thundfox_readmem,thundfox_writemem) |
| 3255 | MDRV_CPU_PROGRAM_MAP(thundfox_map,0) |
| 3794 | 3256 | |
| 3795 | 3257 | /* video hardware */ |
| 3796 | 3258 | MDRV_GFXDECODE(thundfox) |
| r4499 | r4500 | |
| 3805 | 3267 | /* basic machine hardware */ |
| 3806 | 3268 | MDRV_IMPORT_FROM(taito_f2) |
| 3807 | 3269 | MDRV_CPU_MODIFY("maincpu") |
| 3808 | | MDRV_CPU_PROGRAM_MAP(cameltry_readmem,cameltry_writemem) |
| 3270 | MDRV_CPU_PROGRAM_MAP(cameltry_map,0) |
| 3809 | 3271 | |
| 3810 | 3272 | /* video hardware */ |
| 3811 | 3273 | MDRV_GFXDECODE(pivot) |
| r4499 | r4500 | |
| 3819 | 3281 | /* basic machine hardware */ |
| 3820 | 3282 | MDRV_IMPORT_FROM(taito_f2) |
| 3821 | 3283 | MDRV_CPU_MODIFY("maincpu") |
| 3822 | | MDRV_CPU_PROGRAM_MAP(qtorimon_readmem,qtorimon_writemem) |
| 3284 | MDRV_CPU_PROGRAM_MAP(qtorimon_map,0) |
| 3823 | 3285 | |
| 3824 | 3286 | /* video hardware */ |
| 3825 | 3287 | MDRV_GFXDECODE(yuyugogo) |
| r4499 | r4500 | |
| 3832 | 3294 | /* basic machine hardware */ |
| 3833 | 3295 | MDRV_IMPORT_FROM(taito_f2) |
| 3834 | 3296 | MDRV_CPU_MODIFY("maincpu") |
| 3835 | | MDRV_CPU_PROGRAM_MAP(liquidk_readmem,liquidk_writemem) |
| 3297 | MDRV_CPU_PROGRAM_MAP(liquidk_map,0) |
| 3836 | 3298 | |
| 3837 | 3299 | /* video hardware */ |
| 3838 | 3300 | MDRV_VIDEO_START(taitof2_megab) |
| r4499 | r4500 | |
| 3846 | 3308 | /* basic machine hardware */ |
| 3847 | 3309 | MDRV_IMPORT_FROM(taito_f2) |
| 3848 | 3310 | MDRV_CPU_MODIFY("maincpu") |
| 3849 | | MDRV_CPU_PROGRAM_MAP(quizhq_readmem,quizhq_writemem) |
| 3311 | MDRV_CPU_PROGRAM_MAP(quizhq_map,0) |
| 3850 | 3312 | |
| 3851 | 3313 | /* video hardware */ |
| 3852 | 3314 | MDRV_GFXDECODE(yuyugogo) |
| r4499 | r4500 | |
| 3859 | 3321 | /* basic machine hardware */ |
| 3860 | 3322 | MDRV_IMPORT_FROM(taito_f2) |
| 3861 | 3323 | MDRV_CPU_MODIFY("maincpu") |
| 3862 | | MDRV_CPU_PROGRAM_MAP(ssi_readmem,ssi_writemem) |
| 3324 | MDRV_CPU_PROGRAM_MAP(ssi_map,0) |
| 3863 | 3325 | |
| 3864 | 3326 | /* video hardware */ |
| 3865 | 3327 | MDRV_VIDEO_START(taitof2_ssi) |
| r4499 | r4500 | |
| 3873 | 3335 | /* basic machine hardware */ |
| 3874 | 3336 | MDRV_IMPORT_FROM(taito_f2) |
| 3875 | 3337 | MDRV_CPU_MODIFY("maincpu") |
| 3876 | | MDRV_CPU_PROGRAM_MAP(gunfront_readmem,gunfront_writemem) |
| 3338 | MDRV_CPU_PROGRAM_MAP(gunfront_map,0) |
| 3877 | 3339 | |
| 3878 | 3340 | /* video hardware */ |
| 3879 | 3341 | MDRV_VIDEO_START(taitof2_gunfront) |
| r4499 | r4500 | |
| 3886 | 3348 | /* basic machine hardware */ |
| 3887 | 3349 | MDRV_IMPORT_FROM(taito_f2) |
| 3888 | 3350 | MDRV_CPU_MODIFY("maincpu") |
| 3889 | | MDRV_CPU_PROGRAM_MAP(growl_readmem,growl_writemem) |
| 3351 | MDRV_CPU_PROGRAM_MAP(growl_map,0) |
| 3890 | 3352 | |
| 3891 | 3353 | /* video hardware */ |
| 3892 | 3354 | MDRV_VIDEO_START(taitof2_growl) |
| r4499 | r4500 | |
| 3899 | 3361 | /* basic machine hardware */ |
| 3900 | 3362 | MDRV_IMPORT_FROM(taito_f2) |
| 3901 | 3363 | MDRV_CPU_MODIFY("maincpu") |
| 3902 | | MDRV_CPU_PROGRAM_MAP(mjnquest_readmem,mjnquest_writemem) |
| 3364 | MDRV_CPU_PROGRAM_MAP(mjnquest_map,0) |
| 3903 | 3365 | |
| 3904 | 3366 | /* video hardware */ |
| 3905 | 3367 | MDRV_VIDEO_START(taitof2_mjnquest) |
| r4499 | r4500 | |
| 3911 | 3373 | /* basic machine hardware */ |
| 3912 | 3374 | MDRV_IMPORT_FROM(taito_f2) |
| 3913 | 3375 | MDRV_CPU_MODIFY("maincpu") |
| 3914 | | MDRV_CPU_PROGRAM_MAP(footchmp_readmem,footchmp_writemem) |
| 3376 | MDRV_CPU_PROGRAM_MAP(footchmp_map,0) |
| 3915 | 3377 | |
| 3916 | 3378 | /* video hardware */ |
| 3917 | 3379 | MDRV_GFXDECODE(deadconx) |
| r4499 | r4500 | |
| 3926 | 3388 | /* basic machine hardware */ |
| 3927 | 3389 | MDRV_IMPORT_FROM(taito_f2) |
| 3928 | 3390 | MDRV_CPU_MODIFY("maincpu") |
| 3929 | | MDRV_CPU_PROGRAM_MAP(footchmp_readmem,footchmp_writemem) |
| 3391 | MDRV_CPU_PROGRAM_MAP(footchmp_map,0) |
| 3930 | 3392 | |
| 3931 | 3393 | /* video hardware */ |
| 3932 | 3394 | MDRV_GFXDECODE(deadconx) |
| r4499 | r4500 | |
| 3941 | 3403 | /* basic machine hardware */ |
| 3942 | 3404 | MDRV_IMPORT_FROM(taito_f2) |
| 3943 | 3405 | MDRV_CPU_MODIFY("maincpu") |
| 3944 | | MDRV_CPU_PROGRAM_MAP(koshien_readmem,koshien_writemem) |
| 3406 | MDRV_CPU_PROGRAM_MAP(koshien_map,0) |
| 3945 | 3407 | |
| 3946 | 3408 | /* video hardware */ |
| 3947 | 3409 | MDRV_VIDEO_START(taitof2_koshien) |
| r4499 | r4500 | |
| 3954 | 3416 | /* basic machine hardware */ |
| 3955 | 3417 | MDRV_IMPORT_FROM(taito_f2) |
| 3956 | 3418 | MDRV_CPU_MODIFY("maincpu") |
| 3957 | | MDRV_CPU_PROGRAM_MAP(yuyugogo_readmem,yuyugogo_writemem) |
| 3419 | MDRV_CPU_PROGRAM_MAP(yuyugogo_map,0) |
| 3958 | 3420 | |
| 3959 | | MDRV_MACHINE_RESET(qcrayon) |
| 3960 | | |
| 3961 | 3421 | /* video hardware */ |
| 3962 | 3422 | MDRV_GFXDECODE(yuyugogo) |
| 3963 | 3423 | MDRV_VIDEO_START(taitof2_yuyugogo) |
| r4499 | r4500 | |
| 3970 | 3430 | /* basic machine hardware */ |
| 3971 | 3431 | MDRV_IMPORT_FROM(taito_f2) |
| 3972 | 3432 | MDRV_CPU_MODIFY("maincpu") |
| 3973 | | MDRV_CPU_PROGRAM_MAP(ninjak_readmem,ninjak_writemem) |
| 3433 | MDRV_CPU_PROGRAM_MAP(ninjak_map,0) |
| 3974 | 3434 | |
| 3975 | 3435 | /* video hardware */ |
| 3976 | 3436 | MDRV_VIDEO_START(taitof2_ninjak) |
| r4499 | r4500 | |
| 3983 | 3443 | /* basic machine hardware */ |
| 3984 | 3444 | MDRV_IMPORT_FROM(taito_f2) |
| 3985 | 3445 | MDRV_CPU_MODIFY("maincpu") |
| 3986 | | MDRV_CPU_PROGRAM_MAP(solfigtr_readmem,solfigtr_writemem) |
| 3446 | MDRV_CPU_PROGRAM_MAP(solfigtr_map,0) |
| 3987 | 3447 | |
| 3988 | 3448 | /* video hardware */ |
| 3989 | 3449 | MDRV_VIDEO_START(taitof2_solfigtr) |
| r4499 | r4500 | |
| 3996 | 3456 | /* basic machine hardware */ |
| 3997 | 3457 | MDRV_IMPORT_FROM(taito_f2) |
| 3998 | 3458 | MDRV_CPU_MODIFY("maincpu") |
| 3999 | | MDRV_CPU_PROGRAM_MAP(qzquest_readmem,qzquest_writemem) |
| 3459 | MDRV_CPU_PROGRAM_MAP(qzquest_map,0) |
| 4000 | 3460 | |
| 4001 | 3461 | /* video hardware */ |
| 4002 | 3462 | MDRV_VIDEO_EOF(taitof2_partial_buffer_delayed) |
| r4499 | r4500 | |
| 4008 | 3468 | /* basic machine hardware */ |
| 4009 | 3469 | MDRV_IMPORT_FROM(taito_f2) |
| 4010 | 3470 | MDRV_CPU_MODIFY("maincpu") |
| 4011 | | MDRV_CPU_PROGRAM_MAP(pulirula_readmem,pulirula_writemem) |
| 3471 | MDRV_CPU_PROGRAM_MAP(pulirula_map,0) |
| 4012 | 3472 | |
| 4013 | 3473 | /* video hardware */ |
| 4014 | 3474 | MDRV_GFXDECODE(pivot) |
| r4499 | r4500 | |
| 4022 | 3482 | /* basic machine hardware */ |
| 4023 | 3483 | MDRV_IMPORT_FROM(taito_f2) |
| 4024 | 3484 | MDRV_CPU_MODIFY("maincpu") |
| 4025 | | MDRV_CPU_PROGRAM_MAP(metalb_readmem,metalb_writemem) |
| 3485 | MDRV_CPU_PROGRAM_MAP(metalb_map,0) |
| 4026 | 3486 | |
| 4027 | 3487 | /* video hardware */ |
| 4028 | 3488 | MDRV_GFXDECODE(deadconx) |
| r4499 | r4500 | |
| 4037 | 3497 | /* basic machine hardware */ |
| 4038 | 3498 | MDRV_IMPORT_FROM(taito_f2) |
| 4039 | 3499 | MDRV_CPU_MODIFY("maincpu") |
| 4040 | | MDRV_CPU_PROGRAM_MAP(qzchikyu_readmem,qzchikyu_writemem) |
| 3500 | MDRV_CPU_PROGRAM_MAP(qzchikyu_map,0) |
| 4041 | 3501 | |
| 4042 | 3502 | /* video hardware */ |
| 4043 | 3503 | MDRV_VIDEO_START(taitof2_qzchikyu) |
| r4499 | r4500 | |
| 4050 | 3510 | /* basic machine hardware */ |
| 4051 | 3511 | MDRV_IMPORT_FROM(taito_f2) |
| 4052 | 3512 | MDRV_CPU_MODIFY("maincpu") |
| 4053 | | MDRV_CPU_PROGRAM_MAP(yesnoj_readmem,yesnoj_writemem) |
| 3513 | MDRV_CPU_PROGRAM_MAP(yesnoj_map,0) |
| 4054 | 3514 | |
| 4055 | 3515 | /* video hardware */ |
| 4056 | 3516 | MDRV_GFXDECODE(yuyugogo) |
| r4499 | r4500 | |
| 4064 | 3524 | /* basic machine hardware */ |
| 4065 | 3525 | MDRV_IMPORT_FROM(taito_f2) |
| 4066 | 3526 | MDRV_CPU_MODIFY("maincpu") |
| 4067 | | MDRV_CPU_PROGRAM_MAP(deadconx_readmem,deadconx_writemem) |
| 3527 | MDRV_CPU_PROGRAM_MAP(deadconx_map,0) |
| 4068 | 3528 | |
| 4069 | 3529 | /* video hardware */ |
| 4070 | 3530 | MDRV_GFXDECODE(deadconx) |
| r4499 | r4500 | |
| 4073 | 3533 | MACHINE_DRIVER_END |
| 4074 | 3534 | |
| 4075 | 3535 | |
| 4076 | | static MACHINE_DRIVER_START( deadconj ) |
| 3536 | static MACHINE_DRIVER_START( deadconxj ) |
| 4077 | 3537 | |
| 4078 | 3538 | /* basic machine hardware */ |
| 4079 | 3539 | MDRV_IMPORT_FROM(taito_f2) |
| 4080 | 3540 | MDRV_CPU_MODIFY("maincpu") |
| 4081 | | MDRV_CPU_PROGRAM_MAP(deadconx_readmem,deadconx_writemem) |
| 3541 | MDRV_CPU_PROGRAM_MAP(deadconx_map,0) |
| 4082 | 3542 | |
| 4083 | 3543 | /* video hardware */ |
| 4084 | 3544 | MDRV_GFXDECODE(deadconx) |
| 4085 | | MDRV_VIDEO_START(taitof2_deadconj) |
| 3545 | MDRV_VIDEO_START(taitof2_deadconxj) |
| 4086 | 3546 | MDRV_VIDEO_UPDATE(deadconx) |
| 4087 | 3547 | MACHINE_DRIVER_END |
| 4088 | 3548 | |
| r4499 | r4500 | |
| 4092 | 3552 | /* basic machine hardware */ |
| 4093 | 3553 | MDRV_IMPORT_FROM(taito_f2) |
| 4094 | 3554 | MDRV_CPU_MODIFY("maincpu") |
| 4095 | | MDRV_CPU_PROGRAM_MAP(dinorex_readmem,dinorex_writemem) |
| 3555 | MDRV_CPU_PROGRAM_MAP(dinorex_map,0) |
| 4096 | 3556 | |
| 4097 | 3557 | /* video hardware */ |
| 4098 | 3558 | MDRV_VIDEO_START(taitof2_dinorex) |
| r4499 | r4500 | |
| 4105 | 3565 | /* basic machine hardware */ |
| 4106 | 3566 | MDRV_IMPORT_FROM(taito_f2) |
| 4107 | 3567 | MDRV_CPU_MODIFY("maincpu") |
| 4108 | | MDRV_CPU_PROGRAM_MAP(qjinsei_readmem,qjinsei_writemem) |
| 3568 | MDRV_CPU_PROGRAM_MAP(qjinsei_map,0) |
| 4109 | 3569 | |
| 4110 | 3570 | /* video hardware */ |
| 4111 | 3571 | MDRV_VIDEO_START(taitof2_quiz) |
| r4499 | r4500 | |
| 4118 | 3578 | /* basic machine hardware */ |
| 4119 | 3579 | MDRV_IMPORT_FROM(taito_f2) |
| 4120 | 3580 | MDRV_CPU_MODIFY("maincpu") |
| 4121 | | MDRV_CPU_PROGRAM_MAP(qcrayon_readmem,qcrayon_writemem) |
| 3581 | MDRV_CPU_PROGRAM_MAP(qcrayon_map,0) |
| 4122 | 3582 | |
| 4123 | | MDRV_MACHINE_RESET(qcrayon) |
| 4124 | | |
| 4125 | 3583 | /* video hardware */ |
| 4126 | 3584 | MDRV_VIDEO_START(taitof2_quiz) |
| 4127 | 3585 | MDRV_VIDEO_UPDATE(taitof2_pri) |
| r4499 | r4500 | |
| 4133 | 3591 | /* basic machine hardware */ |
| 4134 | 3592 | MDRV_IMPORT_FROM(taito_f2) |
| 4135 | 3593 | MDRV_CPU_MODIFY("maincpu") |
| 4136 | | MDRV_CPU_PROGRAM_MAP(qcrayon2_readmem,qcrayon2_writemem) |
| 3594 | MDRV_CPU_PROGRAM_MAP(qcrayon2_map,0) |
| 4137 | 3595 | |
| 4138 | | MDRV_MACHINE_RESET(qcrayon) |
| 4139 | | |
| 4140 | 3596 | /* video hardware */ |
| 4141 | 3597 | MDRV_VIDEO_START(taitof2_quiz) |
| 4142 | 3598 | MDRV_VIDEO_UPDATE(taitof2_pri) |
| r4499 | r4500 | |
| 4148 | 3604 | /* basic machine hardware */ |
| 4149 | 3605 | MDRV_IMPORT_FROM(taito_f2) |
| 4150 | 3606 | MDRV_CPU_MODIFY("maincpu") |
| 4151 | | MDRV_CPU_PROGRAM_MAP(driftout_readmem,driftout_writemem) |
| 3607 | MDRV_CPU_PROGRAM_MAP(driftout_map,0) |
| 4152 | 3608 | |
| 4153 | 3609 | /* video hardware */ |
| 4154 | 3610 | MDRV_GFXDECODE(pivot) |
| r4499 | r4500 | |
| 4157 | 3613 | MACHINE_DRIVER_END |
| 4158 | 3614 | |
| 4159 | 3615 | |
| 4160 | | static MACHINE_DRIVER_START( camltrya ) |
| 3616 | static MACHINE_DRIVER_START( cameltrya ) |
| 4161 | 3617 | |
| 4162 | 3618 | /* basic machine hardware */ |
| 4163 | 3619 | MDRV_CPU_ADD("maincpu", M68000,24000000/2) /* verified on pcb */ |
| 4164 | | MDRV_CPU_PROGRAM_MAP(cameltry_readmem,cameltry_writemem) |
| 3620 | MDRV_CPU_PROGRAM_MAP(cameltry_map,0) |
| 4165 | 3621 | MDRV_CPU_VBLANK_INT("screen", taitof2_interrupt) |
| 4166 | 3622 | |
| 4167 | 3623 | MDRV_CPU_ADD("audiocpu", Z80,24000000/4) /* verifed on pcb */ |
| 4168 | | MDRV_CPU_PROGRAM_MAP(camltrya_sound_readmem,camltrya_sound_writemem) |
| 3624 | MDRV_CPU_PROGRAM_MAP(cameltrya_sound_map,0) |
| 4169 | 3625 | |
| 4170 | 3626 | /* video hardware */ |
| 4171 | 3627 | MDRV_SCREEN_ADD("screen", RASTER) |
| r4499 | r4500 | |
| 4202 | 3658 | |
| 4203 | 3659 | /* basic machine hardware */ |
| 4204 | 3660 | MDRV_CPU_ADD("maincpu", M68000,24000000/2) /* 12 MHz */ |
| 4205 | | MDRV_CPU_PROGRAM_MAP(driveout_readmem,driveout_writemem) |
| 3661 | MDRV_CPU_PROGRAM_MAP(driveout_map,0) |
| 4206 | 3662 | MDRV_CPU_VBLANK_INT("screen", taitof2_interrupt) |
| 4207 | 3663 | |
| 4208 | 3664 | MDRV_CPU_ADD("audiocpu", Z80,24000000/6) /* 4 MHz */ |
| 4209 | | MDRV_CPU_PROGRAM_MAP(driveout_sound_readmem,driveout_sound_writemem) |
| 3665 | MDRV_CPU_PROGRAM_MAP(driveout_sound_map,0) |
| 4210 | 3666 | |
| 4211 | 3667 | /* video hardware */ |
| 4212 | 3668 | MDRV_SCREEN_ADD("screen", RASTER) |
| r4499 | r4500 | |
| 4378 | 3834 | /* no Delta-T samples */ |
| 4379 | 3835 | ROM_END |
| 4380 | 3836 | |
| 4381 | | ROM_START( dondokdu ) |
| 3837 | ROM_START( dondokodu ) |
| 4382 | 3838 | ROM_REGION( 0x80000, "maincpu", 0 ) /* 512k for 68000 code */ |
| 4383 | 3839 | ROM_LOAD16_BYTE( "b95-12.bin", 0x00000, 0x20000, CRC(d0fce87a) SHA1(7b346d3b7cbaf0b5447d66a71e815202d796f140) ) |
| 4384 | 3840 | ROM_LOAD16_BYTE( "b95-11-1.bin", 0x00001, 0x20000, CRC(dad40cd3) SHA1(6c07ed3dd609a8743f5851caa4d205bce8db595e) ) |
| r4499 | r4500 | |
| 4404 | 3860 | /* no Delta-T samples */ |
| 4405 | 3861 | ROM_END |
| 4406 | 3862 | |
| 4407 | | ROM_START( dondokdj ) |
| 3863 | ROM_START( dondokodj ) |
| 4408 | 3864 | ROM_REGION( 0x80000, "maincpu", 0 ) /* 512k for 68000 code */ |
| 4409 | 3865 | ROM_LOAD16_BYTE( "b95-12.bin", 0x00000, 0x20000, CRC(d0fce87a) SHA1(7b346d3b7cbaf0b5447d66a71e815202d796f140) ) |
| 4410 | 3866 | ROM_LOAD16_BYTE( "b95-11-1.bin", 0x00001, 0x20000, CRC(dad40cd3) SHA1(6c07ed3dd609a8743f5851caa4d205bce8db595e) ) |
| r4499 | r4500 | |
| 4524 | 3980 | ROM_LOAD( "pal16l8b-c28-11.ic35", 0x0a00, 0x0104, CRC(33414fe8) SHA1(7f497189fd48c6201d1048419eb67153c6cf730c) ) // MDEC 2 |
| 4525 | 3981 | ROM_END |
| 4526 | 3982 | |
| 4527 | | ROM_START( thndfoxu ) /* Thunder Fox */ |
| 3983 | ROM_START( thundfoxu ) /* Thunder Fox */ |
| 4528 | 3984 | ROM_REGION( 0x80000, "maincpu", 0 ) /* 512k for 68000 code */ |
| 4529 | 3985 | ROM_LOAD16_BYTE( "c28-13-1.51", 0x00000, 0x20000, CRC(acb07013) SHA1(5043d1859ae908c00f0c00c7b8e377362d908423) ) |
| 4530 | 3986 | ROM_LOAD16_BYTE( "c28-15-1.40", 0x00001, 0x20000, CRC(874a84e1) SHA1(f2688030faf526bc64bbb06225d3938f423f0f8b) ) |
| r4499 | r4500 | |
| 4554 | 4010 | // Pals: c28-09.25 c28-10.26 c28-11.35 b89-01.19 b89-03.37 b89-04.33 |
| 4555 | 4011 | ROM_END |
| 4556 | 4012 | |
| 4557 | | ROM_START( thndfoxj ) /* Thunder Fox */ |
| 4013 | ROM_START( thundfoxj ) /* Thunder Fox */ |
| 4558 | 4014 | ROM_REGION( 0x80000, "maincpu", 0 ) /* 512k for 68000 code */ |
| 4559 | 4015 | ROM_LOAD16_BYTE( "c28-13-1.51", 0x00000, 0x20000, CRC(acb07013) SHA1(5043d1859ae908c00f0c00c7b8e377362d908423) ) |
| 4560 | 4016 | ROM_LOAD16_BYTE( "c28-12-1.40", 0x00001, 0x20000, CRC(f04db477) SHA1(da66895b8cc79f1776f30d9c204c6907cab935db) ) |
| r4499 | r4500 | |
| 4608 | 4064 | /* no Delta-T samples */ |
| 4609 | 4065 | ROM_END |
| 4610 | 4066 | |
| 4611 | | ROM_START( camltrya ) |
| 4067 | ROM_START( cameltrya ) |
| 4612 | 4068 | ROM_REGION( 0x40000, "maincpu", 0 ) /* 256k for 68000 code */ |
| 4613 | 4069 | ROM_LOAD16_BYTE( "c38-11", 0x00000, 0x20000, CRC(be172da0) SHA1(e4915bf25832175591a014aa1abac5edae09380d) ) |
| 4614 | 4070 | ROM_LOAD16_BYTE( "c38-16", 0x00001, 0x20000, CRC(66ad6164) SHA1(2df22a6a1d6e194a467e6a6c6b6c2fc9f8441852) ) |
| r4499 | r4500 | |
| 4632 | 4088 | ROM_LOAD( "c38-04.bin", 0x000000, 0x020000, CRC(53d330bb) SHA1(22982d889a69aefe482b24ac958ef755fd2c7601) ) |
| 4633 | 4089 | ROM_END |
| 4634 | 4090 | |
| 4635 | | ROM_START( camltrua ) |
| 4091 | ROM_START( cameltryua ) |
| 4636 | 4092 | ROM_REGION( 0x40000, "maincpu", 0 ) /* 256k for 68000 code */ |
| 4637 | 4093 | ROM_LOAD16_BYTE( "c38-11", 0x00000, 0x20000, CRC(be172da0) SHA1(e4915bf25832175591a014aa1abac5edae09380d) ) |
| 4638 | 4094 | ROM_LOAD16_BYTE( "c38-14", 0x00001, 0x20000, CRC(ffa430de) SHA1(a3cdb35151a92ddfa2090c1f8710500925e7ad0c) ) |
| r4499 | r4500 | |
| 4656 | 4112 | ROM_LOAD( "c38-04.bin", 0x000000, 0x020000, CRC(53d330bb) SHA1(22982d889a69aefe482b24ac958ef755fd2c7601) ) |
| 4657 | 4113 | ROM_END |
| 4658 | 4114 | |
| 4659 | | ROM_START( cameltrj ) |
| 4115 | ROM_START( cameltryj ) |
| 4660 | 4116 | ROM_REGION( 0x40000, "maincpu", 0 ) /* 256k for 68000 code */ |
| 4661 | 4117 | ROM_LOAD16_BYTE( "c38-09.bin", 0x00000, 0x20000, CRC(2ae01120) SHA1(6da4155fde0edd76976264f929c5da3c79db5017) ) |
| 4662 | 4118 | ROM_LOAD16_BYTE( "c38-10.bin", 0x00001, 0x20000, CRC(48d8ff56) SHA1(73da47b0f9e67defcd0072b71a3661f2c3534f55) ) |
| r4499 | r4500 | |
| 4942 | 4398 | // Pals c71-16.28 c71-07.27 |
| 4943 | 4399 | ROM_END |
| 4944 | 4400 | |
| 4945 | | ROM_START( gunfronj ) |
| 4401 | ROM_START( gunfrontj ) |
| 4946 | 4402 | ROM_REGION( 0xc0000, "maincpu", 0 ) /* 768k for 68000 code */ |
| 4947 | 4403 | ROM_LOAD16_BYTE( "c71-09.ic42", 0x00000, 0x20000, CRC(10a544a2) SHA1(3b46bbd494b432d36aed3fd4b429cef074050c1d) ) |
| 4948 | 4404 | ROM_LOAD16_BYTE( "c71-08.ic41", 0x00001, 0x20000, CRC(c17dc0a0) SHA1(f84e0d1afb403bb06480e8687558cd320d60099e) ) |
| r4499 | r4500 | |
| 5067 | 4523 | /* no Delta-T samples */ |
| 5068 | 4524 | ROM_END |
| 5069 | 4525 | |
| 5070 | | ROM_START( mjnquesb ) /* Mahjong Quest (No Nudity) */ |
| 4526 | ROM_START( mjnquestb ) /* Mahjong Quest (No Nudity) */ |
| 5071 | 4527 | ROM_REGION( 0x100000, "maincpu", 0 ) /* 256k for 68000 code */ |
| 5072 | 4528 | ROM_LOAD16_BYTE( "c77-09a", 0x000000, 0x020000, CRC(fc17f1c2) SHA1(438b0a780560940b2d3dab42b34dc2bc94a15f80) ) |
| 5073 | 4529 | ROM_LOAD16_BYTE( "c77-08", 0x000001, 0x020000, CRC(4244f775) SHA1(801045d7433684195876e172676b2345827de7cc) ) |
| r4499 | r4500 | |
| 5201 | 4657 | ROM_LOAD16_BYTE( "c83-10.3", 0x00000, 0x20000, CRC(4d185d03) SHA1(ab494c777a0acfe088d3db7c1a0488d40884ea0a) ) |
| 5202 | 4658 | ROM_LOAD16_BYTE( "c83-09.2", 0x00001, 0x20000, CRC(f9892792) SHA1(310d02833c821a34baa0ce537019b8cade6402b7) ) |
| 5203 | 4659 | |
| 5204 | | ROM_REGION16_BE( 0x100000, "user1", 0 ) |
| 4660 | ROM_REGION16_BE( 0x100000, "extra", 0 ) |
| 5205 | 4661 | /* extra ROM mapped at d00000 */ |
| 5206 | 4662 | ROM_LOAD16_WORD_SWAP( "c83-03.10", 0x000000, 0x100000, CRC(eed9acc2) SHA1(baa6a9aa5ed8fbbff7b289693407192b464cb7c7) ) /* data rom */ |
| 5207 | 4663 | |
| r4499 | r4500 | |
| 5374 | 4830 | /* no Delta-T samples */ |
| 5375 | 4831 | ROM_END |
| 5376 | 4832 | |
| 5377 | | ROM_START( pulirulj ) |
| 4833 | ROM_START( pulirulaj ) |
| 5378 | 4834 | ROM_REGION( 0xc0000, "maincpu", 0 ) /* 768k for 68000 code */ |
| 5379 | 4835 | ROM_LOAD16_BYTE( "c98-12.rom", 0x00000, 0x40000, CRC(816d6cde) SHA1(cac583440cca9aa57373f4a6c9a68c5442a5258b) ) |
| 5380 | 4836 | ROM_LOAD16_BYTE( "c98-13.rom", 0x00001, 0x40000, CRC(b7d13d5b) SHA1(f2cac6931c5984d68c2d5303b53c54b5781b3aed) ) |
| r4499 | r4500 | |
| 5524 | 4980 | /* no Delta-T samples */ |
| 5525 | 4981 | ROM_END |
| 5526 | 4982 | |
| 5527 | | ROM_START( deadconj ) |
| 4983 | ROM_START( deadconxj ) |
| 5528 | 4984 | ROM_REGION( 0x100000, "maincpu", 0 ) /* 1024k for 68000 code */ |
| 5529 | 4985 | ROM_LOAD16_BYTE( "d28-06.3", 0x00000, 0x40000, CRC(5b4bff51) SHA1(a589cbc8425add9ed5f2add26f17bb18fe53ca8a) ) |
| 5530 | 4986 | ROM_LOAD16_BYTE( "d28-07.5", 0x00001, 0x40000, CRC(3fb8954c) SHA1(3104c1537f5fda7e5619aacfb48b02e969399a89) ) |
| r4499 | r4500 | |
| 5655 | 5111 | ROM_LOAD16_BYTE( "d55-13", 0x00000, 0x40000, CRC(16afbfc7) SHA1(daf948603c78312aa8fb8e239097939ec89ecc64) ) |
| 5656 | 5112 | ROM_LOAD16_BYTE( "d55-14", 0x00001, 0x40000, CRC(2fb3057f) SHA1(3b107dc69c01ca1b90c78a122336896b89509a3e) ) |
| 5657 | 5113 | |
| 5658 | | ROM_REGION16_BE( 0x100000, "user1", 0 ) |
| 5114 | ROM_REGION16_BE( 0x100000, "extra", 0 ) |
| 5659 | 5115 | /* extra ROM mapped 0x300000 */ |
| 5660 | 5116 | ROM_LOAD16_WORD_SWAP( "d55-03", 0x000000, 0x100000, CRC(4d161e76) SHA1(96189294f91f165423ba585c650ee47fc8165725) ) /* data rom */ |
| 5661 | 5117 | |
| r4499 | r4500 | |
| 5681 | 5137 | ROM_LOAD16_BYTE( "d63-12", 0x00000, 0x40000, CRC(0f445a38) SHA1(cb9212c6c61d7dec7cfa039ebbbabd368dad52c3) ) |
| 5682 | 5138 | ROM_LOAD16_BYTE( "d63-13", 0x00001, 0x40000, CRC(74455752) SHA1(9835eb5ebad8df96abe8f7d5f8e4ff663b38015a) ) |
| 5683 | 5139 | |
| 5684 | | ROM_REGION16_BE( 0x080000, "user1", 0 ) |
| 5140 | ROM_REGION16_BE( 0x080000, "extra", 0 ) |
| 5685 | 5141 | /* extra ROM mapped at 600000 */ |
| 5686 | 5142 | ROM_LOAD16_WORD_SWAP( "d63-01", 0x00000, 0x80000, CRC(872e38b4) SHA1(dbb3728655dee03f6583db976708507c9ac5be16) ) /* data rom */ |
| 5687 | 5143 | |
| r4499 | r4500 | |
| 5812 | 5268 | } |
| 5813 | 5269 | |
| 5814 | 5270 | |
| 5815 | | GAME( 1988, finalb, 0, finalb, finalb, finalb, ROT0, "Taito Corporation Japan", "Final Blow (World)", 0 ) |
| 5816 | | GAME( 1988, finalbj, finalb, finalb, finalbj, finalb, ROT0, "Taito Corporation", "Final Blow (Japan)", 0 ) |
| 5817 | | GAME( 1988, finalbu, finalb, finalb, finalbj, finalb, ROT0, "Taito America Corporation", "Final Blow (US)", 0 ) |
| 5818 | | GAME( 1989, dondokod, 0, dondokod, dondokod, 0, ROT0, "Taito Corporation Japan", "Don Doko Don (World)", 0 ) |
| 5819 | | GAME( 1989, dondokdu, dondokod, dondokod, dondokdu, 0, ROT0, "Taito America Corporation", "Don Doko Don (US)", 0 ) |
| 5820 | | GAME( 1989, dondokdj, dondokod, dondokod, dondokdj, 0, ROT0, "Taito Corporation", "Don Doko Don (Japan)", 0 ) |
| 5821 | | GAME( 1989, megab, 0, megab, megab, 0, ROT0, "Taito Corporation Japan", "Mega Blast (World)", 0 ) |
| 5822 | | GAME( 1989, megabj, megab, megab, megabj, 0, ROT0, "Taito Corporation", "Mega Blast (Japan)", 0 ) |
| 5823 | | GAME( 1990, thundfox, 0, thundfox, thundfox, 0, ROT0, "Taito Corporation Japan", "Thunder Fox (World)", 0 ) |
| 5824 | | GAME( 1990, thndfoxu, thundfox, thundfox, thndfoxu, 0, ROT0, "Taito America Corporation", "Thunder Fox (US)", 0 ) |
| 5825 | | GAME( 1990, thndfoxj, thundfox, thundfox, thndfoxj, 0, ROT0, "Taito Corporation", "Thunder Fox (Japan)", 0 ) |
| 5826 | | GAME( 1989, cameltry, 0, cameltry, cameltry, 0, ROT0, "Taito America Corporation", "Cameltry (US, YM2610)", 0 ) |
| 5827 | | GAME( 1989, camltrya, cameltry, camltrya, cameltry, 0, ROT0, "Taito America Corporation", "Cameltry (World, YM2203 + M6295)", 0 ) |
| 5828 | | GAME( 1989, camltrua, cameltry, camltrya, cameltry, 0, ROT0, "Taito America Corporation", "Cameltry (US, YM2203 + M6295)", 0 ) |
| 5829 | | GAME( 1989, cameltrj, cameltry, cameltry, cameltrj, 0, ROT0, "Taito Corporation", "Cameltry (Japan, YM2610)", 0 ) |
| 5830 | | GAME( 1990, qtorimon, 0, qtorimon, qtorimon, 0, ROT0, "Taito Corporation", "Quiz Torimonochou (Japan)", 0 ) |
| 5831 | | GAME( 1990, liquidk, 0, liquidk, liquidk, 0, ROT0, "Taito Corporation Japan", "Liquid Kids (World)", 0 ) |
| 5832 | | GAME( 1990, liquidku, liquidk, liquidk, liquidku, 0, ROT0, "Taito America Corporation", "Liquid Kids (US)", 0 ) |
| 5833 | | GAME( 1990, mizubaku, liquidk, liquidk, mizubaku, 0, ROT0, "Taito Corporation", "Mizubaku Daibouken (Japan)", 0 ) |
| 5834 | | GAME( 1990, quizhq, 0, quizhq, quizhq, 0, ROT0, "Taito Corporation", "Quiz H.Q. (Japan)", 0 ) |
| 5835 | | GAME( 1990, ssi, 0, ssi, ssi, 0, ROT270, "Taito Corporation Japan", "Super Space Invaders '91 (World)", 0 ) |
| 5836 | | GAME( 1990, majest12, ssi, ssi, majest12, 0, ROT270, "Taito Corporation", "Majestic Twelve - The Space Invaders Part IV (Japan)", 0 ) |
| 5837 | | GAME( 1990, gunfront, 0, gunfront, gunfront, 0, ROT270, "Taito Corporation Japan", "Gun & Frontier (World)", 0 ) |
| 5838 | | GAME( 1990, gunfronj, gunfront, gunfront, gunfronj, 0, ROT270, "Taito Corporation", "Gun Frontier (Japan)", 0 ) |
| 5839 | | GAME( 1990, growl, 0, growl, growl, 0, ROT0, "Taito Corporation Japan", "Growl (World)", 0 ) |
| 5840 | | GAME( 1990, growlu, growl, growl, growlu, 0, ROT0, "Taito America Corporation", "Growl (US)", 0 ) |
| 5841 | | GAME( 1990, runark, growl, growl, runark, 0, ROT0, "Taito Corporation", "Runark (Japan)", 0 ) |
| 5842 | | GAME( 1990, mjnquest, 0, mjnquest, mjnquest, mjnquest, ROT0, "Taito Corporation", "Mahjong Quest (Japan)", 0 ) |
| 5843 | | GAME( 1990, mjnquesb, mjnquest, mjnquest, mjnquest, mjnquest, ROT0, "Taito Corporation", "Mahjong Quest (No Nudity)", 0 ) |
| 5844 | | GAME( 1990, footchmp, 0, footchmp, footchmp, 0, ROT0, "Taito Corporation Japan", "Football Champ (World)", 0 ) |
| 5845 | | GAME( 1990, hthero, footchmp, hthero, hthero, 0, ROT0, "Taito Corporation", "Hat Trick Hero (Japan)", 0 ) |
| 5846 | | GAME( 1992, euroch92, footchmp, footchmp, footchmp, 0, ROT0, "Taito Corporation Japan", "Euro Champ '92 (World)", 0 ) |
| 5847 | | GAME( 1990, koshien, 0, koshien, koshien, 0, ROT0, "Taito Corporation", "Ah Eikou no Koshien (Japan)", 0 ) |
| 5848 | | GAME( 1990, yuyugogo, 0, yuyugogo, yuyugogo, 0, ROT0, "Taito Corporation", "Yuuyu no Quiz de GO!GO! (Japan)", 0 ) |
| 5849 | | GAME( 1990, ninjak, 0, ninjak, ninjak, 0, ROT0, "Taito Corporation Japan", "The Ninja Kids (World)", 0 ) |
| 5850 | | GAME( 1990, ninjakj, ninjak, ninjak, ninjakj, 0, ROT0, "Taito Corporation", "The Ninja Kids (Japan)", 0 ) |
| 5851 | | GAME( 1990, ninjaku, ninjak, ninjak, ninjaku, 0, ROT0, "Taito America Corporation", "The Ninja Kids (US)", 0 ) |
| 5852 | | GAME( 1991, solfigtr, 0, solfigtr, solfigtr, 0, ROT0, "Taito Corporation Japan", "Solitary Fighter (World)", 0 ) |
| 5853 | | GAME( 1991, qzquest, 0, qzquest , qzquest, 0, ROT0, "Taito Corporation", "Quiz Quest - Hime to Yuusha no Monogatari (Japan)", 0 ) |
| 5854 | | GAME( 1991, pulirula, 0, pulirula, pulirula, 0, ROT0, "Taito Corporation Japan", "PuLiRuLa (World)", 0 ) |
| 5855 | | GAME( 1991, pulirulj, pulirula, pulirula, pulirulj, 0, ROT0, "Taito Corporation", "PuLiRuLa (Japan)", 0 ) |
| 5856 | | GAME( 1991, metalb, 0, metalb, metalb, 0, ROT0, "Taito Corporation Japan", "Metal Black (World)", 0 ) |
| 5857 | | GAME( 1991, metalbj, metalb, metalb, metalbj, 0, ROT0, "Taito Corporation", "Metal Black (Japan)", 0 ) |
| 5858 | | GAME( 1991, qzchikyu, 0, qzchikyu, qzchikyu, 0, ROT0, "Taito Corporation", "Quiz Chikyu Bouei Gun (Japan)", 0 ) |
| 5859 | | GAME( 1992, yesnoj, 0, yesnoj, yesnoj, 0, ROT0, "Taito Corporation", "Yes/No Sinri Tokimeki Chart", 0 ) |
| 5860 | | GAME( 1992, deadconx, 0, deadconx, deadconx, 0, ROT0, "Taito Corporation Japan", "Dead Connection (World)", 0 ) |
| 5861 | | GAME( 1992, deadconj, deadconx, deadconj, deadconj, 0, ROT0, "Taito Corporation", "Dead Connection (Japan)", 0 ) |
| 5862 | | GAME( 1992, dinorex, 0, dinorex, dinorex, 0, ROT0, "Taito Corporation Japan", "Dino Rex (World)", 0 ) |
| 5863 | | GAME( 1992, dinorexj, dinorex, dinorex, dinorexj, 0, ROT0, "Taito Corporation", "Dino Rex (Japan)", 0 ) |
| 5864 | | GAME( 1992, dinorexu, dinorex, dinorex, dinorex, 0, ROT0, "Taito America Corporation", "Dino Rex (US)", 0 ) |
| 5865 | | GAME( 1992, qjinsei, 0, qjinsei, qjinsei, 0, ROT0, "Taito Corporation", "Quiz Jinsei Gekijoh (Japan)", 0 ) |
| 5866 | | GAME( 1993, qcrayon, 0, qcrayon, qcrayon, 0, ROT0, "Taito Corporation", "Quiz Crayon Shinchan (Japan)", 0 ) |
| 5867 | | GAME( 1993, qcrayon2, 0, qcrayon2, qcrayon2, 0, ROT0, "Taito Corporation", "Crayon Shinchan Orato Asobo (Japan)", 0 ) |
| 5868 | | GAME( 1991, driftout, 0, driftout, driftout, 0, ROT270, "Visco", "Drift Out (Japan)", 0 ) |
| 5869 | | GAME( 1991, driveout, driftout, driveout, driftout, driveout, ROT270, "bootleg", "Drive Out", 0 ) |
| 5271 | GAME( 1988, finalb, 0, finalb, finalb, finalb, ROT0, "Taito Corporation Japan", "Final Blow (World)", 0 ) |
| 5272 | GAME( 1988, finalbj, finalb, finalb, finalbj, finalb, ROT0, "Taito Corporation", "Final Blow (Japan)", 0 ) |
| 5273 | GAME( 1988, finalbu, finalb, finalb, finalbj, finalb, ROT0, "Taito America Corporation", "Final Blow (US)", 0 ) |
| 5274 | GAME( 1989, dondokod, 0, dondokod, dondokod, 0, ROT0, "Taito Corporation Japan", "Don Doko Don (World)", 0 ) |
| 5275 | GAME( 1989, dondokodu, dondokod, dondokod, dondokodu,0, ROT0, "Taito America Corporation", "Don Doko Don (US)", 0 ) |
| 5276 | GAME( 1989, dondokodj, dondokod, dondokod, dondokodj,0, ROT0, "Taito Corporation", "Don Doko Don (Japan)", 0 ) |
| 5277 | GAME( 1989, megab, 0, megab, megab, 0, ROT0, "Taito Corporation Japan", "Mega Blast (World)", 0 ) |
| 5278 | GAME( 1989, megabj, megab, megab, megabj, 0, ROT0, "Taito Corporation", "Mega Blast (Japan)", 0 ) |
| 5279 | GAME( 1990, thundfox, 0, thundfox, thundfox, 0, ROT0, "Taito Corporation Japan", "Thunder Fox (World)", 0 ) |
| 5280 | GAME( 1990, thundfoxu, thundfox, thundfox, thundfoxu,0, ROT0, "Taito America Corporation", "Thunder Fox (US)", 0 ) |
| 5281 | GAME( 1990, thundfoxj, thundfox, thundfox, thundfoxj,0, ROT0, "Taito Corporation", "Thunder Fox (Japan)", 0 ) |
| 5282 | GAME( 1989, cameltry, 0, cameltry, cameltry, 0, ROT0, "Taito America Corporation", "Cameltry (US, YM2610)", 0 ) |
| 5283 | GAME( 1989, cameltrya, cameltry, cameltrya,cameltry, 0, ROT0, "Taito America Corporation", "Cameltry (World, YM2203 + M6295)", 0 ) |
| 5284 | GAME( 1989, cameltryua,cameltry, cameltrya,cameltry, 0, ROT0, "Taito America Corporation", "Cameltry (US, YM2203 + M6295)", 0 ) |
| 5285 | GAME( 1989, cameltryj, cameltry, cameltry, cameltryj,0, ROT0, "Taito Corporation", "Cameltry (Japan, YM2610)", 0 ) |
| 5286 | GAME( 1990, qtorimon, 0, qtorimon, qtorimon, 0, ROT0, "Taito Corporation", "Quiz Torimonochou (Japan)", 0 ) |
| 5287 | GAME( 1990, liquidk, 0, liquidk, liquidk, 0, ROT0, "Taito Corporation Japan", "Liquid Kids (World)", 0 ) |
| 5288 | GAME( 1990, liquidku, liquidk, liquidk, liquidku, 0, ROT0, "Taito America Corporation", "Liquid Kids (US)", 0 ) |
| 5289 | GAME( 1990, mizubaku, liquidk, liquidk, mizubaku, 0, ROT0, "Taito Corporation", "Mizubaku Daibouken (Japan)", 0 ) |
| 5290 | GAME( 1990, quizhq, 0, quizhq, quizhq, 0, ROT0, "Taito Corporation", "Quiz H.Q. (Japan)", 0 ) |
| 5291 | GAME( 1990, ssi, 0, ssi, ssi, 0, ROT270, "Taito Corporation Japan", "Super Space Invaders '91 (World)", 0 ) |
| 5292 | GAME( 1990, majest12, ssi, ssi, majest12, 0, ROT270, "Taito Corporation", "Majestic Twelve - The Space Invaders Part IV (Japan)", 0 ) |
| 5293 | GAME( 1990, gunfront, 0, gunfront, gunfront, 0, ROT270, "Taito Corporation Japan", "Gun & Frontier (World)", 0 ) |
| 5294 | GAME( 1990, gunfrontj, gunfront, gunfront, gunfrontj,0, ROT270, "Taito Corporation", "Gun Frontier (Japan)", 0 ) |
| 5295 | GAME( 1990, growl, 0, growl, growl, 0, ROT0, "Taito Corporation Japan", "Growl (World)", 0 ) |
| 5296 | GAME( 1990, growlu, growl, growl, growlu, 0, ROT0, "Taito America Corporation", "Growl (US)", 0 ) |
| 5297 | GAME( 1990, runark, growl, growl, runark, 0, ROT0, "Taito Corporation", "Runark (Japan)", 0 ) |
| 5298 | GAME( 1990, mjnquest, 0, mjnquest, mjnquest, mjnquest, ROT0, "Taito Corporation", "Mahjong Quest (Japan)", 0 ) |
| 5299 | GAME( 1990, mjnquestb, mjnquest, mjnquest, mjnquest, mjnquest, ROT0, "Taito Corporation", "Mahjong Quest (No Nudity)", 0 ) |
| 5300 | GAME( 1990, footchmp, 0, footchmp, footchmp, 0, ROT0, "Taito Corporation Japan", "Football Champ (World)", 0 ) |
| 5301 | GAME( 1990, hthero, footchmp, hthero, hthero, 0, ROT0, "Taito Corporation", "Hat Trick Hero (Japan)", 0 ) |
| 5302 | GAME( 1992, euroch92, footchmp, footchmp, footchmp, 0, ROT0, "Taito Corporation Japan", "Euro Champ '92 (World)", 0 ) |
| 5303 | GAME( 1990, koshien, 0, koshien, koshien, 0, ROT0, "Taito Corporation", "Ah Eikou no Koshien (Japan)", 0 ) |
| 5304 | GAME( 1990, yuyugogo, 0, yuyugogo, yuyugogo, 0, ROT0, "Taito Corporation", "Yuuyu no Quiz de GO!GO! (Japan)", 0 ) |
| 5305 | GAME( 1990, ninjak, 0, ninjak, ninjak, 0, ROT0, "Taito Corporation Japan", "The Ninja Kids (World)", 0 ) |
| 5306 | GAME( 1990, ninjakj, ninjak, ninjak, ninjakj, 0, ROT0, "Taito Corporation", "The Ninja Kids (Japan)", 0 ) |
| 5307 | GAME( 1990, ninjaku, ninjak, ninjak, ninjaku, 0, ROT0, "Taito America Corporation", "The Ninja Kids (US)", 0 ) |
| 5308 | GAME( 1991, solfigtr, 0, solfigtr, solfigtr, 0, ROT0, "Taito Corporation Japan", "Solitary Fighter (World)", 0 ) |
| 5309 | GAME( 1991, qzquest, 0, qzquest , qzquest, 0, ROT0, "Taito Corporation", "Quiz Quest - Hime to Yuusha no Monogatari (Japan)", 0 ) |
| 5310 | GAME( 1991, pulirula, 0, pulirula, pulirula, 0, ROT0, "Taito Corporation Japan", "PuLiRuLa (World)", 0 ) |
| 5311 | GAME( 1991, pulirulaj, pulirula, pulirula, pulirulaj,0, ROT0, "Taito Corporation", "PuLiRuLa (Japan)", 0 ) |
| 5312 | GAME( 1991, metalb, 0, metalb, metalb, 0, ROT0, "Taito Corporation Japan", "Metal Black (World)", 0 ) |
| 5313 | GAME( 1991, metalbj, metalb, metalb, metalbj, 0, ROT0, "Taito Corporation", "Metal Black (Japan)", 0 ) |
| 5314 | GAME( 1991, qzchikyu, 0, qzchikyu, qzchikyu, 0, ROT0, "Taito Corporation", "Quiz Chikyu Bouei Gun (Japan)", 0 ) |
| 5315 | GAME( 1992, yesnoj, 0, yesnoj, yesnoj, 0, ROT0, "Taito Corporation", "Yes/No Sinri Tokimeki Chart", 0 ) |
| 5316 | GAME( 1992, deadconx, 0, deadconx, deadconx, 0, ROT0, "Taito Corporation Japan", "Dead Connection (World)", 0 ) |
| 5317 | GAME( 1992, deadconxj, deadconx, deadconxj,deadconxj,0, ROT0, "Taito Corporation", "Dead Connection (Japan)", 0 ) |
| 5318 | GAME( 1992, dinorex, 0, dinorex, dinorex, 0, ROT0, "Taito Corporation Japan", "Dino Rex (World)", 0 ) |
| 5319 | GAME( 1992, dinorexj, dinorex, dinorex, dinorexj, 0, ROT0, "Taito Corporation", "Dino Rex (Japan)", 0 ) |
| 5320 | GAME( 1992, dinorexu, dinorex, dinorex, dinorex, 0, ROT0, "Taito America Corporation", "Dino Rex (US)", 0 ) |
| 5321 | GAME( 1992, qjinsei, 0, qjinsei, qjinsei, 0, ROT0, "Taito Corporation", "Quiz Jinsei Gekijoh (Japan)", 0 ) |
| 5322 | GAME( 1993, qcrayon, 0, qcrayon, qcrayon, 0, ROT0, "Taito Corporation", "Quiz Crayon Shinchan (Japan)", 0 ) |
| 5323 | GAME( 1993, qcrayon2, 0, qcrayon2, qcrayon2, 0, ROT0, "Taito Corporation", "Crayon Shinchan Orato Asobo (Japan)", 0 ) |
| 5324 | GAME( 1991, driftout, 0, driftout, driftout, 0, ROT270, "Visco", "Drift Out (Japan)", 0 ) |
| 5325 | GAME( 1991, driveout, driftout, driveout, driftout, driveout, ROT270, "bootleg", "Drive Out", 0 ) |
src/mame/drivers/taito_l.c
| r4499 | r4500 | |
| 23 | 23 | Notes: |
| 24 | 24 | - the system uses RAM based characters, which aren't really supported by the |
| 25 | 25 | TileMap system, so we have to tilemap_mark_all_tiles_dirty() to compensate |
| 26 | | - kurikina has some debug dip switches (invulnerability, slow motion) so might |
| 26 | - kurikinta has some debug dip switches (invulnerability, slow motion) so might |
| 27 | 27 | be a prototype. It also doesn't have service mode (or has it disabled). |
| 28 | 28 | |
| 29 | 29 | TODO: |
| r4499 | r4500 | |
| 637 | 637 | |
| 638 | 638 | |
| 639 | 639 | |
| 640 | | #define COMMON_BANKS_READ \ |
| 641 | | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) \ |
| 642 | | AM_RANGE(0x6000, 0x7fff) AM_READ(SMH_BANK1) \ |
| 643 | | AM_RANGE(0xc000, 0xcfff) AM_READ(SMH_BANK2) \ |
| 644 | | AM_RANGE(0xd000, 0xdfff) AM_READ(SMH_BANK3) \ |
| 645 | | AM_RANGE(0xe000, 0xefff) AM_READ(SMH_BANK4) \ |
| 646 | | AM_RANGE(0xf000, 0xfdff) AM_READ(SMH_BANK5) \ |
| 647 | | AM_RANGE(0xfe00, 0xfe03) AM_READ(taitol_bankc_r) \ |
| 648 | | AM_RANGE(0xfe04, 0xfe04) AM_READ(taitol_control_r) \ |
| 649 | | AM_RANGE(0xff00, 0xff02) AM_READ(irq_adr_r) \ |
| 650 | | AM_RANGE(0xff03, 0xff03) AM_READ(irq_enable_r) \ |
| 651 | | AM_RANGE(0xff04, 0xff07) AM_READ(rambankswitch_r) \ |
| 652 | | AM_RANGE(0xff08, 0xff08) AM_READ(rombankswitch_r) |
| 640 | #define COMMON_BANKS_MAP \ |
| 641 | AM_RANGE(0x0000, 0x5fff) AM_ROM \ |
| 642 | AM_RANGE(0x6000, 0x7fff) AM_ROMBANK(1) \ |
| 643 | AM_RANGE(0xc000, 0xcfff) AM_ROMBANK(2) AM_WRITE(bank0_w) \ |
| 644 | AM_RANGE(0xd000, 0xdfff) AM_ROMBANK(3) AM_WRITE(bank1_w) \ |
| 645 | AM_RANGE(0xe000, 0xefff) AM_ROMBANK(4) AM_WRITE(bank2_w) \ |
| 646 | AM_RANGE(0xf000, 0xfdff) AM_ROMBANK(5) AM_WRITE(bank3_w) \ |
| 647 | AM_RANGE(0xfe00, 0xfe03) AM_READWRITE(taitol_bankc_r, taitol_bankc_w) \ |
| 648 | AM_RANGE(0xfe04, 0xfe04) AM_READWRITE(taitol_control_r, taitol_control_w) \ |
| 649 | AM_RANGE(0xff00, 0xff02) AM_READWRITE(irq_adr_r, irq_adr_w) \ |
| 650 | AM_RANGE(0xff03, 0xff03) AM_READWRITE(irq_enable_r, irq_enable_w) \ |
| 651 | AM_RANGE(0xff04, 0xff07) AM_READWRITE(rambankswitch_r, rambankswitch_w) \ |
| 652 | AM_RANGE(0xff08, 0xff08) AM_READWRITE(rombankswitch_r, rombankswitch_w) |
| 653 | 653 | |
| 654 | | #define COMMON_BANKS_WRITE \ |
| 655 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) \ |
| 656 | | AM_RANGE(0xc000, 0xcfff) AM_WRITE(bank0_w) \ |
| 657 | | AM_RANGE(0xd000, 0xdfff) AM_WRITE(bank1_w) \ |
| 658 | | AM_RANGE(0xe000, 0xefff) AM_WRITE(bank2_w) \ |
| 659 | | AM_RANGE(0xf000, 0xfdff) AM_WRITE(bank3_w) \ |
| 660 | | AM_RANGE(0xfe00, 0xfe03) AM_WRITE(taitol_bankc_w) \ |
| 661 | | AM_RANGE(0xfe04, 0xfe04) AM_WRITE(taitol_control_w) \ |
| 662 | | AM_RANGE(0xff00, 0xff02) AM_WRITE(irq_adr_w) \ |
| 663 | | AM_RANGE(0xff03, 0xff03) AM_WRITE(irq_enable_w) \ |
| 664 | | AM_RANGE(0xff04, 0xff07) AM_WRITE(rambankswitch_w) \ |
| 665 | | AM_RANGE(0xff08, 0xff08) AM_WRITE(rombankswitch_w) |
| 654 | #define COMMON_SINGLE_MAP \ |
| 655 | AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE("ym", extport_select_and_ym2203_r, ym2203_w) \ |
| 656 | AM_RANGE(0x8000, 0x9fff) AM_RAM |
| 666 | 657 | |
| 667 | | #define COMMON_SINGLE_READ \ |
| 668 | | AM_RANGE(0xa000, 0xa003) AM_DEVREAD("ym", extport_select_and_ym2203_r) \ |
| 669 | | AM_RANGE(0x8000, 0x9fff) AM_READ(SMH_RAM) |
| 670 | 658 | |
| 671 | | #define COMMON_SINGLE_WRITE \ |
| 672 | | AM_RANGE(0xa000, 0xa001) AM_DEVWRITE("ym", ym2203_w) \ |
| 673 | | AM_RANGE(0x8000, 0x9fff) AM_WRITE(SMH_RAM) |
| 674 | 659 | |
| 675 | | |
| 676 | | |
| 677 | | static ADDRESS_MAP_START( fhawk_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 678 | | COMMON_BANKS_READ |
| 679 | | AM_RANGE(0x8000, 0x9fff) AM_READ(SMH_RAM) |
| 680 | | AM_RANGE(0xa000, 0xbfff) AM_READ(SMH_RAM) |
| 660 | static ADDRESS_MAP_START( fhawk_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 661 | COMMON_BANKS_MAP |
| 662 | AM_RANGE(0x8000, 0x9fff) AM_RAM AM_BASE(&shared_ram) |
| 663 | AM_RANGE(0xa000, 0xbfff) AM_RAM |
| 681 | 664 | ADDRESS_MAP_END |
| 682 | 665 | |
| 683 | | static ADDRESS_MAP_START( fhawk_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 684 | | COMMON_BANKS_WRITE |
| 685 | | AM_RANGE(0x8000, 0x9fff) AM_WRITE(SMH_RAM) AM_BASE(&shared_ram) |
| 686 | | AM_RANGE(0xa000, 0xbfff) AM_WRITE(SMH_RAM) |
| 687 | | ADDRESS_MAP_END |
| 688 | | |
| 689 | | static ADDRESS_MAP_START( fhawk_2_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 690 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 691 | | AM_RANGE(0x8000, 0xbfff) AM_READ(SMH_BANK6) |
| 692 | | AM_RANGE(0xc800, 0xc800) AM_READNOP |
| 693 | | AM_RANGE(0xc801, 0xc801) AM_READ(taitosound_comm_r) |
| 694 | | AM_RANGE(0xe000, 0xffff) AM_READ(shared_r) |
| 695 | | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("DSWA") |
| 666 | static ADDRESS_MAP_START( fhawk_2_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 667 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 668 | AM_RANGE(0x8000, 0xbfff) AM_ROMBANK(6) |
| 669 | AM_RANGE(0xc000, 0xc000) AM_WRITE(rombank2switch_w) |
| 670 | AM_RANGE(0xc800, 0xc800) AM_READNOP AM_WRITE(taitosound_port_w) |
| 671 | AM_RANGE(0xc801, 0xc801) AM_READWRITE(taitosound_comm_r, taitosound_comm_w) |
| 672 | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("DSWA") AM_WRITENOP // Direct copy of input port 0 |
| 696 | 673 | AM_RANGE(0xd001, 0xd001) AM_READ_PORT("DSWB") |
| 697 | 674 | AM_RANGE(0xd002, 0xd002) AM_READ_PORT("IN0") |
| 698 | 675 | AM_RANGE(0xd003, 0xd003) AM_READ_PORT("IN1") |
| 699 | | AM_RANGE(0xd007, 0xd007) AM_READ_PORT("IN2") |
| 700 | | ADDRESS_MAP_END |
| 701 | | |
| 702 | | static ADDRESS_MAP_START( fhawk_2_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 703 | | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) |
| 704 | | AM_RANGE(0xc000, 0xc000) AM_WRITE(rombank2switch_w) |
| 705 | | AM_RANGE(0xc800, 0xc800) AM_WRITE(taitosound_port_w) |
| 706 | | AM_RANGE(0xc801, 0xc801) AM_WRITE(taitosound_comm_w) |
| 707 | | AM_RANGE(0xd000, 0xd000) AM_WRITENOP // Direct copy of input port 0 |
| 708 | 676 | AM_RANGE(0xd004, 0xd004) AM_WRITE(control2_w) |
| 709 | 677 | AM_RANGE(0xd005, 0xd006) AM_WRITENOP // Always 0 |
| 710 | | AM_RANGE(0xe000, 0xffff) AM_WRITE(shared_w) |
| 678 | AM_RANGE(0xd007, 0xd007) AM_READ_PORT("IN2") |
| 679 | AM_RANGE(0xe000, 0xffff) AM_READWRITE(shared_r, shared_w) |
| 711 | 680 | ADDRESS_MAP_END |
| 712 | 681 | |
| 713 | | static ADDRESS_MAP_START( fhawk_3_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 714 | | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 715 | | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK7) |
| 716 | | AM_RANGE(0x8000, 0x9fff) AM_READ(SMH_RAM) |
| 717 | | AM_RANGE(0xe000, 0xe000) AM_READNOP |
| 718 | | AM_RANGE(0xe001, 0xe001) AM_READ(taitosound_slave_comm_r) |
| 719 | | AM_RANGE(0xf000, 0xf001) AM_DEVREAD("ym", ym2203_r) |
| 682 | static ADDRESS_MAP_START( fhawk_3_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 683 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 684 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(7) |
| 685 | AM_RANGE(0x8000, 0x9fff) AM_RAM |
| 686 | AM_RANGE(0xe000, 0xe000) AM_READNOP AM_WRITE(taitosound_slave_port_w) |
| 687 | AM_RANGE(0xe001, 0xe001) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) |
| 688 | AM_RANGE(0xf000, 0xf001) AM_DEVREADWRITE("ym", ym2203_r, ym2203_w) |
| 720 | 689 | ADDRESS_MAP_END |
| 721 | 690 | |
| 722 | | static ADDRESS_MAP_START( fhawk_3_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 723 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 724 | | AM_RANGE(0x8000, 0x9fff) AM_WRITE(SMH_RAM) |
| 725 | | AM_RANGE(0xe000, 0xe000) AM_WRITE(taitosound_slave_port_w) |
| 726 | | AM_RANGE(0xe001, 0xe001) AM_WRITE(taitosound_slave_comm_w) |
| 727 | | AM_RANGE(0xf000, 0xf001) AM_DEVWRITE("ym", ym2203_w) |
| 728 | | ADDRESS_MAP_END |
| 729 | 691 | |
| 730 | | static ADDRESS_MAP_START( raimais_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 731 | | COMMON_BANKS_READ |
| 732 | | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) |
| 733 | | AM_RANGE(0x8800, 0x8800) AM_READ(mux_r) |
| 734 | | AM_RANGE(0x8801, 0x8801) AM_READNOP // Watchdog or interrupt ack (value ignored) |
| 735 | | AM_RANGE(0x8c00, 0x8c00) AM_READNOP |
| 736 | | AM_RANGE(0x8c01, 0x8c01) AM_READ(taitosound_comm_r) |
| 737 | | AM_RANGE(0xa000, 0xbfff) AM_READ(SMH_RAM) |
| 692 | static ADDRESS_MAP_START( raimais_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 693 | COMMON_BANKS_MAP |
| 694 | AM_RANGE(0x8000, 0x87ff) AM_RAM AM_BASE(&shared_ram) |
| 695 | AM_RANGE(0x8800, 0x8800) AM_READWRITE(mux_r, mux_w) |
| 696 | AM_RANGE(0x8801, 0x8801) AM_WRITE(mux_ctrl_w) AM_READNOP // Watchdog or interrupt ack (value ignored) |
| 697 | AM_RANGE(0x8c00, 0x8c00) AM_READNOP AM_WRITE(taitosound_port_w) |
| 698 | AM_RANGE(0x8c01, 0x8c01) AM_READWRITE(taitosound_comm_r, taitosound_comm_w) |
| 699 | AM_RANGE(0xa000, 0xbfff) AM_RAM |
| 738 | 700 | ADDRESS_MAP_END |
| 739 | | static ADDRESS_MAP_START( raimais_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 740 | | COMMON_BANKS_WRITE |
| 741 | | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) AM_BASE(&shared_ram) |
| 742 | | AM_RANGE(0x8800, 0x8800) AM_WRITE(mux_w) |
| 743 | | AM_RANGE(0x8801, 0x8801) AM_WRITE(mux_ctrl_w) |
| 744 | | AM_RANGE(0x8c00, 0x8c00) AM_WRITE(taitosound_port_w) |
| 745 | | AM_RANGE(0x8c01, 0x8c01) AM_WRITE(taitosound_comm_w) |
| 746 | | AM_RANGE(0xa000, 0xbfff) AM_WRITE(SMH_RAM) |
| 747 | | ADDRESS_MAP_END |
| 748 | 701 | |
| 749 | | static ADDRESS_MAP_START( raimais_2_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 750 | | AM_RANGE(0x0000, 0xbfff) AM_READ(SMH_ROM) |
| 751 | | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM) |
| 752 | | AM_RANGE(0xe000, 0xe7ff) AM_READ(shared_r) |
| 702 | static ADDRESS_MAP_START( raimais_2_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 703 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 704 | AM_RANGE(0xc000, 0xdfff) AM_RAM |
| 705 | AM_RANGE(0xe000, 0xe7ff) AM_READWRITE(shared_r, shared_w) |
| 753 | 706 | ADDRESS_MAP_END |
| 754 | 707 | |
| 755 | | static ADDRESS_MAP_START( raimais_2_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 756 | | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) |
| 757 | | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_RAM) |
| 758 | | AM_RANGE(0xe000, 0xe7ff) AM_WRITE(shared_w) |
| 759 | | ADDRESS_MAP_END |
| 760 | 708 | |
| 761 | | |
| 762 | | static ADDRESS_MAP_START( raimais_3_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 763 | | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 764 | | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK7) |
| 765 | | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM) |
| 766 | | AM_RANGE(0xe000, 0xe003) AM_DEVREAD("ym", ym2610_r) |
| 767 | | AM_RANGE(0xe200, 0xe200) AM_READNOP |
| 768 | | AM_RANGE(0xe201, 0xe201) AM_READ(taitosound_slave_comm_r) |
| 769 | | ADDRESS_MAP_END |
| 770 | | |
| 771 | 709 | static WRITE8_HANDLER( sound_bankswitch_w ) |
| 772 | 710 | { |
| 773 | 711 | UINT8 *RAM = memory_region(space->machine, "audiocpu"); |
| r4499 | r4500 | |
| 776 | 714 | memory_set_bankptr (space->machine, 7, &RAM [0x10000 + (banknum * 0x4000)]); |
| 777 | 715 | } |
| 778 | 716 | |
| 779 | | static ADDRESS_MAP_START( raimais_3_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 780 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 781 | | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_RAM) |
| 782 | | AM_RANGE(0xe000, 0xe003) AM_DEVWRITE("ym", ym2610_w) |
| 783 | | AM_RANGE(0xe200, 0xe200) AM_WRITE(taitosound_slave_port_w) |
| 784 | | AM_RANGE(0xe201, 0xe201) AM_WRITE(taitosound_slave_comm_w) |
| 717 | static ADDRESS_MAP_START( raimais_3_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 718 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 719 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(7) |
| 720 | AM_RANGE(0xc000, 0xdfff) AM_RAM |
| 721 | AM_RANGE(0xe000, 0xe003) AM_DEVREADWRITE("ym", ym2610_r, ym2610_w) |
| 722 | AM_RANGE(0xe200, 0xe200) AM_READNOP AM_WRITE(taitosound_slave_port_w) |
| 723 | AM_RANGE(0xe201, 0xe201) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) |
| 785 | 724 | AM_RANGE(0xe400, 0xe403) AM_WRITENOP /* pan */ |
| 786 | 725 | AM_RANGE(0xe600, 0xe600) AM_WRITENOP /* ? */ |
| 787 | 726 | AM_RANGE(0xee00, 0xee00) AM_WRITENOP /* ? */ |
| r4499 | r4500 | |
| 790 | 729 | ADDRESS_MAP_END |
| 791 | 730 | |
| 792 | 731 | |
| 793 | | static ADDRESS_MAP_START( champwr_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 794 | | COMMON_BANKS_READ |
| 795 | | AM_RANGE(0x8000, 0x9fff) AM_READ(SMH_RAM) |
| 796 | | AM_RANGE(0xa000, 0xbfff) AM_READ(SMH_RAM) |
| 732 | static ADDRESS_MAP_START( champwr_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 733 | COMMON_BANKS_MAP |
| 734 | AM_RANGE(0x8000, 0x9fff) AM_RAM |
| 735 | AM_RANGE(0xa000, 0xbfff) AM_RAM AM_BASE(&shared_ram) |
| 797 | 736 | ADDRESS_MAP_END |
| 798 | 737 | |
| 799 | | |
| 800 | | static ADDRESS_MAP_START( champwr_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 801 | | COMMON_BANKS_WRITE |
| 802 | | AM_RANGE(0x8000, 0x9fff) AM_WRITE(SMH_RAM) |
| 803 | | AM_RANGE(0xa000, 0xbfff) AM_WRITE(SMH_RAM) AM_BASE(&shared_ram) |
| 804 | | ADDRESS_MAP_END |
| 805 | | |
| 806 | | static ADDRESS_MAP_START( champwr_2_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 807 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 808 | | AM_RANGE(0x8000, 0xbfff) AM_READ(SMH_BANK6) |
| 809 | | AM_RANGE(0xc000, 0xdfff) AM_READ(shared_r) |
| 810 | | AM_RANGE(0xe000, 0xe000) AM_READ_PORT("DSWA") |
| 738 | static ADDRESS_MAP_START( champwr_2_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 739 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 740 | AM_RANGE(0x8000, 0xbfff) AM_ROMBANK(6) |
| 741 | AM_RANGE(0xc000, 0xdfff) AM_READWRITE(shared_r, shared_w) |
| 742 | AM_RANGE(0xe000, 0xe000) AM_READ_PORT("DSWA") AM_WRITENOP // Watchdog |
| 811 | 743 | AM_RANGE(0xe001, 0xe001) AM_READ_PORT("DSWB") |
| 812 | 744 | AM_RANGE(0xe002, 0xe002) AM_READ_PORT("IN0") |
| 813 | 745 | AM_RANGE(0xe003, 0xe003) AM_READ_PORT("IN1") |
| 746 | AM_RANGE(0xe004, 0xe004) AM_WRITE(control2_w) |
| 814 | 747 | AM_RANGE(0xe007, 0xe007) AM_READ_PORT("IN2") |
| 815 | 748 | AM_RANGE(0xe008, 0xe00f) AM_READNOP |
| 816 | | AM_RANGE(0xe800, 0xe800) AM_READNOP |
| 817 | | AM_RANGE(0xe801, 0xe801) AM_READ(taitosound_comm_r) |
| 818 | | AM_RANGE(0xf000, 0xf000) AM_READ(rombank2switch_r) |
| 749 | AM_RANGE(0xe800, 0xe800) AM_READNOP AM_WRITE(taitosound_port_w) |
| 750 | AM_RANGE(0xe801, 0xe801) AM_READWRITE(taitosound_comm_r, taitosound_comm_w) |
| 751 | AM_RANGE(0xf000, 0xf000) AM_READWRITE(rombank2switch_r, rombank2switch_w) |
| 819 | 752 | ADDRESS_MAP_END |
| 820 | 753 | |
| 821 | | static ADDRESS_MAP_START( champwr_2_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 822 | | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) |
| 823 | | AM_RANGE(0xc000, 0xdfff) AM_WRITE(shared_w) |
| 824 | | AM_RANGE(0xe000, 0xe000) AM_WRITENOP // Watchdog |
| 825 | | AM_RANGE(0xe004, 0xe004) AM_WRITE(control2_w) |
| 826 | | AM_RANGE(0xe800, 0xe800) AM_WRITE(taitosound_port_w) |
| 827 | | AM_RANGE(0xe801, 0xe801) AM_WRITE(taitosound_comm_w) |
| 828 | | AM_RANGE(0xf000, 0xf000) AM_WRITE(rombank2switch_w) |
| 829 | | ADDRESS_MAP_END |
| 830 | | |
| 831 | | static ADDRESS_MAP_START( champwr_3_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 832 | | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 833 | | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK7) |
| 834 | | AM_RANGE(0x8000, 0x8fff) AM_READ(SMH_RAM) |
| 835 | | AM_RANGE(0x9000, 0x9001) AM_DEVREAD("ym", ym2203_r) |
| 836 | | AM_RANGE(0xa000, 0xa000) AM_READNOP |
| 837 | | AM_RANGE(0xa001, 0xa001) AM_READ(taitosound_slave_comm_r) |
| 838 | | ADDRESS_MAP_END |
| 839 | | |
| 840 | | static ADDRESS_MAP_START( champwr_3_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 841 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 842 | | AM_RANGE(0x8000, 0x8fff) AM_WRITE(SMH_RAM) |
| 843 | | AM_RANGE(0x9000, 0x9001) AM_DEVWRITE("ym", ym2203_w) |
| 844 | | AM_RANGE(0xa000, 0xa000) AM_WRITE(taitosound_slave_port_w) |
| 845 | | AM_RANGE(0xa001, 0xa001) AM_WRITE(taitosound_slave_comm_w) |
| 754 | static ADDRESS_MAP_START( champwr_3_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 755 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 756 | AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(7) |
| 757 | AM_RANGE(0x8000, 0x8fff) AM_RAM |
| 758 | AM_RANGE(0x9000, 0x9001) AM_DEVREADWRITE("ym", ym2203_r, ym2203_w) |
| 759 | AM_RANGE(0xa000, 0xa000) AM_READNOP AM_WRITE(taitosound_slave_port_w) |
| 760 | AM_RANGE(0xa001, 0xa001) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) |
| 846 | 761 | AM_RANGE(0xb000, 0xb000) AM_WRITE(champwr_msm5205_hi_w) |
| 847 | 762 | AM_RANGE(0xc000, 0xc000) AM_WRITE(champwr_msm5205_lo_w) |
| 848 | 763 | AM_RANGE(0xd000, 0xd000) AM_DEVWRITE("msm", champwr_msm5205_start_w) |
| r4499 | r4500 | |
| 851 | 766 | |
| 852 | 767 | |
| 853 | 768 | |
| 854 | | static ADDRESS_MAP_START( kurikint_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 855 | | COMMON_BANKS_READ |
| 856 | | AM_RANGE(0x8000, 0x9fff) AM_READ(SMH_RAM) |
| 857 | | AM_RANGE(0xa000, 0xa7ff) AM_READ(SMH_RAM) |
| 858 | | AM_RANGE(0xa800, 0xa800) AM_READ(mux_r) |
| 859 | | AM_RANGE(0xa801, 0xa801) AM_READNOP // Watchdog or interrupt ack (value ignored) |
| 769 | static ADDRESS_MAP_START( kurikint_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 770 | COMMON_BANKS_MAP |
| 771 | AM_RANGE(0x8000, 0x9fff) AM_RAM |
| 772 | AM_RANGE(0xa000, 0xa7ff) AM_RAM AM_BASE(&shared_ram) |
| 773 | AM_RANGE(0xa800, 0xa800) AM_READWRITE(mux_r, mux_w) |
| 774 | AM_RANGE(0xa801, 0xa801) AM_WRITE(mux_ctrl_w) AM_READNOP // Watchdog or interrupt ack (value ignored) |
| 860 | 775 | ADDRESS_MAP_END |
| 861 | 776 | |
| 862 | | static ADDRESS_MAP_START( kurikint_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 863 | | COMMON_BANKS_WRITE |
| 864 | | AM_RANGE(0x8000, 0x9fff) AM_WRITE(SMH_RAM) |
| 865 | | AM_RANGE(0xa000, 0xa7ff) AM_WRITE(SMH_RAM) AM_BASE(&shared_ram) |
| 866 | | AM_RANGE(0xa800, 0xa800) AM_WRITE(mux_w) |
| 867 | | AM_RANGE(0xa801, 0xa801) AM_WRITE(mux_ctrl_w) |
| 868 | | ADDRESS_MAP_END |
| 869 | | |
| 870 | | static ADDRESS_MAP_START( kurikint_2_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 871 | | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 872 | | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM) |
| 873 | | AM_RANGE(0xe000, 0xe7ff) AM_READ(shared_r) |
| 874 | | AM_RANGE(0xe800, 0xe801) AM_DEVREAD("ym", ym2203_r) |
| 777 | static ADDRESS_MAP_START( kurikint_2_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 778 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 779 | AM_RANGE(0xc000, 0xdfff) AM_RAM |
| 780 | AM_RANGE(0xe000, 0xe7ff) AM_READWRITE(shared_r, shared_w) |
| 781 | AM_RANGE(0xe800, 0xe801) AM_DEVREADWRITE("ym", ym2203_r, ym2203_w) |
| 875 | 782 | #if 0 |
| 783 | AM_RANGE(0xc000, 0xc000) AM_WRITE(rombank2switch_w) |
| 876 | 784 | AM_RANGE(0xd000, 0xd000) AM_READ_PORT("DSWA") |
| 877 | 785 | AM_RANGE(0xd001, 0xd001) AM_READ_PORT("DSWB") |
| 878 | 786 | AM_RANGE(0xd002, 0xd002) AM_READ_PORT("IN0") |
| r4499 | r4500 | |
| 881 | 789 | #endif |
| 882 | 790 | ADDRESS_MAP_END |
| 883 | 791 | |
| 884 | | static ADDRESS_MAP_START( kurikint_2_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 885 | | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 886 | | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_RAM) |
| 887 | | AM_RANGE(0xe000, 0xe7ff) AM_WRITE(shared_w) |
| 888 | | AM_RANGE(0xe800, 0xe801) AM_DEVWRITE("ym", ym2203_w) |
| 889 | | #if 0 |
| 890 | | AM_RANGE(0xc000, 0xc000) AM_WRITE(rombank2switch_w) |
| 891 | | #endif |
| 892 | | ADDRESS_MAP_END |
| 893 | 792 | |
| 894 | 793 | |
| 895 | | |
| 896 | | static ADDRESS_MAP_START( puzznic_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 897 | | COMMON_BANKS_READ |
| 898 | | COMMON_SINGLE_READ |
| 794 | static ADDRESS_MAP_START( puzznic_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 795 | COMMON_BANKS_MAP |
| 796 | COMMON_SINGLE_MAP |
| 899 | 797 | AM_RANGE(0xa800, 0xa800) AM_READNOP // Watchdog |
| 900 | | AM_RANGE(0xb000, 0xb7ff) AM_READ(SMH_RAM) // Wrong, used to overcome protection |
| 901 | | AM_RANGE(0xb800, 0xb800) AM_READ(mcu_data_r) |
| 902 | | AM_RANGE(0xb801, 0xb801) AM_READ(mcu_control_r) |
| 903 | | ADDRESS_MAP_END |
| 904 | | |
| 905 | | static ADDRESS_MAP_START( puzznic_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 906 | | COMMON_BANKS_WRITE |
| 907 | | COMMON_SINGLE_WRITE |
| 908 | | AM_RANGE(0xb000, 0xb7ff) AM_WRITE(SMH_RAM) // Wrong, used to overcome protection |
| 909 | | AM_RANGE(0xb800, 0xb800) AM_WRITE(mcu_data_w) |
| 910 | | AM_RANGE(0xb801, 0xb801) AM_WRITE(mcu_control_w) |
| 798 | AM_RANGE(0xb000, 0xb7ff) AM_RAM // Wrong, used to overcome protection |
| 799 | AM_RANGE(0xb800, 0xb800) AM_READWRITE(mcu_data_r, mcu_data_w) |
| 800 | AM_RANGE(0xb801, 0xb801) AM_READWRITE(mcu_control_r, mcu_control_w) |
| 911 | 801 | AM_RANGE(0xbc00, 0xbc00) AM_WRITENOP // Control register, function unknown |
| 912 | 802 | ADDRESS_MAP_END |
| 913 | 803 | |
| 914 | 804 | /* bootleg, doesn't have the MCU */ |
| 915 | | static ADDRESS_MAP_START( puzznici_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 916 | | COMMON_BANKS_READ |
| 917 | | COMMON_SINGLE_READ |
| 805 | static ADDRESS_MAP_START( puzznici_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 806 | COMMON_BANKS_MAP |
| 807 | COMMON_SINGLE_MAP |
| 918 | 808 | AM_RANGE(0xa800, 0xa800) AM_READNOP // Watchdog |
| 919 | | AM_RANGE(0xb000, 0xb7ff) AM_READ(SMH_RAM) // Wrong, used to overcome protection |
| 920 | | // AM_RANGE(0xb800, 0xb800) AM_READ(mcu_data_r) |
| 809 | AM_RANGE(0xb000, 0xb7ff) AM_RAM // Wrong, used to overcome protection |
| 810 | // AM_RANGE(0xb800, 0xb800) AM_READWRITE(mcu_data_r, mcu_data_w) |
| 921 | 811 | AM_RANGE(0xb801, 0xb801) AM_READ(mcu_control_r) |
| 922 | | ADDRESS_MAP_END |
| 923 | | |
| 924 | | static ADDRESS_MAP_START( puzznici_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 925 | | COMMON_BANKS_WRITE |
| 926 | | COMMON_SINGLE_WRITE |
| 927 | | AM_RANGE(0xb000, 0xb7ff) AM_WRITE(SMH_RAM) // Wrong, used to overcome protection |
| 928 | | // AM_RANGE(0xb800, 0xb800) AM_WRITE(mcu_data_w) |
| 929 | 812 | // AM_RANGE(0xb801, 0xb801) AM_WRITE(mcu_control_w) |
| 930 | 813 | AM_RANGE(0xbc00, 0xbc00) AM_WRITENOP // Control register, function unknown |
| 931 | 814 | ADDRESS_MAP_END |
| 932 | 815 | |
| 933 | 816 | |
| 934 | | static ADDRESS_MAP_START( plotting_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 935 | | COMMON_BANKS_READ |
| 936 | | COMMON_SINGLE_READ |
| 937 | | ADDRESS_MAP_END |
| 938 | | |
| 939 | | static ADDRESS_MAP_START( plotting_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 940 | | COMMON_BANKS_WRITE |
| 941 | | COMMON_SINGLE_WRITE |
| 817 | static ADDRESS_MAP_START( plotting_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 818 | COMMON_BANKS_MAP |
| 819 | COMMON_SINGLE_MAP |
| 942 | 820 | AM_RANGE(0xa800, 0xa800) AM_WRITENOP // Watchdog or interrupt ack |
| 943 | 821 | AM_RANGE(0xb800, 0xb800) AM_WRITENOP // Control register, function unknown |
| 944 | 822 | ADDRESS_MAP_END |
| 945 | 823 | |
| 946 | 824 | |
| 947 | | static ADDRESS_MAP_START( palamed_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 948 | | COMMON_BANKS_READ |
| 949 | | COMMON_SINGLE_READ |
| 825 | static ADDRESS_MAP_START( palamed_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 826 | COMMON_BANKS_MAP |
| 827 | COMMON_SINGLE_MAP |
| 950 | 828 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("IN0") |
| 951 | 829 | AM_RANGE(0xa801, 0xa801) AM_READ_PORT("IN1") |
| 952 | 830 | AM_RANGE(0xa802, 0xa802) AM_READ_PORT("IN2") |
| 953 | | AM_RANGE(0xb001, 0xb001) AM_READNOP // Watchdog or interrupt ack |
| 954 | | ADDRESS_MAP_END |
| 955 | | |
| 956 | | static ADDRESS_MAP_START( palamed_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 957 | | COMMON_BANKS_WRITE |
| 958 | | COMMON_SINGLE_WRITE |
| 959 | 831 | AM_RANGE(0xa803, 0xa803) AM_WRITENOP // Control register, function unknown |
| 960 | 832 | AM_RANGE(0xb000, 0xb000) AM_WRITENOP // Control register, function unknown (copy of 8822) |
| 833 | AM_RANGE(0xb001, 0xb001) AM_READNOP // Watchdog or interrupt ack |
| 961 | 834 | ADDRESS_MAP_END |
| 962 | 835 | |
| 963 | 836 | |
| 964 | | static ADDRESS_MAP_START( cachat_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 965 | | COMMON_BANKS_READ |
| 966 | | COMMON_SINGLE_READ |
| 837 | static ADDRESS_MAP_START( cachat_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 838 | COMMON_BANKS_MAP |
| 839 | COMMON_SINGLE_MAP |
| 967 | 840 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("IN0") |
| 968 | 841 | AM_RANGE(0xa801, 0xa801) AM_READ_PORT("IN1") |
| 969 | 842 | AM_RANGE(0xa802, 0xa802) AM_READ_PORT("IN2") |
| 970 | | AM_RANGE(0xb001, 0xb001) AM_READNOP // Watchdog or interrupt ack (value ignored) |
| 971 | | AM_RANGE(0xfff8, 0xfff8) AM_READ(rombankswitch_r) |
| 972 | | ADDRESS_MAP_END |
| 973 | | |
| 974 | | static ADDRESS_MAP_START( cachat_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 975 | | COMMON_BANKS_WRITE |
| 976 | | COMMON_SINGLE_WRITE |
| 977 | 843 | AM_RANGE(0xa803, 0xa803) AM_WRITENOP // Control register, function unknown |
| 978 | 844 | AM_RANGE(0xb000, 0xb000) AM_WRITENOP // Control register, function unknown |
| 979 | | AM_RANGE(0xfff8, 0xfff8) AM_WRITE(rombankswitch_w) |
| 845 | AM_RANGE(0xb001, 0xb001) AM_READNOP // Watchdog or interrupt ack (value ignored) |
| 846 | AM_RANGE(0xfff8, 0xfff8) AM_READWRITE(rombankswitch_r, rombankswitch_w) |
| 980 | 847 | ADDRESS_MAP_END |
| 981 | 848 | |
| 982 | 849 | |
| 983 | | static ADDRESS_MAP_START( horshoes_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 984 | | COMMON_BANKS_READ |
| 985 | | COMMON_SINGLE_READ |
| 850 | static ADDRESS_MAP_START( horshoes_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 851 | COMMON_BANKS_MAP |
| 852 | COMMON_SINGLE_MAP |
| 986 | 853 | AM_RANGE(0xa800, 0xa800) AM_READ(horshoes_tracky_lo_r) |
| 987 | 854 | AM_RANGE(0xa802, 0xa802) AM_READ(horshoes_tracky_reset_r) |
| 988 | 855 | AM_RANGE(0xa803, 0xa803) AM_READ(horshoes_trackx_reset_r) |
| r4499 | r4500 | |
| 990 | 857 | AM_RANGE(0xa808, 0xa808) AM_READ(horshoes_trackx_lo_r) |
| 991 | 858 | AM_RANGE(0xa80c, 0xa80c) AM_READ(horshoes_trackx_hi_r) |
| 992 | 859 | AM_RANGE(0xb801, 0xb801) AM_READNOP // Watchdog or interrupt ack |
| 993 | | ADDRESS_MAP_END |
| 994 | | |
| 995 | | static ADDRESS_MAP_START( horshoes_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 996 | | COMMON_BANKS_WRITE |
| 997 | | COMMON_SINGLE_WRITE |
| 998 | 860 | AM_RANGE(0xb802, 0xb802) AM_WRITE(horshoes_bankg_w) |
| 999 | 861 | AM_RANGE(0xbc00, 0xbc00) AM_WRITENOP |
| 1000 | 862 | ADDRESS_MAP_END |
| 1001 | 863 | |
| 1002 | | static ADDRESS_MAP_START( evilston_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1003 | | COMMON_BANKS_READ |
| 1004 | | AM_RANGE(0x8000, 0x9fff) AM_READ(SMH_RAM) |
| 1005 | | AM_RANGE(0xa000, 0xa7ff) AM_READ(SMH_RAM) |
| 1006 | | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("DSWA") |
| 1007 | | AM_RANGE(0xa801, 0xa801) AM_READ_PORT("DSWB") |
| 1008 | | AM_RANGE(0xa802, 0xa802) AM_READ_PORT("IN0") |
| 1009 | | AM_RANGE(0xa803, 0xa803) AM_READ_PORT("IN1") |
| 1010 | | AM_RANGE(0xa807, 0xa807) AM_READ_PORT("IN2") |
| 1011 | | ADDRESS_MAP_END |
| 1012 | 864 | |
| 1013 | 865 | |
| 1014 | 866 | |
| r4499 | r4500 | |
| 1018 | 870 | cpu_set_input_line(space->machine->cpu[1],INPUT_LINE_NMI,PULSE_LINE); |
| 1019 | 871 | } |
| 1020 | 872 | |
| 1021 | | |
| 1022 | | |
| 1023 | | |
| 1024 | | static ADDRESS_MAP_START( evilston_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1025 | | COMMON_BANKS_WRITE |
| 1026 | | AM_RANGE(0x8000, 0x9fff) AM_WRITE(SMH_RAM) |
| 1027 | | AM_RANGE(0xa000, 0xa7ff) AM_WRITE(SMH_RAM) AM_BASE(&shared_ram)//shared2_w }, |
| 1028 | | AM_RANGE(0xa800, 0xa800) AM_WRITE(SMH_RAM)//watchdog ? |
| 1029 | | AM_RANGE(0xa804, 0xa804) AM_WRITE(SMH_RAM) //coin couters/locks ? |
| 1030 | | |
| 873 | static ADDRESS_MAP_START( evilston_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 874 | COMMON_BANKS_MAP |
| 875 | AM_RANGE(0x8000, 0x9fff) AM_RAM |
| 876 | AM_RANGE(0xa000, 0xa7ff) AM_RAM AM_BASE(&shared_ram)//shared2_w }, |
| 877 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("DSWA") AM_WRITENOP //watchdog ? |
| 878 | AM_RANGE(0xa801, 0xa801) AM_READ_PORT("DSWB") |
| 879 | AM_RANGE(0xa802, 0xa802) AM_READ_PORT("IN0") |
| 880 | AM_RANGE(0xa803, 0xa803) AM_READ_PORT("IN1") |
| 881 | AM_RANGE(0xa804, 0xa804) AM_WRITENOP //coin couters/locks ? |
| 882 | AM_RANGE(0xa807, 0xa807) AM_READ_PORT("IN2") |
| 1031 | 883 | ADDRESS_MAP_END |
| 1032 | 884 | |
| 1033 | | static ADDRESS_MAP_START( evilston_2_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1034 | | AM_RANGE(0x0000, 0xbfff) AM_READ(SMH_ROM) |
| 1035 | | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM) |
| 1036 | | AM_RANGE(0xe000, 0xe7ff) AM_READ(shared_r)//shared_r }, |
| 1037 | | AM_RANGE(0xe800, 0xe801) AM_DEVREAD("ym", ym2203_r) |
| 1038 | | AM_RANGE(0xf000, 0xf7ff) AM_READ(SMH_BANK7) |
| 885 | static ADDRESS_MAP_START( evilston_2_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 886 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 887 | AM_RANGE(0xc000, 0xdfff) AM_RAM |
| 888 | AM_RANGE(0xe000, 0xe7ff) AM_READWRITE(shared_r, shared_w) |
| 889 | AM_RANGE(0xe800, 0xe801) AM_DEVREADWRITE("ym", ym2203_r, ym2203_w) |
| 890 | AM_RANGE(0xf000, 0xf7ff) AM_ROMBANK(7) |
| 1039 | 891 | ADDRESS_MAP_END |
| 1040 | 892 | |
| 1041 | | static ADDRESS_MAP_START( evilston_2_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1042 | | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) |
| 1043 | | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_RAM) |
| 1044 | | AM_RANGE(0xe000, 0xe7ff) AM_WRITE(shared_w) |
| 1045 | | AM_RANGE(0xe800, 0xe801) AM_DEVWRITE("ym", ym2203_w) |
| 1046 | | ADDRESS_MAP_END |
| 1047 | 893 | |
| 1048 | 894 | |
| 1049 | | |
| 1050 | 895 | /*********************************************************** |
| 1051 | 896 | INPUT PORTS, DIPs |
| 1052 | 897 | ***********************************************************/ |
| r4499 | r4500 | |
| 1248 | 1093 | TAITO_L_SYSTEM_INPUT( IP_ACTIVE_HIGH, 4 ) |
| 1249 | 1094 | INPUT_PORTS_END |
| 1250 | 1095 | |
| 1251 | | static INPUT_PORTS_START( kurikinj ) |
| 1096 | static INPUT_PORTS_START( kurikintj ) |
| 1252 | 1097 | PORT_INCLUDE( kurikint ) |
| 1253 | 1098 | |
| 1254 | 1099 | PORT_MODIFY("DSWA") |
| 1255 | 1100 | TAITO_COINAGE_JAPAN_OLD |
| 1256 | 1101 | INPUT_PORTS_END |
| 1257 | 1102 | |
| 1258 | | static INPUT_PORTS_START( kurikina ) |
| 1103 | static INPUT_PORTS_START( kurikinta ) |
| 1259 | 1104 | PORT_INCLUDE( kurikint ) |
| 1260 | 1105 | |
| 1261 | 1106 | PORT_MODIFY("DSWA") |
| r4499 | r4500 | |
| 2105 | 1950 | |
| 2106 | 1951 | /* basic machine hardware */ |
| 2107 | 1952 | MDRV_CPU_ADD("maincpu", Z80, 13330560/2) /* verified freq on pin122 of TC0090LVC cpu */ |
| 2108 | | MDRV_CPU_PROGRAM_MAP(fhawk_readmem,fhawk_writemem) |
| 1953 | MDRV_CPU_PROGRAM_MAP(fhawk_map,0) |
| 2109 | 1954 | MDRV_CPU_VBLANK_INT_HACK(vbl_interrupt,3) |
| 2110 | 1955 | |
| 2111 | 1956 | MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* verified on pcb */ |
| 2112 | | MDRV_CPU_PROGRAM_MAP(fhawk_3_readmem,fhawk_3_writemem) |
| 1957 | MDRV_CPU_PROGRAM_MAP(fhawk_3_map,0) |
| 2113 | 1958 | |
| 2114 | 1959 | MDRV_CPU_ADD("slave", Z80, 12000000/3) /* verified on pcb */ |
| 2115 | | MDRV_CPU_PROGRAM_MAP(fhawk_2_readmem,fhawk_2_writemem) |
| 1960 | MDRV_CPU_PROGRAM_MAP(fhawk_2_map,0) |
| 2116 | 1961 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_hold,3) /* fixes slow down problems */ |
| 2117 | 1962 | |
| 2118 | 1963 | MDRV_QUANTUM_TIME(HZ(6000)) |
| r4499 | r4500 | |
| 2151 | 1996 | /* basic machine hardware */ |
| 2152 | 1997 | MDRV_IMPORT_FROM(fhawk) |
| 2153 | 1998 | MDRV_CPU_MODIFY("maincpu") |
| 2154 | | MDRV_CPU_PROGRAM_MAP(champwr_readmem,champwr_writemem) |
| 1999 | MDRV_CPU_PROGRAM_MAP(champwr_map,0) |
| 2155 | 2000 | |
| 2156 | 2001 | MDRV_CPU_MODIFY("audiocpu") |
| 2157 | | MDRV_CPU_PROGRAM_MAP(champwr_3_readmem,champwr_3_writemem) |
| 2002 | MDRV_CPU_PROGRAM_MAP(champwr_3_map,0) |
| 2158 | 2003 | |
| 2159 | 2004 | MDRV_CPU_MODIFY("slave") |
| 2160 | | MDRV_CPU_PROGRAM_MAP(champwr_2_readmem,champwr_2_writemem) |
| 2005 | MDRV_CPU_PROGRAM_MAP(champwr_2_map,0) |
| 2161 | 2006 | |
| 2162 | 2007 | MDRV_MACHINE_RESET(champwr) |
| 2163 | 2008 | |
| r4499 | r4500 | |
| 2181 | 2026 | /* basic machine hardware */ |
| 2182 | 2027 | MDRV_IMPORT_FROM(fhawk) |
| 2183 | 2028 | MDRV_CPU_MODIFY("maincpu") |
| 2184 | | MDRV_CPU_PROGRAM_MAP(raimais_readmem,raimais_writemem) |
| 2029 | MDRV_CPU_PROGRAM_MAP(raimais_map,0) |
| 2185 | 2030 | |
| 2186 | 2031 | MDRV_CPU_MODIFY("audiocpu") |
| 2187 | | MDRV_CPU_PROGRAM_MAP(raimais_3_readmem,raimais_3_writemem) |
| 2032 | MDRV_CPU_PROGRAM_MAP(raimais_3_map,0) |
| 2188 | 2033 | |
| 2189 | 2034 | MDRV_CPU_MODIFY("slave") |
| 2190 | | MDRV_CPU_PROGRAM_MAP(raimais_2_readmem,raimais_2_writemem) |
| 2035 | MDRV_CPU_PROGRAM_MAP(raimais_2_map,0) |
| 2191 | 2036 | |
| 2192 | 2037 | MDRV_MACHINE_RESET(raimais) |
| 2193 | 2038 | |
| r4499 | r4500 | |
| 2204 | 2049 | |
| 2205 | 2050 | /* basic machine hardware */ |
| 2206 | 2051 | MDRV_CPU_ADD("maincpu", Z80, 13330560/2) /* verified freq on pin122 of TC0090LVC cpu */ |
| 2207 | | MDRV_CPU_PROGRAM_MAP(kurikint_readmem,kurikint_writemem) |
| 2052 | MDRV_CPU_PROGRAM_MAP(kurikint_map,0) |
| 2208 | 2053 | MDRV_CPU_VBLANK_INT_HACK(vbl_interrupt,3) |
| 2209 | 2054 | |
| 2210 | 2055 | MDRV_CPU_ADD("audiocpu", Z80, 12000000/3) /* verified on pcb */ |
| 2211 | | MDRV_CPU_PROGRAM_MAP(kurikint_2_readmem,kurikint_2_writemem) |
| 2056 | MDRV_CPU_PROGRAM_MAP(kurikint_2_map,0) |
| 2212 | 2057 | MDRV_CPU_VBLANK_INT("screen", irq0_line_hold) |
| 2213 | 2058 | |
| 2214 | 2059 | MDRV_QUANTUM_TIME(HZ(6000)) |
| r4499 | r4500 | |
| 2241 | 2086 | MACHINE_DRIVER_END |
| 2242 | 2087 | |
| 2243 | 2088 | |
| 2244 | | static MACHINE_DRIVER_START( kurikina ) |
| 2089 | static MACHINE_DRIVER_START( kurikinta ) |
| 2245 | 2090 | |
| 2246 | 2091 | /* basic machine hardware */ |
| 2247 | 2092 | MDRV_IMPORT_FROM(kurikint) |
| r4499 | r4500 | |
| 2255 | 2100 | |
| 2256 | 2101 | /* basic machine hardware */ |
| 2257 | 2102 | MDRV_CPU_ADD("maincpu", Z80, 13330560/2) /* verified freq on pin122 of TC0090LVC cpu */ |
| 2258 | | MDRV_CPU_PROGRAM_MAP(plotting_readmem,plotting_writemem) |
| 2103 | MDRV_CPU_PROGRAM_MAP(plotting_map,0) |
| 2259 | 2104 | MDRV_CPU_VBLANK_INT_HACK(vbl_interrupt,3) |
| 2260 | 2105 | |
| 2261 | 2106 | MDRV_MACHINE_RESET(plotting) |
| r4499 | r4500 | |
| 2292 | 2137 | /* basic machine hardware */ |
| 2293 | 2138 | MDRV_IMPORT_FROM(plotting) |
| 2294 | 2139 | MDRV_CPU_MODIFY("maincpu") |
| 2295 | | MDRV_CPU_PROGRAM_MAP(puzznic_readmem,puzznic_writemem) |
| 2140 | MDRV_CPU_PROGRAM_MAP(puzznic_map,0) |
| 2296 | 2141 | |
| 2297 | 2142 | MDRV_MACHINE_RESET(puzznic) |
| 2298 | 2143 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 2302 | 2147 | /* basic machine hardware */ |
| 2303 | 2148 | MDRV_IMPORT_FROM(plotting) |
| 2304 | 2149 | MDRV_CPU_MODIFY("maincpu") |
| 2305 | | MDRV_CPU_PROGRAM_MAP(puzznici_readmem,puzznici_writemem) |
| 2150 | MDRV_CPU_PROGRAM_MAP(puzznici_map,0) |
| 2306 | 2151 | |
| 2307 | 2152 | MDRV_MACHINE_RESET(puzznic) |
| 2308 | 2153 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 2313 | 2158 | /* basic machine hardware */ |
| 2314 | 2159 | MDRV_IMPORT_FROM(plotting) |
| 2315 | 2160 | MDRV_CPU_MODIFY("maincpu") |
| 2316 | | MDRV_CPU_PROGRAM_MAP(horshoes_readmem,horshoes_writemem) |
| 2161 | MDRV_CPU_PROGRAM_MAP(horshoes_map,0) |
| 2317 | 2162 | |
| 2318 | 2163 | MDRV_MACHINE_RESET(horshoes) |
| 2319 | 2164 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 2324 | 2169 | /* basic machine hardware */ |
| 2325 | 2170 | MDRV_IMPORT_FROM(plotting) |
| 2326 | 2171 | MDRV_CPU_MODIFY("maincpu") |
| 2327 | | MDRV_CPU_PROGRAM_MAP(palamed_readmem,palamed_writemem) |
| 2172 | MDRV_CPU_PROGRAM_MAP(palamed_map,0) |
| 2328 | 2173 | |
| 2329 | 2174 | MDRV_MACHINE_RESET(palamed) |
| 2330 | 2175 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 2335 | 2180 | /* basic machine hardware */ |
| 2336 | 2181 | MDRV_IMPORT_FROM(plotting) |
| 2337 | 2182 | MDRV_CPU_MODIFY("maincpu") |
| 2338 | | MDRV_CPU_PROGRAM_MAP(cachat_readmem,cachat_writemem) |
| 2183 | MDRV_CPU_PROGRAM_MAP(cachat_map,0) |
| 2339 | 2184 | |
| 2340 | 2185 | MDRV_MACHINE_RESET(cachat) |
| 2341 | 2186 | MACHINE_DRIVER_END |
| r4499 | r4500 | |
| 2344 | 2189 | |
| 2345 | 2190 | /* basic machine hardware */ |
| 2346 | 2191 | MDRV_CPU_ADD("maincpu", Z80, 13330560/2) /* not verfied */ |
| 2347 | | MDRV_CPU_PROGRAM_MAP(evilston_readmem,evilston_writemem) |
| 2192 | MDRV_CPU_PROGRAM_MAP(evilston_map,0) |
| 2348 | 2193 | MDRV_CPU_VBLANK_INT_HACK(vbl_interrupt,3) |
| 2349 | 2194 | |
| 2350 | 2195 | MDRV_CPU_ADD("audiocpu", Z80, 12000000/3) /* not verified */ |
| 2351 | | MDRV_CPU_PROGRAM_MAP(evilston_2_readmem,evilston_2_writemem) |
| 2196 | MDRV_CPU_PROGRAM_MAP(evilston_2_map,0) |
| 2352 | 2197 | MDRV_CPU_VBLANK_INT("screen", irq0_line_hold) |
| 2353 | 2198 | |
| 2354 | 2199 | MDRV_QUANTUM_TIME(HZ(6000)) |
| r4499 | r4500 | |
| 2425 | 2270 | ROM_LOAD( "b36-03.bin", 0x00000, 0x80000, CRC(96166516) SHA1(a6748218188cbd1b037f6c0845416665c0d55a7b) ) |
| 2426 | 2271 | ROM_END |
| 2427 | 2272 | |
| 2428 | | ROM_START( raimaijo ) |
| 2273 | ROM_START( raimaisjo ) |
| 2429 | 2274 | ROM_REGION( 0xb0000, "maincpu", 0 ) |
| 2430 | 2275 | ROM_LOAD( "b36-08.bin", 0x00000, 0x20000, CRC(f40b9178) SHA1(ccf5afcf08cac0d5b2d6ba74abd62d35412f0265) ) |
| 2431 | 2276 | ROM_RELOAD( 0x10000, 0x20000 ) |
| r4499 | r4500 | |
| 2568 | 2413 | ROM_LOAD( "b42-02.ic5", 0x80000, 0x80000, CRC(1a52e65c) SHA1(20a1fc4d02b5928fb01444079692e23d178c6297) ) |
| 2569 | 2414 | ROM_END |
| 2570 | 2415 | |
| 2571 | | ROM_START( kurikinu ) |
| 2416 | ROM_START( kurikintu ) |
| 2572 | 2417 | ROM_REGION( 0xb0000, "maincpu", 0 ) |
| 2573 | 2418 | ROM_LOAD( "b42-08.ic2", 0x00000, 0x20000, CRC(7075122e) SHA1(55f5f0cf3b91b7b408f9c05c91f9839c43b49c5f) ) |
| 2574 | 2419 | ROM_RELOAD( 0x10000, 0x20000 ) |
| r4499 | r4500 | |
| 2582 | 2427 | ROM_LOAD( "b42-02.ic5", 0x80000, 0x80000, CRC(1a52e65c) SHA1(20a1fc4d02b5928fb01444079692e23d178c6297) ) |
| 2583 | 2428 | ROM_END |
| 2584 | 2429 | |
| 2585 | | ROM_START( kurikinj ) |
| 2430 | ROM_START( kurikintj ) |
| 2586 | 2431 | ROM_REGION( 0xb0000, "maincpu", 0 ) |
| 2587 | 2432 | ROM_LOAD( "b42-05.ic2", 0x00000, 0x20000, CRC(077222b8) SHA1(953fb3444f6bb0dbe0323a0fd8fc3067b106a4f6) ) |
| 2588 | 2433 | ROM_RELOAD( 0x10000, 0x20000 ) |
| r4499 | r4500 | |
| 2596 | 2441 | ROM_LOAD( "b42-02.ic5", 0x80000, 0x80000, CRC(1a52e65c) SHA1(20a1fc4d02b5928fb01444079692e23d178c6297) ) |
| 2597 | 2442 | ROM_END |
| 2598 | 2443 | |
| 2599 | | ROM_START( kurikina ) |
| 2444 | ROM_START( kurikinta ) |
| 2600 | 2445 | ROM_REGION( 0xb0000, "maincpu", 0 ) |
| 2601 | 2446 | ROM_LOAD( "kk_ic2.ic2", 0x00000, 0x20000, CRC(908603f2) SHA1(f810f2501458224e9264a984f22547cc8ccc2b0e) ) |
| 2602 | 2447 | ROM_RELOAD( 0x10000, 0x20000 ) |
| r4499 | r4500 | |
| 2678 | 2523 | ROM_END |
| 2679 | 2524 | |
| 2680 | 2525 | |
| 2681 | | ROM_START( plottina ) /* B96-09 or higher by Taito's rom numbering system, demo mode is 2 players */ |
| 2526 | ROM_START( plottinga ) /* B96-09 or higher by Taito's rom numbering system, demo mode is 2 players */ |
| 2682 | 2527 | ROM_REGION( 0x20000, "maincpu", 0 ) |
| 2683 | 2528 | ROM_LOAD( "plot01.ic10", 0x00000, 0x10000, CRC(5b30bc25) SHA1(df8839a90da9e5122d75b6faaf97f59499dbd316) ) |
| 2684 | 2529 | ROM_RELOAD( 0x10000, 0x10000 ) |
| r4499 | r4500 | |
| 2691 | 2536 | ROM_LOAD( "gal16v8-b86-04.bin", 0x0000, 0x0117, CRC(bf8c0ea0) SHA1(e0a00f1f6363fb79650202f90a56329990876d49) ) /* derived, but verified Pal Stamped B86-04 */ |
| 2692 | 2537 | ROM_END |
| 2693 | 2538 | |
| 2694 | | ROM_START( plottinb ) /* The first (earliest) "World" version by Taito's rom numbering system, demo mode is 2 players */ |
| 2539 | ROM_START( plottingb ) /* The first (earliest) "World" version by Taito's rom numbering system, demo mode is 2 players */ |
| 2695 | 2540 | ROM_REGION( 0x20000, "maincpu", 0 ) |
| 2696 | 2541 | ROM_LOAD( "b96-06.ic10",0x00000, 0x10000, CRC(f89a54b1) SHA1(19757b5fb61acdd6f5ae8e32a38ae54bfda0c522) ) |
| 2697 | 2542 | ROM_RELOAD( 0x10000, 0x10000 ) |
| r4499 | r4500 | |
| 2704 | 2549 | ROM_LOAD( "gal16v8-b86-04.bin", 0x0000, 0x0117, CRC(bf8c0ea0) SHA1(e0a00f1f6363fb79650202f90a56329990876d49) ) /* derived, but verified Pal Stamped B86-04 */ |
| 2705 | 2550 | ROM_END |
| 2706 | 2551 | |
| 2707 | | ROM_START( plottinu ) /* The demo mode is 2 players */ |
| 2552 | ROM_START( plottingu ) /* The demo mode is 2 players */ |
| 2708 | 2553 | ROM_REGION( 0x20000, "maincpu", 0 ) |
| 2709 | 2554 | ROM_LOAD( "b96-05.ic10",0x00000, 0x10000, CRC(afb99d1f) SHA1(a5cabc182d4f1d5709e6835d8b0a481dd0f9a563) ) |
| 2710 | 2555 | ROM_RELOAD( 0x10000, 0x10000 ) |
| r4499 | r4500 | |
| 2890 | 2735 | |
| 2891 | 2736 | |
| 2892 | 2737 | // bits 7..0 => bits 0..7 |
| 2893 | | static DRIVER_INIT( plottina ) |
| 2738 | static DRIVER_INIT( plottinga ) |
| 2894 | 2739 | { |
| 2895 | 2740 | UINT8 tab[256]; |
| 2896 | 2741 | UINT8 *p; |
| r4499 | r4500 | |
| 2920 | 2765 | } |
| 2921 | 2766 | |
| 2922 | 2767 | |
| 2923 | | GAME( 1988, raimais, 0, raimais, raimais, 0, ROT0, "Taito Corporation Japan", "Raimais (World)", 0 ) |
| 2924 | | GAME( 1988, raimaisj, raimais, raimais, raimaisj, 0, ROT0, "Taito Corporation", "Raimais (Japan)", 0 ) |
| 2925 | | GAME( 1988, raimaijo, raimais, raimais, raimaisj, 0, ROT0, "Taito Corporation", "Raimais (Japan / First Revision)", 0 ) |
| 2926 | | GAME( 1988, fhawk, 0, fhawk, fhawk, 0, ROT270, "Taito Corporation Japan", "Fighting Hawk (World)", 0 ) |
| 2927 | | GAME( 1988, fhawkj, fhawk, fhawk, fhawkj, 0, ROT270, "Taito Corporation", "Fighting Hawk (Japan)", 0 ) |
| 2928 | | GAME( 1989, champwr, 0, champwr, champwr, 0, ROT0, "Taito Corporation Japan", "Champion Wrestler (World)", GAME_IMPERFECT_SOUND ) |
| 2929 | | GAME( 1989, champwru, champwr, champwr, champwru, 0, ROT0, "Taito America Corporation", "Champion Wrestler (US)", GAME_IMPERFECT_SOUND ) |
| 2930 | | GAME( 1989, champwrj, champwr, champwr, champwrj, 0, ROT0, "Taito Corporation", "Champion Wrestler (Japan)", GAME_IMPERFECT_SOUND ) |
| 2931 | | GAME( 1988, kurikint, 0, kurikint, kurikint, 0, ROT0, "Taito Corporation Japan", "Kuri Kinton (World)", 0 ) |
| 2932 | | GAME( 1988, kurikinu, kurikint, kurikint, kurikinj, 0, ROT0, "Taito America Corporation", "Kuri Kinton (US)", 0 ) |
| 2933 | | GAME( 1988, kurikinj, kurikint, kurikint, kurikinj, 0, ROT0, "Taito Corporation", "Kuri Kinton (Japan)", 0 ) |
| 2934 | | GAME( 1988, kurikina, kurikint, kurikina, kurikina, 0, ROT0, "Taito Corporation Japan", "Kuri Kinton (World, prototype?)", 0 ) |
| 2935 | | GAME( 1989, plotting, 0, plotting, plotting, 0, ROT0, "Taito Corporation Japan", "Plotting (World set 1)", 0 ) |
| 2936 | | GAME( 1989, plottina, plotting, plotting, plotting, plottina, ROT0, "Taito Corporation Japan", "Plotting (World set 2, Protected)", 0 ) |
| 2937 | | GAME( 1989, plottinb, plotting, plotting, plotting, 0, ROT0, "Taito Corporation Japan", "Plotting (World set 3, Earliest Version)", 0 ) |
| 2938 | | GAME( 1989, plottinu, plotting, plotting, plotting, 0, ROT0, "Taito America Corporation", "Plotting (US)", 0 ) |
| 2939 | | GAME( 1989, flipull, plotting, plotting, plotting, 0, ROT0, "Taito Corporation", "Flipull (Japan)", 0 ) |
| 2940 | | GAME( 1989, puzznic, 0, puzznic, puzznic, 0, ROT0, "Taito Corporation Japan", "Puzznic (World)", 0 ) |
| 2941 | | GAME( 1989, puzznicj, puzznic, puzznic, puzznic, 0, ROT0, "Taito Corporation", "Puzznic (Japan)", 0 ) |
| 2942 | | GAME( 1989, puzznici, puzznic, puzznici, puzznic, 0, ROT0, "bootleg", "Puzznic (Italian bootleg)", 0 ) |
| 2943 | | GAME( 1990, horshoes, 0, horshoes, horshoes, 0, ROT270, "Taito America Corporation", "American Horseshoes (US)", 0 ) |
| 2944 | | GAME( 1990, palamed, 0, palamed, palamed, 0, ROT0, "Taito Corporation", "Palamedes (Japan)", 0 ) |
| 2945 | | GAME( 1993, cachat, 0, cachat, cachat, 0, ROT0, "Taito Corporation", "Cachat (Japan)", 0 ) |
| 2946 | | GAME( 1993, tubeit, cachat, cachat, tubeit, 0, ROT0, "Taito Corporation", "Tube-It", 0 ) // No (c) message |
| 2947 | | GAME( 199?, cubybop, 0, cachat, cubybop, 0, ROT0, "Taito Corporation", "Cuby Bop (Location Test)", 0 ) // No (c) message |
| 2768 | GAME( 1988, raimais, 0, raimais, raimais, 0, ROT0, "Taito Corporation Japan", "Raimais (World)", 0 ) |
| 2769 | GAME( 1988, raimaisj, raimais, raimais, raimaisj, 0, ROT0, "Taito Corporation", "Raimais (Japan)", 0 ) |
| 2770 | GAME( 1988, raimaisjo, raimais, raimais, raimaisj, 0, ROT0, "Taito Corporation", "Raimais (Japan / First Revision)", 0 ) |
| 2771 | GAME( 1988, fhawk, 0, fhawk, fhawk, 0, ROT270, "Taito Corporation Japan", "Fighting Hawk (World)", 0 ) |
| 2772 | GAME( 1988, fhawkj, fhawk, fhawk, fhawkj, 0, ROT270, "Taito Corporation", "Fighting Hawk (Japan)", 0 ) |
| 2773 | GAME( 1989, champwr, 0, champwr, champwr, 0, ROT0, "Taito Corporation Japan", "Champion Wrestler (World)", GAME_IMPERFECT_SOUND ) |
| 2774 | GAME( 1989, champwru, champwr, champwr, champwru, 0, ROT0, "Taito America Corporation", "Champion Wrestler (US)", GAME_IMPERFECT_SOUND ) |
| 2775 | GAME( 1989, champwrj, champwr, champwr, champwrj, 0, ROT0, "Taito Corporation", "Champion Wrestler (Japan)", GAME_IMPERFECT_SOUND ) |
| 2776 | GAME( 1988, kurikint, 0, kurikint, kurikint, 0, ROT0, "Taito Corporation Japan", "Kuri Kinton (World)", 0 ) |
| 2777 | GAME( 1988, kurikintu, kurikint, kurikint, kurikintj,0, ROT0, "Taito America Corporation", "Kuri Kinton (US)", 0 ) |
| 2778 | GAME( 1988, kurikintj, kurikint, kurikint, kurikintj,0, ROT0, "Taito Corporation", "Kuri Kinton (Japan)", 0 ) |
| 2779 | GAME( 1988, kurikinta, kurikint, kurikinta,kurikinta,0, ROT0, "Taito Corporation Japan", "Kuri Kinton (World, prototype?)", 0 ) |
| 2780 | GAME( 1989, plotting, 0, plotting, plotting, 0, ROT0, "Taito Corporation Japan", "Plotting (World set 1)", 0 ) |
| 2781 | GAME( 1989, plottinga, plotting, plotting, plotting, plottinga,ROT0, "Taito Corporation Japan", "Plotting (World set 2, Protected)", 0 ) |
| 2782 | GAME( 1989, plottingb, plotting, plotting, plotting, 0, ROT0, "Taito Corporation Japan", "Plotting (World set 3, Earliest Version)", 0 ) |
| 2783 | GAME( 1989, plottingu, plotting, plotting, plotting, 0, ROT0, "Taito America Corporation", "Plotting (US)", 0 ) |
| 2784 | GAME( 1989, flipull, plotting, plotting, plotting, 0, ROT0, "Taito Corporation", "Flipull (Japan)", 0 ) |
| 2785 | GAME( 1989, puzznic, 0, puzznic, puzznic, 0, ROT0, "Taito Corporation Japan", "Puzznic (World)", 0 ) |
| 2786 | GAME( 1989, puzznicj, puzznic, puzznic, puzznic, 0, ROT0, "Taito Corporation", "Puzznic (Japan)", 0 ) |
| 2787 | GAME( 1989, puzznici, puzznic, puzznici, puzznic, 0, ROT0, "bootleg", "Puzznic (Italian bootleg)", 0 ) |
| 2788 | GAME( 1990, horshoes, 0, horshoes, horshoes, 0, ROT270, "Taito America Corporation", "American Horseshoes (US)", 0 ) |
| 2789 | GAME( 1990, palamed, 0, palamed, palamed, 0, ROT0, "Taito Corporation", "Palamedes (Japan)", 0 ) |
| 2790 | GAME( 1993, cachat, 0, cachat, cachat, 0, ROT0, "Taito Corporation", "Cachat (Japan)", 0 ) |
| 2791 | GAME( 1993, tubeit, cachat, cachat, tubeit, 0, ROT0, "Taito Corporation", "Tube-It", 0 ) // No (c) message |
| 2792 | GAME( 199?, cubybop, 0, cachat, cubybop, 0, ROT0, "Taito Corporation", "Cuby Bop (Location Test)", 0 ) // No (c) message |
| 2948 | 2793 | |
| 2949 | | GAME( 1992, plgirls, 0, cachat, plgirls, 0, ROT270, "Hot-B.", "Play Girls", 0 ) |
| 2950 | | GAME( 1993, plgirls2, 0, cachat, plgirls2, 0, ROT270, "Hot-B.", "Play Girls 2", 0 ) |
| 2794 | GAME( 1992, plgirls, 0, cachat, plgirls, 0, ROT270, "Hot-B.", "Play Girls", 0 ) |
| 2795 | GAME( 1993, plgirls2, 0, cachat, plgirls2, 0, ROT270, "Hot-B.", "Play Girls 2", 0 ) |
| 2951 | 2796 | |
| 2952 | | GAME( 1990, evilston, 0, evilston, evilston, evilston, ROT270, "Spacy Industrial, Ltd.", "Evil Stone", 0 ) |
| 2797 | GAME( 1990, evilston, 0, evilston, evilston, evilston, ROT270, "Spacy Industrial, Ltd.", "Evil Stone", 0 ) |
src/mess/machine/nes_mmc.c
| r4499 | r4500 | |
| 265 | 265 | } |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | | static void chr8 (int bank) |
| 268 | static void chr8 (running_machine *machine, int bank) |
| 269 | 269 | { |
| 270 | nes_state *state = machine->driver_data; |
| 270 | 271 | bank &= (nes.chr_chunks - 1); |
| 271 | | ppu2c0x_set_videorom_bank(0, 0, 8, bank, 512); |
| 272 | ppu2c0x_set_videorom_bank(state->ppu, 0, 8, bank, 512); |
| 272 | 273 | } |
| 273 | 274 | |
| 274 | | static void chr4_0 (int bank) |
| 275 | static void chr4_0 (running_machine *machine, int bank) |
| 275 | 276 | { |
| 277 | nes_state *state = machine->driver_data; |
| 276 | 278 | bank &= ((nes.chr_chunks << 1) - 1); |
| 277 | | ppu2c0x_set_videorom_bank(0, 0, 4, bank, 256); |
| 279 | ppu2c0x_set_videorom_bank(state->ppu, 0, 4, bank, 256); |
| 278 | 280 | } |
| 279 | 281 | |
| 280 | | static void chr4_4 (int bank) |
| 282 | static void chr4_4 (running_machine *machine, int bank) |
| 281 | 283 | { |
| 284 | nes_state *state = machine->driver_data; |
| 282 | 285 | bank &= ((nes.chr_chunks << 1) - 1); |
| 283 | | ppu2c0x_set_videorom_bank(0, 4, 4, bank, 256); |
| 286 | ppu2c0x_set_videorom_bank(state->ppu, 4, 4, bank, 256); |
| 284 | 287 | } |
| 285 | 288 | |
| 286 | | static void chr2_0 (int bank) |
| 289 | static void chr2_0 (running_machine *machine, int bank) |
| 287 | 290 | { |
| 291 | nes_state *state = machine->driver_data; |
| 288 | 292 | bank &= ((nes.chr_chunks << 2) - 1); |
| 289 | | ppu2c0x_set_videorom_bank(0, 0, 2, bank, 128); |
| 293 | ppu2c0x_set_videorom_bank(state->ppu, 0, 2, bank, 128); |
| 290 | 294 | } |
| 291 | 295 | |
| 292 | | static void chr2_2 (int bank) |
| 296 | static void chr2_2 (running_machine *machine, int bank) |
| 293 | 297 | { |
| 298 | nes_state *state = machine->driver_data; |
| 294 | 299 | bank &= ((nes.chr_chunks << 2) - 1); |
| 295 | | ppu2c0x_set_videorom_bank(0, 2, 2, bank, 128); |
| 300 | ppu2c0x_set_videorom_bank(state->ppu, 2, 2, bank, 128); |
| 296 | 301 | } |
| 297 | 302 | |
| 298 | | static void chr2_4 (int bank) |
| 303 | static void chr2_4 (running_machine *machine, int bank) |
| 299 | 304 | { |
| 305 | nes_state *state = machine->driver_data; |
| 300 | 306 | bank &= ((nes.chr_chunks << 2) - 1); |
| 301 | | ppu2c0x_set_videorom_bank(0, 4, 2, bank, 128); |
| 307 | ppu2c0x_set_videorom_bank(state->ppu, 4, 2, bank, 128); |
| 302 | 308 | } |
| 303 | 309 | |
| 304 | | static void chr2_6 (int bank) |
| 310 | static void chr2_6 (running_machine *machine, int bank) |
| 305 | 311 | { |
| 312 | nes_state *state = machine->driver_data; |
| 306 | 313 | bank &= ((nes.chr_chunks << 2) - 1); |
| 307 | | ppu2c0x_set_videorom_bank(0, 6, 2, bank, 128); |
| 314 | ppu2c0x_set_videorom_bank(state->ppu, 6, 2, bank, 128); |
| 308 | 315 | } |
| 309 | | static void chr1_0 (int bank) |
| 316 | static void chr1_0 (running_machine *machine, int bank) |
| 310 | 317 | { |
| 318 | nes_state *state = machine->driver_data; |
| 311 | 319 | bank &= ((nes.chr_chunks << 3) - 1); |
| 312 | | ppu2c0x_set_videorom_bank(0, 0, 1, bank, 64); |
| 320 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, bank, 64); |
| 313 | 321 | } |
| 314 | | static void chr1_1 (int bank) |
| 322 | static void chr1_1 (running_machine *machine, int bank) |
| 315 | 323 | { |
| 324 | nes_state *state = machine->driver_data; |
| 316 | 325 | bank &= ((nes.chr_chunks << 3) - 1); |
| 317 | | ppu2c0x_set_videorom_bank(0, 1, 1, bank, 64); |
| 326 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, bank, 64); |
| 318 | 327 | } |
| 319 | | static void chr1_2 (int bank) |
| 328 | static void chr1_2 (running_machine *machine, int bank) |
| 320 | 329 | { |
| 330 | nes_state *state = machine->driver_data; |
| 321 | 331 | bank &= ((nes.chr_chunks << 3) - 1); |
| 322 | | ppu2c0x_set_videorom_bank(0, 2, 1, bank, 64); |
| 332 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, bank, 64); |
| 323 | 333 | } |
| 324 | | static void chr1_3 (int bank) |
| 334 | static void chr1_3 (running_machine *machine, int bank) |
| 325 | 335 | { |
| 336 | nes_state *state = machine->driver_data; |
| 326 | 337 | bank &= ((nes.chr_chunks << 3) - 1); |
| 327 | | ppu2c0x_set_videorom_bank(0, 3, 1, bank, 64); |
| 338 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, bank, 64); |
| 328 | 339 | } |
| 329 | | static void chr1_4 (int bank) |
| 340 | static void chr1_4 (running_machine *machine, int bank) |
| 330 | 341 | { |
| 342 | nes_state *state = machine->driver_data; |
| 331 | 343 | bank &= ((nes.chr_chunks << 3) - 1); |
| 332 | | ppu2c0x_set_videorom_bank(0, 4, 1, bank, 64); |
| 344 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, bank, 64); |
| 333 | 345 | } |
| 334 | | static void chr1_5 (int bank) |
| 346 | static void chr1_5 (running_machine *machine, int bank) |
| 335 | 347 | { |
| 348 | nes_state *state = machine->driver_data; |
| 336 | 349 | bank &= ((nes.chr_chunks << 3) - 1); |
| 337 | | ppu2c0x_set_videorom_bank(0, 5, 1, bank, 64); |
| 350 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, bank, 64); |
| 338 | 351 | } |
| 339 | | static void chr1_6 (int bank) |
| 352 | static void chr1_6 (running_machine *machine, int bank) |
| 340 | 353 | { |
| 354 | nes_state *state = machine->driver_data; |
| 341 | 355 | bank &= ((nes.chr_chunks << 3) - 1); |
| 342 | | ppu2c0x_set_videorom_bank(0, 6, 1, bank, 64); |
| 356 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, bank, 64); |
| 343 | 357 | } |
| 344 | | static void chr1_7 (int bank) |
| 358 | static void chr1_7 (running_machine *machine, int bank) |
| 345 | 359 | { |
| 360 | nes_state *state = machine->driver_data; |
| 346 | 361 | bank &= ((nes.chr_chunks << 3) - 1); |
| 347 | | ppu2c0x_set_videorom_bank(0, 7, 1, bank, 64); |
| 362 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, bank, 64); |
| 348 | 363 | } |
| 349 | 364 | |
| 350 | 365 | |
| 351 | 366 | static WRITE8_HANDLER( mapper1_w ) |
| 352 | 367 | { |
| 368 | nes_state *state = space->machine->driver_data; |
| 353 | 369 | int reg; |
| 354 | 370 | |
| 355 | 371 | /* Find which register we are dealing with */ |
| r4499 | r4500 | |
| 389 | 405 | |
| 390 | 406 | switch (MMC1_reg & 0x03) |
| 391 | 407 | { |
| 392 | | case 0: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 393 | | case 1: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 394 | | case 2: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 395 | | case 3: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 408 | case 0: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 409 | case 1: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 410 | case 2: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 411 | case 3: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 396 | 412 | } |
| 397 | 413 | |
| 398 | 414 | MMC1_SizeVrom_4k = (MMC1_reg & 0x10); |
| r4499 | r4500 | |
| 463 | 479 | if (!MMC1_SizeVrom_4k) |
| 464 | 480 | { |
| 465 | 481 | int bank = MMC1_reg & ((nes.chr_chunks << 1) - 1); |
| 466 | | ppu2c0x_set_videorom_bank(0, 0, 8, bank, 256); |
| 482 | ppu2c0x_set_videorom_bank(state->ppu, 0, 8, bank, 256); |
| 467 | 483 | LOG_MMC(("MMC1 8k VROM switch: %02x\n", MMC1_reg)); |
| 468 | 484 | } |
| 469 | 485 | else |
| 470 | 486 | { |
| 471 | 487 | int bank = MMC1_reg & ((nes.chr_chunks << 1) - 1); |
| 472 | | ppu2c0x_set_videorom_bank(0, 0, 4, bank, 256); |
| 488 | ppu2c0x_set_videorom_bank(state->ppu, 0, 4, bank, 256); |
| 473 | 489 | LOG_MMC(("MMC1 4k VROM switch (low): %02x\n", MMC1_reg)); |
| 474 | 490 | } |
| 475 | 491 | } |
| r4499 | r4500 | |
| 496 | 512 | if (MMC1_SizeVrom_4k) |
| 497 | 513 | { |
| 498 | 514 | int bank = MMC1_reg & ((nes.chr_chunks << 1) - 1); |
| 499 | | ppu2c0x_set_videorom_bank(0, 4, 4, bank, 256); |
| 515 | ppu2c0x_set_videorom_bank(state->ppu, 4, 4, bank, 256); |
| 500 | 516 | LOG_MMC(("MMC1 4k VROM switch (high): %02x\n", MMC1_reg)); |
| 501 | 517 | } |
| 502 | 518 | break; |
| r4499 | r4500 | |
| 579 | 595 | |
| 580 | 596 | static WRITE8_HANDLER( mapper3_w ) |
| 581 | 597 | { |
| 582 | | chr8 (data); |
| 598 | chr8 (space->machine, data); |
| 583 | 599 | } |
| 584 | 600 | |
| 585 | 601 | static void mapper4_set_prg ( const address_space *space) |
| r4499 | r4500 | |
| 602 | 618 | memory_set_bankptr (space->machine, 4, &nes.rom[(last_bank) * 0x2000 + 0x10000]); |
| 603 | 619 | } |
| 604 | 620 | |
| 605 | | static void mapper4_set_chr (void) |
| 621 | static void mapper4_set_chr (running_machine *machine) |
| 606 | 622 | { |
| 623 | nes_state *state = space->machine->driver_data; |
| 607 | 624 | UINT8 chr_page = (MMC3_cmd & 0x80) >> 5; |
| 608 | | ppu2c0x_set_videorom_bank(0, chr_page ^ 0, 2, MMC3_chr_base * 64 | ( MMC3_chr[0] & ( MMC3_chr_mask * 64 ) ), 1); |
| 609 | | ppu2c0x_set_videorom_bank(0, chr_page ^ 2, 2, MMC3_chr_base * 64 | ( MMC3_chr[1] & ( MMC3_chr_mask * 64 ) ), 1); |
| 610 | | ppu2c0x_set_videorom_bank(0, chr_page ^ 4, 1, MMC3_chr_base * 64 | ( MMC3_chr[2] & ( MMC3_chr_mask * 64 ) ), 1); |
| 611 | | ppu2c0x_set_videorom_bank(0, chr_page ^ 5, 1, MMC3_chr_base * 64 | ( MMC3_chr[3] & ( MMC3_chr_mask * 64 ) ), 1); |
| 612 | | ppu2c0x_set_videorom_bank(0, chr_page ^ 6, 1, MMC3_chr_base * 64 | ( MMC3_chr[4] & ( MMC3_chr_mask * 64 ) ), 1); |
| 613 | | ppu2c0x_set_videorom_bank(0, chr_page ^ 7, 1, MMC3_chr_base * 64 | ( MMC3_chr[5] & ( MMC3_chr_mask * 64 ) ), 1); |
| 625 | ppu2c0x_set_videorom_bank(state->ppu, chr_page ^ 0, 2, MMC3_chr_base * 64 | ( MMC3_chr[0] & ( MMC3_chr_mask * 64 ) ), 1); |
| 626 | ppu2c0x_set_videorom_bank(state->ppu, chr_page ^ 2, 2, MMC3_chr_base * 64 | ( MMC3_chr[1] & ( MMC3_chr_mask * 64 ) ), 1); |
| 627 | ppu2c0x_set_videorom_bank(state->ppu, chr_page ^ 4, 1, MMC3_chr_base * 64 | ( MMC3_chr[2] & ( MMC3_chr_mask * 64 ) ), 1); |
| 628 | ppu2c0x_set_videorom_bank(state->ppu, chr_page ^ 5, 1, MMC3_chr_base * 64 | ( MMC3_chr[3] & ( MMC3_chr_mask * 64 ) ), 1); |
| 629 | ppu2c0x_set_videorom_bank(state->ppu, chr_page ^ 6, 1, MMC3_chr_base * 64 | ( MMC3_chr[4] & ( MMC3_chr_mask * 64 ) ), 1); |
| 630 | ppu2c0x_set_videorom_bank(state->ppu, chr_page ^ 7, 1, MMC3_chr_base * 64 | ( MMC3_chr[5] & ( MMC3_chr_mask * 64 ) ), 1); |
| 614 | 631 | } |
| 615 | 632 | |
| 616 | 633 | static void mapper4_irq ( running_machine *machine, int num, int scanline, int vblank, int blanked ) |
| r4499 | r4500 | |
| 637 | 654 | |
| 638 | 655 | static WRITE8_HANDLER( mapper4_w ) |
| 639 | 656 | { |
| 657 | nes_state *state = space->machine->driver_data; |
| 640 | 658 | static UINT8 last_bank = 0xff; |
| 641 | 659 | |
| 642 | 660 | // logerror("mapper4_w offset: %04x, data: %02x, scanline: %d\n", offset, data, current_scanline); |
| r4499 | r4500 | |
| 690 | 708 | } |
| 691 | 709 | case 0x2000: /* $a000 */ |
| 692 | 710 | if (data & 0x40) |
| 693 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); |
| 711 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); |
| 694 | 712 | else |
| 695 | 713 | { |
| 696 | 714 | if (data & 0x01) |
| 697 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 715 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 698 | 716 | else |
| 699 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 717 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 700 | 718 | } |
| 701 | 719 | break; |
| 702 | 720 | |
| r4499 | r4500 | |
| 785 | 803 | LOG_MMC((" mapper 118 mirroring: %02x\n", data)); |
| 786 | 804 | switch (data & 0x02) |
| 787 | 805 | { |
| 788 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 789 | | case 0x01: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 806 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 807 | case 0x01: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 790 | 808 | } |
| 791 | 809 | break; |
| 792 | 810 | |
| r4499 | r4500 | |
| 887 | 905 | |
| 888 | 906 | static WRITE8_HANDLER( mapper5_l_w ) |
| 889 | 907 | { |
| 908 | nes_state *state = space->machine->driver_data; |
| 909 | |
| 890 | 910 | // static int vrom_next[4]; |
| 891 | 911 | static int vrom_page_a; |
| 892 | 912 | static int vrom_page_b; |
| r4499 | r4500 | |
| 895 | 915 | /* Send $5000-$5015 to the sound chip */ |
| 896 | 916 | if ((offset >= 0xf00) && (offset <= 0xf15)) |
| 897 | 917 | { |
| 898 | | nes_psg_w (devtag_get_device(space->machine, "nessound"), offset & 0x1f, data); |
| 918 | nes_psg_w (state->sound, offset & 0x1f, data); |
| 899 | 919 | return; |
| 900 | 920 | } |
| 901 | 921 | |
| r4499 | r4500 | |
| 1070 | 1090 | /* 1k switch */ |
| 1071 | 1091 | vrom_bank[0] = data; |
| 1072 | 1092 | // mapper5_sync_vrom(0); |
| 1073 | | ppu2c0x_set_videorom_bank(0, 0, 1, vrom_bank[0], 64); |
| 1093 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, vrom_bank[0], 64); |
| 1074 | 1094 | // nes_vram_sprite[0] = vrom_bank[0] * 64; |
| 1075 | 1095 | // vrom_next[0] = 4; |
| 1076 | 1096 | // vrom_page_a = 1; |
| r4499 | r4500 | |
| 1084 | 1104 | { |
| 1085 | 1105 | case 0x02: |
| 1086 | 1106 | /* 2k switch */ |
| 1087 | | chr2_0 (data); |
| 1107 | chr2_0 (space->machine, data); |
| 1088 | 1108 | break; |
| 1089 | 1109 | case 0x03: |
| 1090 | 1110 | /* 1k switch */ |
| 1091 | 1111 | vrom_bank[1] = data; |
| 1092 | 1112 | // mapper5_sync_vrom(0); |
| 1093 | | ppu2c0x_set_videorom_bank(0, 1, 1, vrom_bank[1], 64); |
| 1113 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, vrom_bank[1], 64); |
| 1094 | 1114 | // nes_vram_sprite[1] = vrom_bank[0] * 64; |
| 1095 | 1115 | // vrom_next[1] = 5; |
| 1096 | 1116 | // vrom_page_a = 1; |
| r4499 | r4500 | |
| 1106 | 1126 | /* 1k switch */ |
| 1107 | 1127 | vrom_bank[2] = data; |
| 1108 | 1128 | // mapper5_sync_vrom(0); |
| 1109 | | ppu2c0x_set_videorom_bank(0, 2, 1, vrom_bank[2], 64); |
| 1129 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, vrom_bank[2], 64); |
| 1110 | 1130 | // nes_vram_sprite[2] = vrom_bank[0] * 64; |
| 1111 | 1131 | // vrom_next[2] = 6; |
| 1112 | 1132 | // vrom_page_a = 1; |
| r4499 | r4500 | |
| 1129 | 1149 | /* 1k switch */ |
| 1130 | 1150 | vrom_bank[3] = data; |
| 1131 | 1151 | // mapper5_sync_vrom(0); |
| 1132 | | ppu2c0x_set_videorom_bank(0, 3, 1, vrom_bank[3], 64); |
| 1152 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, vrom_bank[3], 64); |
| 1133 | 1153 | // nes_vram_sprite[3] = vrom_bank[0] * 64; |
| 1134 | 1154 | // vrom_next[3] = 7; |
| 1135 | 1155 | // vrom_page_a = 1; |
| r4499 | r4500 | |
| 1145 | 1165 | /* 1k switch */ |
| 1146 | 1166 | vrom_bank[4] = data; |
| 1147 | 1167 | // mapper5_sync_vrom(0); |
| 1148 | | ppu2c0x_set_videorom_bank(0, 4, 1, vrom_bank[4], 64); |
| 1168 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, vrom_bank[4], 64); |
| 1149 | 1169 | // nes_vram_sprite[4] = vrom_bank[0] * 64; |
| 1150 | 1170 | // vrom_next[0] = 0; |
| 1151 | 1171 | // vrom_page_a = 0; |
| r4499 | r4500 | |
| 1159 | 1179 | { |
| 1160 | 1180 | case 0x02: |
| 1161 | 1181 | /* 2k switch */ |
| 1162 | | chr2_4 (data); |
| 1182 | chr2_4 (space->machine, data); |
| 1163 | 1183 | break; |
| 1164 | 1184 | case 0x03: |
| 1165 | 1185 | /* 1k switch */ |
| 1166 | 1186 | vrom_bank[5] = data; |
| 1167 | 1187 | // mapper5_sync_vrom(0); |
| 1168 | | ppu2c0x_set_videorom_bank(0, 5, 1, vrom_bank[5], 64); |
| 1188 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, vrom_bank[5], 64); |
| 1169 | 1189 | // nes_vram_sprite[5] = vrom_bank[0] * 64; |
| 1170 | 1190 | // vrom_next[1] = 1; |
| 1171 | 1191 | // vrom_page_a = 0; |
| r4499 | r4500 | |
| 1181 | 1201 | /* 1k switch */ |
| 1182 | 1202 | vrom_bank[6] = data; |
| 1183 | 1203 | // mapper5_sync_vrom(0); |
| 1184 | | ppu2c0x_set_videorom_bank(0, 6, 1, vrom_bank[6], 64); |
| 1204 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, vrom_bank[6], 64); |
| 1185 | 1205 | // nes_vram_sprite[6] = vrom_bank[0] * 64; |
| 1186 | 1206 | // vrom_next[2] = 2; |
| 1187 | 1207 | // vrom_page_a = 0; |
| r4499 | r4500 | |
| 1195 | 1215 | { |
| 1196 | 1216 | case 0x00: |
| 1197 | 1217 | /* 8k switch */ |
| 1198 | | chr8 (data); |
| 1218 | chr8 (space->machine, data); |
| 1199 | 1219 | break; |
| 1200 | 1220 | case 0x01: |
| 1201 | 1221 | /* 4k switch */ |
| 1202 | | chr4_4 (data); |
| 1222 | chr4_4 (space->machine, data); |
| 1203 | 1223 | break; |
| 1204 | 1224 | case 0x02: |
| 1205 | 1225 | /* 2k switch */ |
| 1206 | | chr2_6 (data); |
| 1226 | chr2_6 (space->machine, data); |
| 1207 | 1227 | break; |
| 1208 | 1228 | case 0x03: |
| 1209 | 1229 | /* 1k switch */ |
| 1210 | 1230 | vrom_bank[7] = data; |
| 1211 | 1231 | // mapper5_sync_vrom(0); |
| 1212 | | ppu2c0x_set_videorom_bank(0, 7, 1, vrom_bank[7], 64); |
| 1232 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, vrom_bank[7], 64); |
| 1213 | 1233 | // nes_vram_sprite[7] = vrom_bank[0] * 64; |
| 1214 | 1234 | // vrom_next[3] = 3; |
| 1215 | 1235 | // vrom_page_a = 0; |
| r4499 | r4500 | |
| 1227 | 1247 | // nes_vram[vrom_next[0]] = data * 64; |
| 1228 | 1248 | // nes_vram[0 + (vrom_page_a*4)] = data * 64; |
| 1229 | 1249 | // nes_vram[0] = data * 64; |
| 1230 | | ppu2c0x_set_videorom_bank(0, 4, 1, data, 64); |
| 1250 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, data, 64); |
| 1231 | 1251 | // mapper5_sync_vrom(1); |
| 1232 | 1252 | if (!vrom_page_b) |
| 1233 | 1253 | { |
| r4499 | r4500 | |
| 1243 | 1263 | { |
| 1244 | 1264 | case 0x02: |
| 1245 | 1265 | /* 2k switch */ |
| 1246 | | chr2_0 (data); |
| 1247 | | chr2_4 (data); |
| 1266 | chr2_0 (space->machine, data); |
| 1267 | chr2_4 (space->machine, data); |
| 1248 | 1268 | break; |
| 1249 | 1269 | case 0x03: |
| 1250 | 1270 | /* 1k switch */ |
| r4499 | r4500 | |
| 1252 | 1272 | // nes_vram[vrom_next[1]] = data * 64; |
| 1253 | 1273 | // nes_vram[1 + (vrom_page_a*4)] = data * 64; |
| 1254 | 1274 | // nes_vram[1] = data * 64; |
| 1255 | | ppu2c0x_set_videorom_bank(0, 5, 1, data, 64); |
| 1275 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, data, 64); |
| 1256 | 1276 | // mapper5_sync_vrom(1); |
| 1257 | 1277 | if (!vrom_page_b) |
| 1258 | 1278 | { |
| r4499 | r4500 | |
| 1272 | 1292 | // nes_vram[vrom_next[2]] = data * 64; |
| 1273 | 1293 | // nes_vram[2 + (vrom_page_a*4)] = data * 64; |
| 1274 | 1294 | // nes_vram[2] = data * 64; |
| 1275 | | ppu2c0x_set_videorom_bank(0, 6, 1, data, 64); |
| 1295 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, data, 64); |
| 1276 | 1296 | // mapper5_sync_vrom(1); |
| 1277 | 1297 | if (!vrom_page_b) |
| 1278 | 1298 | { |
| r4499 | r4500 | |
| 1288 | 1308 | { |
| 1289 | 1309 | case 0x00: |
| 1290 | 1310 | /* 8k switch */ |
| 1291 | | chr8 (data); |
| 1311 | chr8 (space->machine, data); |
| 1292 | 1312 | break; |
| 1293 | 1313 | case 0x01: |
| 1294 | 1314 | /* 4k switch */ |
| 1295 | | chr4_0 (data); |
| 1296 | | chr4_4 (data); |
| 1315 | chr4_0 (space->machine, data); |
| 1316 | chr4_4 (space->machine, data); |
| 1297 | 1317 | break; |
| 1298 | 1318 | case 0x02: |
| 1299 | 1319 | /* 2k switch */ |
| 1300 | | chr2_2 (data); |
| 1301 | | chr2_6 (data); |
| 1320 | chr2_2 (space->machine, data); |
| 1321 | chr2_6 (space->machine, data); |
| 1302 | 1322 | break; |
| 1303 | 1323 | case 0x03: |
| 1304 | 1324 | /* 1k switch */ |
| r4499 | r4500 | |
| 1306 | 1326 | // nes_vram[vrom_next[3]] = data * 64; |
| 1307 | 1327 | // nes_vram[3 + (vrom_page_a*4)] = data * 64; |
| 1308 | 1328 | // nes_vram[3] = data * 64; |
| 1309 | | ppu2c0x_set_videorom_bank(0, 7, 1, data, 64); |
| 1329 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, data, 64); |
| 1310 | 1330 | // mapper5_sync_vrom(1); |
| 1311 | 1331 | if (!vrom_page_b) |
| 1312 | 1332 | { |
| r4499 | r4500 | |
| 1347 | 1367 | static WRITE8_HANDLER( mapper7_w ) |
| 1348 | 1368 | { |
| 1349 | 1369 | if (data & 0x10) |
| 1350 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); |
| 1370 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); |
| 1351 | 1371 | else |
| 1352 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 1372 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 1353 | 1373 | |
| 1354 | 1374 | prg32 (space, data); |
| 1355 | 1375 | } |
| r4499 | r4500 | |
| 1367 | 1387 | } |
| 1368 | 1388 | |
| 1369 | 1389 | |
| 1370 | | static void mapper9_latch (offs_t offset) |
| 1390 | static void mapper9_latch (running_machine *machine, offs_t offset) |
| 1371 | 1391 | { |
| 1372 | 1392 | if ((offset & 0x3ff0) == 0x0fd0) |
| 1373 | 1393 | { |
| 1374 | 1394 | logerror ("mapper9 vrom latch switch (bank 0 low): %02x\n", MMC2_bank0); |
| 1375 | 1395 | MMC2_bank0_latch = 0xfd; |
| 1376 | | chr4_0 (MMC2_bank0); |
| 1396 | chr4_0 (machine, MMC2_bank0); |
| 1377 | 1397 | } |
| 1378 | 1398 | else if ((offset & 0x3ff0) == 0x0fe0) |
| 1379 | 1399 | { |
| 1380 | 1400 | logerror ("mapper9 vrom latch switch (bank 0 high): %02x\n", MMC2_bank0_hi); |
| 1381 | 1401 | MMC2_bank0_latch = 0xfe; |
| 1382 | | chr4_0 (MMC2_bank0_hi); |
| 1402 | chr4_0 (machine, MMC2_bank0_hi); |
| 1383 | 1403 | } |
| 1384 | 1404 | else if ((offset & 0x3ff0) == 0x1fd0) |
| 1385 | 1405 | { |
| 1386 | 1406 | logerror ("mapper9 vrom latch switch (bank 1 low): %02x\n", MMC2_bank1); |
| 1387 | 1407 | MMC2_bank1_latch = 0xfd; |
| 1388 | | chr4_4 (MMC2_bank1); |
| 1408 | chr4_4 (machine, MMC2_bank1); |
| 1389 | 1409 | } |
| 1390 | 1410 | else if ((offset & 0x3ff0) == 0x1fe0) |
| 1391 | 1411 | { |
| 1392 | 1412 | logerror ("mapper9 vrom latch switch (bank 0 high): %02x\n", MMC2_bank1_hi); |
| 1393 | 1413 | MMC2_bank1_latch = 0xfe; |
| 1394 | | chr4_4 (MMC2_bank1_hi); |
| 1414 | chr4_4 (machine, MMC2_bank1_hi); |
| 1395 | 1415 | } |
| 1396 | 1416 | } |
| 1397 | 1417 | |
| r4499 | r4500 | |
| 1429 | 1449 | break; |
| 1430 | 1450 | case 0x7000: |
| 1431 | 1451 | if (data&1) |
| 1432 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 1452 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 1433 | 1453 | else |
| 1434 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 1454 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 1435 | 1455 | break; |
| 1436 | 1456 | default: |
| 1437 | 1457 | logerror("MMC2 uncaught w: %04x:%02x\n", offset, data); |
| r4499 | r4500 | |
| 1502 | 1522 | break; |
| 1503 | 1523 | case 0x7000: |
| 1504 | 1524 | if (data&1) |
| 1505 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 1525 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 1506 | 1526 | else |
| 1507 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 1527 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 1508 | 1528 | break; |
| 1509 | 1529 | default: |
| 1510 | 1530 | logerror("MMC4 uncaught w: %04x:%02x\n", offset, data); |
| r4499 | r4500 | |
| 1540 | 1560 | { |
| 1541 | 1561 | case 0x0000: |
| 1542 | 1562 | if (data & 0x40) |
| 1543 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 1563 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 1544 | 1564 | else |
| 1545 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 1565 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 1546 | 1566 | memory_set_bankptr (space->machine, 1, &nes.rom[bank + base]); |
| 1547 | 1567 | memory_set_bankptr (space->machine, 2, &nes.rom[bank + (base ^ 0x2000)]); |
| 1548 | 1568 | memory_set_bankptr (space->machine, 3, &nes.rom[bank + (base ^ 0x4000)]); |
| r4499 | r4500 | |
| 1563 | 1583 | |
| 1564 | 1584 | case 0x0003: |
| 1565 | 1585 | if (data & 0x40) |
| 1566 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 1586 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 1567 | 1587 | else |
| 1568 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 1588 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 1569 | 1589 | memory_set_bankptr (space->machine, 3, &nes.rom[bank + base]); |
| 1570 | 1590 | memory_set_bankptr (space->machine, 4, &nes.rom[bank + (base ^ 0x2000)]); |
| 1571 | 1591 | break; |
| r4499 | r4500 | |
| 1595 | 1615 | { |
| 1596 | 1616 | //use new utility functions for bounds checks! |
| 1597 | 1617 | case 0: |
| 1598 | | chr1_0(data); |
| 1618 | chr1_0(space->machine, data); |
| 1599 | 1619 | break; |
| 1600 | 1620 | case 1: |
| 1601 | | chr1_1(data); |
| 1621 | chr1_1(space->machine, data); |
| 1602 | 1622 | break; |
| 1603 | 1623 | case 2: |
| 1604 | | chr1_2(data); |
| 1624 | chr1_2(space->machine, data); |
| 1605 | 1625 | break; |
| 1606 | 1626 | case 3: |
| 1607 | | chr1_3(data); |
| 1627 | chr1_3(space->machine, data); |
| 1608 | 1628 | break; |
| 1609 | 1629 | case 4: |
| 1610 | | chr1_4(data); |
| 1630 | chr1_4(space->machine, data); |
| 1611 | 1631 | break; |
| 1612 | 1632 | case 5: |
| 1613 | | chr1_5(data); |
| 1633 | chr1_5(space->machine, data); |
| 1614 | 1634 | break; |
| 1615 | 1635 | case 6: |
| 1616 | | chr1_6(data); |
| 1636 | chr1_6(space->machine, data); |
| 1617 | 1637 | break; |
| 1618 | 1638 | case 7: |
| 1619 | | chr1_7(data); |
| 1639 | chr1_7(space->machine, data); |
| 1620 | 1640 | break; |
| 1621 | 1641 | case 8: |
| 1622 | 1642 | /* Switch 16k bank at $8000 */ |
| r4499 | r4500 | |
| 1626 | 1646 | switch (data & 0x03) |
| 1627 | 1647 | { |
| 1628 | 1648 | case 0: |
| 1629 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 1649 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 1630 | 1650 | break; |
| 1631 | 1651 | case 1: |
| 1632 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 1652 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 1633 | 1653 | break; |
| 1634 | 1654 | case 2: |
| 1635 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 1655 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 1636 | 1656 | break; |
| 1637 | 1657 | case 3: |
| 1638 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); |
| 1658 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); |
| 1639 | 1659 | break; |
| 1640 | 1660 | } |
| 1641 | 1661 | break; |
| r4499 | r4500 | |
| 1663 | 1683 | /* $42fe - mirroring */ |
| 1664 | 1684 | case 0x1fe: |
| 1665 | 1685 | if (data & 0x10) |
| 1666 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 1686 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 1667 | 1687 | else |
| 1668 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); |
| 1688 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); |
| 1669 | 1689 | break; |
| 1670 | 1690 | /* $42ff - mirroring */ |
| 1671 | 1691 | case 0x1ff: |
| 1672 | 1692 | if (data & 0x10) |
| 1673 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 1693 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 1674 | 1694 | else |
| 1675 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 1695 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 1676 | 1696 | break; |
| 1677 | 1697 | /* $4501 - $4503 */ |
| 1678 | 1698 | // case 0x401: |
| r4499 | r4500 | |
| 1699 | 1719 | case 0x416: |
| 1700 | 1720 | case 0x417: |
| 1701 | 1721 | data &= ((nes.chr_chunks << 3) - 1); |
| 1702 | | ppu2c0x_set_videorom_bank(0, offset & 0x07, 1, data, 64); |
| 1722 | ppu2c0x_set_videorom_bank(state->ppu, offset & 0x07, 1, data, 64); |
| 1703 | 1723 | break; |
| 1704 | 1724 | default: |
| 1705 | 1725 | logerror("** uncaught mapper 17 write, offset: %04x, data: %02x\n", offset, data); |
| r4499 | r4500 | |
| 1800 | 1820 | /* Switch 1k vrom at $0000 - low 4 bits */ |
| 1801 | 1821 | vrom_bank[0] = (vrom_bank[0] & 0xf0) | (data & 0x0f); |
| 1802 | 1822 | vrom_bank[0] &= ((nes.chr_chunks << 3) - 1); |
| 1803 | | ppu2c0x_set_videorom_bank(0, 0, 1, vrom_bank[0], 64); |
| 1823 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, vrom_bank[0], 64); |
| 1804 | 1824 | break; |
| 1805 | 1825 | case 0x2001: |
| 1806 | 1826 | /* Switch 1k vrom at $0000 - high 4 bits */ |
| 1807 | 1827 | vrom_bank[0] = (vrom_bank[0] & 0x0f) | (data << 4); |
| 1808 | 1828 | vrom_bank[0] &= ((nes.chr_chunks << 3) - 1); |
| 1809 | | ppu2c0x_set_videorom_bank(0, 0, 1, vrom_bank[0], 64); |
| 1829 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, vrom_bank[0], 64); |
| 1810 | 1830 | break; |
| 1811 | 1831 | case 0x2002: |
| 1812 | 1832 | /* Switch 1k vrom at $0400 - low 4 bits */ |
| 1813 | 1833 | vrom_bank[1] = (vrom_bank[1] & 0xf0) | (data & 0x0f); |
| 1814 | 1834 | vrom_bank[1] &= ((nes.chr_chunks << 3) - 1); |
| 1815 | | ppu2c0x_set_videorom_bank(0, 1, 1, vrom_bank[1], 64); |
| 1835 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, vrom_bank[1], 64); |
| 1816 | 1836 | break; |
| 1817 | 1837 | case 0x2003: |
| 1818 | 1838 | /* Switch 1k vrom at $0400 - high 4 bits */ |
| 1819 | 1839 | vrom_bank[1] = (vrom_bank[1] & 0x0f) | (data << 4); |
| 1820 | 1840 | vrom_bank[1] &= ((nes.chr_chunks << 3) - 1); |
| 1821 | | ppu2c0x_set_videorom_bank(0, 1, 1, vrom_bank[1], 64); |
| 1841 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, vrom_bank[1], 64); |
| 1822 | 1842 | break; |
| 1823 | 1843 | case 0x3000: |
| 1824 | 1844 | /* Switch 1k vrom at $0800 - low 4 bits */ |
| 1825 | 1845 | vrom_bank[2] = (vrom_bank[2] & 0xf0) | (data & 0x0f); |
| 1826 | 1846 | vrom_bank[2] &= ((nes.chr_chunks << 3) - 1); |
| 1827 | | ppu2c0x_set_videorom_bank(0, 2, 1, vrom_bank[2], 64); |
| 1847 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, vrom_bank[2], 64); |
| 1828 | 1848 | break; |
| 1829 | 1849 | case 0x3001: |
| 1830 | 1850 | /* Switch 1k vrom at $0800 - high 4 bits */ |
| 1831 | 1851 | vrom_bank[2] = (vrom_bank[2] & 0x0f) | (data << 4); |
| 1832 | 1852 | vrom_bank[2] &= ((nes.chr_chunks << 3) - 1); |
| 1833 | | ppu2c0x_set_videorom_bank(0, 2, 1, vrom_bank[2], 64); |
| 1853 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, vrom_bank[2], 64); |
| 1834 | 1854 | break; |
| 1835 | 1855 | case 0x3002: |
| 1836 | 1856 | /* Switch 1k vrom at $0c00 - low 4 bits */ |
| 1837 | 1857 | vrom_bank[3] = (vrom_bank[3] & 0xf0) | (data & 0x0f); |
| 1838 | 1858 | vrom_bank[3] &= ((nes.chr_chunks << 3) - 1); |
| 1839 | | ppu2c0x_set_videorom_bank(0, 3, 1, vrom_bank[3], 64); |
| 1859 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, vrom_bank[3], 64); |
| 1840 | 1860 | break; |
| 1841 | 1861 | case 0x3003: |
| 1842 | 1862 | /* Switch 1k vrom at $0c00 - high 4 bits */ |
| 1843 | 1863 | vrom_bank[3] = (vrom_bank[3] & 0x0f) | (data << 4); |
| 1844 | 1864 | vrom_bank[3] &= ((nes.chr_chunks << 3) - 1); |
| 1845 | | ppu2c0x_set_videorom_bank(0, 3, 1, vrom_bank[3], 64); |
| 1865 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, vrom_bank[3], 64); |
| 1846 | 1866 | break; |
| 1847 | 1867 | case 0x4000: |
| 1848 | 1868 | /* Switch 1k vrom at $1000 - low 4 bits */ |
| 1849 | 1869 | vrom_bank[4] = (vrom_bank[4] & 0xf0) | (data & 0x0f); |
| 1850 | 1870 | vrom_bank[4] &= ((nes.chr_chunks << 3) - 1); |
| 1851 | | ppu2c0x_set_videorom_bank(0, 4, 1, vrom_bank[4], 64); |
| 1871 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, vrom_bank[4], 64); |
| 1852 | 1872 | break; |
| 1853 | 1873 | case 0x4001: |
| 1854 | 1874 | /* Switch 1k vrom at $1000 - high 4 bits */ |
| 1855 | 1875 | vrom_bank[4] = (vrom_bank[4] & 0x0f) | (data << 4); |
| 1856 | 1876 | vrom_bank[4] &= ((nes.chr_chunks << 3) - 1); |
| 1857 | | ppu2c0x_set_videorom_bank(0, 4, 1, vrom_bank[4], 64); |
| 1877 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, vrom_bank[4], 64); |
| 1858 | 1878 | break; |
| 1859 | 1879 | case 0x4002: |
| 1860 | 1880 | /* Switch 1k vrom at $1400 - low 4 bits */ |
| 1861 | 1881 | vrom_bank[5] = (vrom_bank[5] & 0xf0) | (data & 0x0f); |
| 1862 | 1882 | vrom_bank[5] &= ((nes.chr_chunks << 3) - 1); |
| 1863 | | ppu2c0x_set_videorom_bank(0, 5, 1, vrom_bank[5], 64); |
| 1883 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, vrom_bank[5], 64); |
| 1864 | 1884 | break; |
| 1865 | 1885 | case 0x4003: |
| 1866 | 1886 | /* Switch 1k vrom at $1400 - high 4 bits */ |
| 1867 | 1887 | vrom_bank[5] = (vrom_bank[5] & 0x0f) | (data << 4); |
| 1868 | 1888 | vrom_bank[5] &= ((nes.chr_chunks << 3) - 1); |
| 1869 | | ppu2c0x_set_videorom_bank(0, 5, 1, vrom_bank[5], 64); |
| 1889 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, vrom_bank[5], 64); |
| 1870 | 1890 | break; |
| 1871 | 1891 | case 0x5000: |
| 1872 | 1892 | /* Switch 1k vrom at $1800 - low 4 bits */ |
| 1873 | 1893 | vrom_bank[6] = (vrom_bank[6] & 0xf0) | (data & 0x0f); |
| 1874 | 1894 | vrom_bank[6] &= ((nes.chr_chunks << 3) - 1); |
| 1875 | | ppu2c0x_set_videorom_bank(0, 6, 1, vrom_bank[6], 64); |
| 1895 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, vrom_bank[6], 64); |
| 1876 | 1896 | break; |
| 1877 | 1897 | case 0x5001: |
| 1878 | 1898 | /* Switch 1k vrom at $1800 - high 4 bits */ |
| 1879 | 1899 | vrom_bank[6] = (vrom_bank[6] & 0x0f) | (data << 4); |
| 1880 | 1900 | vrom_bank[6] &= ((nes.chr_chunks << 3) - 1); |
| 1881 | | ppu2c0x_set_videorom_bank(0, 6, 1, vrom_bank[6], 64); |
| 1901 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, vrom_bank[6], 64); |
| 1882 | 1902 | break; |
| 1883 | 1903 | case 0x5002: |
| 1884 | 1904 | /* Switch 1k vrom at $1c00 - low 4 bits */ |
| 1885 | 1905 | vrom_bank[7] = (vrom_bank[7] & 0xf0) | (data & 0x0f); |
| 1886 | 1906 | vrom_bank[7] &= ((nes.chr_chunks << 3) - 1); |
| 1887 | | ppu2c0x_set_videorom_bank(0, 7, 1, vrom_bank[7], 64); |
| 1907 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, vrom_bank[7], 64); |
| 1888 | 1908 | break; |
| 1889 | 1909 | case 0x5003: |
| 1890 | 1910 | /* Switch 1k vrom at $1c00 - high 4 bits */ |
| 1891 | 1911 | vrom_bank[7] = (vrom_bank[7] & 0x0f) | (data << 4); |
| 1892 | 1912 | vrom_bank[7] &= ((nes.chr_chunks << 3) - 1); |
| 1893 | | ppu2c0x_set_videorom_bank(0, 7, 1, vrom_bank[7], 64); |
| 1913 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, vrom_bank[7], 64); |
| 1894 | 1914 | break; |
| 1895 | 1915 | |
| 1896 | 1916 | /* LBO - these are unverified */ |
| r4499 | r4500 | |
| 1931 | 1951 | case 0x7002: /* Misc */ |
| 1932 | 1952 | switch (data & 0x03) |
| 1933 | 1953 | { |
| 1934 | | case 0: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 1935 | | case 1: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 1936 | | case 2: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 1937 | | case 3: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 1954 | case 0: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 1955 | case 1: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 1956 | case 2: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 1957 | case 3: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 1938 | 1958 | } |
| 1939 | 1959 | break; |
| 1940 | 1960 | |
| r4499 | r4500 | |
| 1988 | 2008 | case 0x3000: |
| 1989 | 2009 | case 0x3800: |
| 1990 | 2010 | /* Switch 1k VROM at $0000-$1c00 */ |
| 1991 | | ppu2c0x_set_videorom_bank(0, offset / 0x800, 1, data, 64); |
| 2011 | ppu2c0x_set_videorom_bank(state->ppu, offset / 0x800, 1, data, 64); |
| 1992 | 2012 | break; |
| 1993 | 2013 | |
| 1994 | 2014 | case 0x6000: |
| r4499 | r4500 | |
| 2109 | 2129 | if (data & 0x02) nes_fds.head_position = 0; |
| 2110 | 2130 | nes_fds.read_mode = data & 0x04; |
| 2111 | 2131 | if (data & 0x08) |
| 2112 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 2132 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 2113 | 2133 | else |
| 2114 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 2134 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 2115 | 2135 | if ((!(data & 0x40)) && (nes_fds.write_reg & 0x40)) |
| 2116 | 2136 | nes_fds.head_position -= 2; // ??? |
| 2117 | 2137 | IRQ_enable_latch = data & 0x80; |
| r4499 | r4500 | |
| 2148 | 2168 | case 0x1000: |
| 2149 | 2169 | switch (data & 0x03) |
| 2150 | 2170 | { |
| 2151 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 2152 | | case 0x01: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 2153 | | case 0x02: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 2154 | | case 0x03: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 2171 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 2172 | case 0x01: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 2173 | case 0x02: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 2174 | case 0x03: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 2155 | 2175 | } |
| 2156 | 2176 | break; |
| 2157 | 2177 | |
| r4499 | r4500 | |
| 2182 | 2202 | int bank = (offset & 0x7000) / 0x0800 + (offset & 0x0001); |
| 2183 | 2203 | vrom_bank[bank] = data >> 1; |
| 2184 | 2204 | vrom_bank[bank] &= ((nes.chr_chunks << 3) - 1); |
| 2185 | | ppu2c0x_set_videorom_bank(0, bank, 1, vrom_bank[bank], 64); |
| 2205 | ppu2c0x_set_videorom_bank(state->ppu, bank, 1, vrom_bank[bank], 64); |
| 2186 | 2206 | } |
| 2187 | 2207 | break; |
| 2188 | 2208 | |
| r4499 | r4500 | |
| 2226 | 2246 | case 0x1000: |
| 2227 | 2247 | switch (data & 0x03) |
| 2228 | 2248 | { |
| 2229 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 2230 | | case 0x01: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 2231 | | case 0x02: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 2232 | | case 0x03: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 2249 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 2250 | case 0x01: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 2251 | case 0x02: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 2252 | case 0x03: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 2233 | 2253 | } |
| 2234 | 2254 | break; |
| 2235 | 2255 | |
| r4499 | r4500 | |
| 2256 | 2276 | /* Switch 1k vrom at $0000 - low 4 bits */ |
| 2257 | 2277 | vrom_bank[0] = (vrom_bank[0] & 0xf0) | (data & 0x0f); |
| 2258 | 2278 | vrom_bank[0] &= ((nes.chr_chunks << 3) - 1); |
| 2259 | | ppu2c0x_set_videorom_bank(0, 0, 1, vrom_bank[0], 64); |
| 2279 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, vrom_bank[0], 64); |
| 2260 | 2280 | break; |
| 2261 | 2281 | case 0x3001: |
| 2262 | 2282 | /* Switch 1k vrom at $0000 - high 4 bits */ |
| 2263 | 2283 | vrom_bank[0] = (vrom_bank[0] & 0x0f) | (data << 4); |
| 2264 | 2284 | vrom_bank[0] &= ((nes.chr_chunks << 3) - 1); |
| 2265 | | ppu2c0x_set_videorom_bank(0, 0, 1, vrom_bank[0], 64); |
| 2285 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, vrom_bank[0], 64); |
| 2266 | 2286 | break; |
| 2267 | 2287 | case 0x3002: |
| 2268 | 2288 | /* Switch 1k vrom at $0400 - low 4 bits */ |
| 2269 | 2289 | vrom_bank[1] = (vrom_bank[1] & 0xf0) | (data & 0x0f); |
| 2270 | 2290 | vrom_bank[1] &= ((nes.chr_chunks << 3) - 1); |
| 2271 | | ppu2c0x_set_videorom_bank(0, 1, 1, vrom_bank[1], 64); |
| 2291 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, vrom_bank[1], 64); |
| 2272 | 2292 | break; |
| 2273 | 2293 | case 0x3003: |
| 2274 | 2294 | /* Switch 1k vrom at $0400 - high 4 bits */ |
| 2275 | 2295 | vrom_bank[1] = (vrom_bank[1] & 0x0f) | (data << 4); |
| 2276 | 2296 | vrom_bank[1] &= ((nes.chr_chunks << 3) - 1); |
| 2277 | | ppu2c0x_set_videorom_bank(0, 1, 1, vrom_bank[1], 64); |
| 2297 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, vrom_bank[1], 64); |
| 2278 | 2298 | break; |
| 2279 | 2299 | case 0x4000: |
| 2280 | 2300 | /* Switch 1k vrom at $0800 - low 4 bits */ |
| 2281 | 2301 | vrom_bank[2] = (vrom_bank[2] & 0xf0) | (data & 0x0f); |
| 2282 | 2302 | vrom_bank[2] &= ((nes.chr_chunks << 3) - 1); |
| 2283 | | ppu2c0x_set_videorom_bank(0, 2, 1, vrom_bank[2], 64); |
| 2303 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, vrom_bank[2], 64); |
| 2284 | 2304 | break; |
| 2285 | 2305 | case 0x4001: |
| 2286 | 2306 | /* Switch 1k vrom at $0800 - high 4 bits */ |
| 2287 | 2307 | vrom_bank[2] = (vrom_bank[2] & 0x0f) | (data << 4); |
| 2288 | 2308 | vrom_bank[2] &= ((nes.chr_chunks << 3) - 1); |
| 2289 | | ppu2c0x_set_videorom_bank(0, 2, 1, vrom_bank[2], 64); |
| 2309 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, vrom_bank[2], 64); |
| 2290 | 2310 | break; |
| 2291 | 2311 | case 0x4002: |
| 2292 | 2312 | /* Switch 1k vrom at $0c00 - low 4 bits */ |
| 2293 | 2313 | vrom_bank[3] = (vrom_bank[3] & 0xf0) | (data & 0x0f); |
| 2294 | 2314 | vrom_bank[3] &= ((nes.chr_chunks << 3) - 1); |
| 2295 | | ppu2c0x_set_videorom_bank(0, 3, 1, vrom_bank[3], 64); |
| 2315 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, vrom_bank[3], 64); |
| 2296 | 2316 | break; |
| 2297 | 2317 | case 0x4003: |
| 2298 | 2318 | /* Switch 1k vrom at $0c00 - high 4 bits */ |
| 2299 | 2319 | vrom_bank[3] = (vrom_bank[3] & 0x0f) | (data << 4); |
| 2300 | 2320 | vrom_bank[3] &= ((nes.chr_chunks << 3) - 1); |
| 2301 | | ppu2c0x_set_videorom_bank(0, 3, 1, vrom_bank[3], 64); |
| 2321 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, vrom_bank[3], 64); |
| 2302 | 2322 | break; |
| 2303 | 2323 | case 0x5000: |
| 2304 | 2324 | /* Switch 1k vrom at $1000 - low 4 bits */ |
| 2305 | 2325 | vrom_bank[4] = (vrom_bank[4] & 0xf0) | (data & 0x0f); |
| 2306 | 2326 | vrom_bank[4] &= ((nes.chr_chunks << 3) - 1); |
| 2307 | | ppu2c0x_set_videorom_bank(0, 4, 1, vrom_bank[4], 64); |
| 2327 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, vrom_bank[4], 64); |
| 2308 | 2328 | break; |
| 2309 | 2329 | case 0x5001: |
| 2310 | 2330 | /* Switch 1k vrom at $1000 - high 4 bits */ |
| 2311 | 2331 | vrom_bank[4] = (vrom_bank[4] & 0x0f) | (data << 4); |
| 2312 | 2332 | vrom_bank[4] &= ((nes.chr_chunks << 3) - 1); |
| 2313 | | ppu2c0x_set_videorom_bank(0, 4, 1, vrom_bank[4], 64); |
| 2333 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, vrom_bank[4], 64); |
| 2314 | 2334 | break; |
| 2315 | 2335 | case 0x5002: |
| 2316 | 2336 | /* Switch 1k vrom at $1400 - low 4 bits */ |
| 2317 | 2337 | vrom_bank[5] = (vrom_bank[5] & 0xf0) | (data & 0x0f); |
| 2318 | 2338 | vrom_bank[5] &= ((nes.chr_chunks << 3) - 1); |
| 2319 | | ppu2c0x_set_videorom_bank(0, 5, 1, vrom_bank[5], 64); |
| 2339 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, vrom_bank[5], 64); |
| 2320 | 2340 | break; |
| 2321 | 2341 | case 0x5003: |
| 2322 | 2342 | /* Switch 1k vrom at $1400 - high 4 bits */ |
| 2323 | 2343 | vrom_bank[5] = (vrom_bank[5] & 0x0f) | (data << 4); |
| 2324 | 2344 | vrom_bank[5] &= ((nes.chr_chunks << 3) - 1); |
| 2325 | | ppu2c0x_set_videorom_bank(0, 5, 1, vrom_bank[5], 64); |
| 2345 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, vrom_bank[5], 64); |
| 2326 | 2346 | break; |
| 2327 | 2347 | case 0x6000: |
| 2328 | 2348 | /* Switch 1k vrom at $1800 - low 4 bits */ |
| 2329 | 2349 | vrom_bank[6] = (vrom_bank[6] & 0xf0) | (data & 0x0f); |
| 2330 | 2350 | vrom_bank[6] &= ((nes.chr_chunks << 3) - 1); |
| 2331 | | ppu2c0x_set_videorom_bank(0, 6, 1, vrom_bank[6], 64); |
| 2351 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, vrom_bank[6], 64); |
| 2332 | 2352 | break; |
| 2333 | 2353 | case 0x6001: |
| 2334 | 2354 | /* Switch 1k vrom at $1800 - high 4 bits */ |
| 2335 | 2355 | vrom_bank[6] = (vrom_bank[6] & 0x0f) | (data << 4); |
| 2336 | 2356 | vrom_bank[6] &= ((nes.chr_chunks << 3) - 1); |
| 2337 | | ppu2c0x_set_videorom_bank(0, 6, 1, vrom_bank[6], 64); |
| 2357 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, vrom_bank[6], 64); |
| 2338 | 2358 | break; |
| 2339 | 2359 | case 0x6002: |
| 2340 | 2360 | /* Switch 1k vrom at $1c00 - low 4 bits */ |
| 2341 | 2361 | vrom_bank[7] = (vrom_bank[7] & 0xf0) | (data & 0x0f); |
| 2342 | 2362 | vrom_bank[7] &= ((nes.chr_chunks << 3) - 1); |
| 2343 | | ppu2c0x_set_videorom_bank(0, 7, 1, vrom_bank[7], 64); |
| 2363 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, vrom_bank[7], 64); |
| 2344 | 2364 | break; |
| 2345 | 2365 | case 0x6003: |
| 2346 | 2366 | /* Switch 1k vrom at $1c00 - high 4 bits */ |
| 2347 | 2367 | vrom_bank[7] = (vrom_bank[7] & 0x0f) | (data << 4); |
| 2348 | 2368 | vrom_bank[7] &= ((nes.chr_chunks << 3) - 1); |
| 2349 | | ppu2c0x_set_videorom_bank(0, 7, 1, vrom_bank[7], 64); |
| 2369 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, vrom_bank[7], 64); |
| 2350 | 2370 | break; |
| 2351 | 2371 | case 0x7000: |
| 2352 | 2372 | /* Set low 4 bits of latch */ |
| r4499 | r4500 | |
| 2382 | 2402 | case 0x1000: |
| 2383 | 2403 | switch (data & 0x03) |
| 2384 | 2404 | { |
| 2385 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 2386 | | case 0x01: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 2387 | | case 0x02: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 2388 | | case 0x03: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 2405 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 2406 | case 0x01: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 2407 | case 0x02: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 2408 | case 0x03: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 2389 | 2409 | } |
| 2390 | 2410 | break; |
| 2391 | 2411 | |
| r4499 | r4500 | |
| 2400 | 2420 | /* Switch 1k vrom at $0000 - low 4 bits */ |
| 2401 | 2421 | vrom_bank[0] = (vrom_bank[0] & 0xf0) | (data & 0x0f); |
| 2402 | 2422 | vrom_bank[0] &= ((nes.chr_chunks << 3) - 1); |
| 2403 | | ppu2c0x_set_videorom_bank(0, 0, 1, vrom_bank[0], 64); |
| 2423 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, vrom_bank[0], 64); |
| 2404 | 2424 | break; |
| 2405 | 2425 | case 0x3002: |
| 2406 | 2426 | /* Switch 1k vrom at $0000 - high 4 bits */ |
| 2407 | 2427 | vrom_bank[0] = (vrom_bank[0] & 0x0f) | (data << 4); |
| 2408 | 2428 | vrom_bank[0] &= ((nes.chr_chunks << 3) - 1); |
| 2409 | | ppu2c0x_set_videorom_bank(0, 0, 1, vrom_bank[0], 64); |
| 2429 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, vrom_bank[0], 64); |
| 2410 | 2430 | break; |
| 2411 | 2431 | case 0x3001: |
| 2412 | 2432 | case 0x3004: |
| 2413 | 2433 | /* Switch 1k vrom at $0400 - low 4 bits */ |
| 2414 | 2434 | vrom_bank[1] = (vrom_bank[1] & 0xf0) | (data & 0x0f); |
| 2415 | 2435 | vrom_bank[1] &= ((nes.chr_chunks << 3) - 1); |
| 2416 | | ppu2c0x_set_videorom_bank(0, 1, 1, vrom_bank[1], 64); |
| 2436 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, vrom_bank[1], 64); |
| 2417 | 2437 | break; |
| 2418 | 2438 | case 0x3003: |
| 2419 | 2439 | case 0x3006: |
| 2420 | 2440 | /* Switch 1k vrom at $0400 - high 4 bits */ |
| 2421 | 2441 | vrom_bank[1] = (vrom_bank[1] & 0x0f) | (data << 4); |
| 2422 | 2442 | vrom_bank[1] &= ((nes.chr_chunks << 3) - 1); |
| 2423 | | ppu2c0x_set_videorom_bank(0, 1, 1, vrom_bank[1], 64); |
| 2443 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, vrom_bank[1], 64); |
| 2424 | 2444 | break; |
| 2425 | 2445 | case 0x4000: |
| 2426 | 2446 | /* Switch 1k vrom at $0800 - low 4 bits */ |
| 2427 | 2447 | vrom_bank[2] = (vrom_bank[2] & 0xf0) | (data & 0x0f); |
| 2428 | 2448 | vrom_bank[2] &= ((nes.chr_chunks << 3) - 1); |
| 2429 | | ppu2c0x_set_videorom_bank(0, 2, 1, vrom_bank[2], 64); |
| 2449 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, vrom_bank[2], 64); |
| 2430 | 2450 | break; |
| 2431 | 2451 | case 0x4002: |
| 2432 | 2452 | /* Switch 1k vrom at $0800 - high 4 bits */ |
| 2433 | 2453 | vrom_bank[2] = (vrom_bank[2] & 0x0f) | (data << 4); |
| 2434 | 2454 | vrom_bank[2] &= ((nes.chr_chunks << 3) - 1); |
| 2435 | | ppu2c0x_set_videorom_bank(0, 2, 1, vrom_bank[2], 64); |
| 2455 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, vrom_bank[2], 64); |
| 2436 | 2456 | break; |
| 2437 | 2457 | case 0x4001: |
| 2438 | 2458 | case 0x4004: |
| 2439 | 2459 | /* Switch 1k vrom at $0c00 - low 4 bits */ |
| 2440 | 2460 | vrom_bank[3] = (vrom_bank[3] & 0xf0) | (data & 0x0f); |
| 2441 | 2461 | vrom_bank[3] &= ((nes.chr_chunks << 3) - 1); |
| 2442 | | ppu2c0x_set_videorom_bank(0, 3, 1, vrom_bank[3], 64); |
| 2462 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, vrom_bank[3], 64); |
| 2443 | 2463 | break; |
| 2444 | 2464 | case 0x4003: |
| 2445 | 2465 | case 0x4006: |
| 2446 | 2466 | /* Switch 1k vrom at $0c00 - high 4 bits */ |
| 2447 | 2467 | vrom_bank[3] = (vrom_bank[3] & 0x0f) | (data << 4); |
| 2448 | 2468 | vrom_bank[3] &= ((nes.chr_chunks << 3) - 1); |
| 2449 | | ppu2c0x_set_videorom_bank(0, 3, 1, vrom_bank[3], 64); |
| 2469 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, vrom_bank[3], 64); |
| 2450 | 2470 | break; |
| 2451 | 2471 | case 0x5000: |
| 2452 | 2472 | /* Switch 1k vrom at $1000 - low 4 bits */ |
| 2453 | 2473 | vrom_bank[4] = (vrom_bank[4] & 0xf0) | (data & 0x0f); |
| 2454 | 2474 | vrom_bank[4] &= ((nes.chr_chunks << 3) - 1); |
| 2455 | | ppu2c0x_set_videorom_bank(0, 4, 1, vrom_bank[4], 64); |
| 2475 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, vrom_bank[4], 64); |
| 2456 | 2476 | break; |
| 2457 | 2477 | case 0x5002: |
| 2458 | 2478 | /* Switch 1k vrom at $1000 - high 4 bits */ |
| 2459 | 2479 | vrom_bank[4] = (vrom_bank[4] & 0x0f) | (data << 4); |
| 2460 | 2480 | vrom_bank[4] &= ((nes.chr_chunks << 3) - 1); |
| 2461 | | ppu2c0x_set_videorom_bank(0, 4, 1, vrom_bank[4], 64); |
| 2481 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, vrom_bank[4], 64); |
| 2462 | 2482 | break; |
| 2463 | 2483 | case 0x5001: |
| 2464 | 2484 | case 0x5004: |
| 2465 | 2485 | /* Switch 1k vrom at $1400 - low 4 bits */ |
| 2466 | 2486 | vrom_bank[5] = (vrom_bank[5] & 0xf0) | (data & 0x0f); |
| 2467 | 2487 | vrom_bank[5] &= ((nes.chr_chunks << 3) - 1); |
| 2468 | | ppu2c0x_set_videorom_bank(0, 5, 1, vrom_bank[5], 64); |
| 2488 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, vrom_bank[5], 64); |
| 2469 | 2489 | break; |
| 2470 | 2490 | case 0x5003: |
| 2471 | 2491 | case 0x5006: |
| 2472 | 2492 | /* Switch 1k vrom at $1400 - high 4 bits */ |
| 2473 | 2493 | vrom_bank[5] = (vrom_bank[5] & 0x0f) | (data << 4); |
| 2474 | 2494 | vrom_bank[5] &= ((nes.chr_chunks << 3) - 1); |
| 2475 | | ppu2c0x_set_videorom_bank(0, 5, 1, vrom_bank[5], 64); |
| 2495 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, vrom_bank[5], 64); |
| 2476 | 2496 | break; |
| 2477 | 2497 | case 0x6000: |
| 2478 | 2498 | /* Switch 1k vrom at $1800 - low 4 bits */ |
| 2479 | 2499 | vrom_bank[6] = (vrom_bank[6] & 0xf0) | (data & 0x0f); |
| 2480 | 2500 | vrom_bank[6] &= ((nes.chr_chunks << 3) - 1); |
| 2481 | | ppu2c0x_set_videorom_bank(0, 6, 1, vrom_bank[6], 64); |
| 2501 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, vrom_bank[6], 64); |
| 2482 | 2502 | break; |
| 2483 | 2503 | case 0x6002: |
| 2484 | 2504 | /* Switch 1k vrom at $1800 - high 4 bits */ |
| 2485 | 2505 | vrom_bank[6] = (vrom_bank[6] & 0x0f) | (data << 4); |
| 2486 | 2506 | vrom_bank[6] &= ((nes.chr_chunks << 3) - 1); |
| 2487 | | ppu2c0x_set_videorom_bank(0, 6, 1, vrom_bank[6], 64); |
| 2507 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, vrom_bank[6], 64); |
| 2488 | 2508 | break; |
| 2489 | 2509 | case 0x6001: |
| 2490 | 2510 | case 0x6004: |
| 2491 | 2511 | /* Switch 1k vrom at $1c00 - low 4 bits */ |
| 2492 | 2512 | vrom_bank[7] = (vrom_bank[7] & 0xf0) | (data & 0x0f); |
| 2493 | 2513 | vrom_bank[7] &= ((nes.chr_chunks << 3) - 1); |
| 2494 | | ppu2c0x_set_videorom_bank(0, 7, 1, vrom_bank[7], 64); |
| 2514 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, vrom_bank[7], 64); |
| 2495 | 2515 | break; |
| 2496 | 2516 | case 0x6003: |
| 2497 | 2517 | case 0x6006: |
| 2498 | 2518 | /* Switch 1k vrom at $1c00 - high 4 bits */ |
| 2499 | 2519 | vrom_bank[7] = (vrom_bank[7] & 0x0f) | (data << 4); |
| 2500 | 2520 | vrom_bank[7] &= ((nes.chr_chunks << 3) - 1); |
| 2501 | | ppu2c0x_set_videorom_bank(0, 7, 1, vrom_bank[7], 64); |
| 2521 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, vrom_bank[7], 64); |
| 2502 | 2522 | break; |
| 2503 | 2523 | case 0x7000: |
| 2504 | 2524 | /* Set low 4 bits of latch */ |
| r4499 | r4500 | |
| 2553 | 2573 | case 0x3003: |
| 2554 | 2574 | switch (data & 0x0c) |
| 2555 | 2575 | { |
| 2556 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 2557 | | case 0x04: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 2558 | | case 0x08: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 2559 | | case 0x0c: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 2576 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 2577 | case 0x04: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 2578 | case 0x08: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 2579 | case 0x0c: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 2560 | 2580 | } |
| 2561 | 2581 | break; |
| 2562 | 2582 | case 0x4000: case 0x4001: case 0x4002: case 0x4003: |
| r4499 | r4500 | |
| 2568 | 2588 | case 0x5002: |
| 2569 | 2589 | case 0x5003: |
| 2570 | 2590 | /* switch 1k VROM at $0000-$0c00 */ |
| 2571 | | ppu2c0x_set_videorom_bank(0, (offset & 3) + 0, 1, data, 64); |
| 2591 | ppu2c0x_set_videorom_bank(state->ppu, (offset & 3) + 0, 1, data, 64); |
| 2572 | 2592 | break; |
| 2573 | 2593 | |
| 2574 | 2594 | case 0x6000: |
| r4499 | r4500 | |
| 2576 | 2596 | case 0x6002: |
| 2577 | 2597 | case 0x6003: |
| 2578 | 2598 | /* switch 1k VROM at $1000-$1c00 */ |
| 2579 | | ppu2c0x_set_videorom_bank(0, (offset & 3) + 4, 1, data, 64); |
| 2599 | ppu2c0x_set_videorom_bank(state->ppu, (offset & 3) + 4, 1, data, 64); |
| 2580 | 2600 | break; |
| 2581 | 2601 | |
| 2582 | 2602 | case 0x7000: |
| r4499 | r4500 | |
| 2616 | 2636 | case 0x3003: |
| 2617 | 2637 | switch (data & 0x0c) |
| 2618 | 2638 | { |
| 2619 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 2620 | | case 0x04: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 2621 | | case 0x08: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 2622 | | case 0x0c: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 2639 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 2640 | case 0x04: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 2641 | case 0x08: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 2642 | case 0x0c: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 2623 | 2643 | } |
| 2624 | 2644 | break; |
| 2625 | 2645 | case 0x4000: case 0x4001: case 0x4002: case 0x4003: |
| r4499 | r4500 | |
| 2628 | 2648 | break; |
| 2629 | 2649 | case 0x5000: |
| 2630 | 2650 | /* Switch 1k VROM at $0000 */ |
| 2631 | | ppu2c0x_set_videorom_bank(0, 0, 1, data, 64); |
| 2651 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, data, 64); |
| 2632 | 2652 | break; |
| 2633 | 2653 | case 0x5002: |
| 2634 | 2654 | /* Switch 1k VROM at $0400 */ |
| 2635 | | ppu2c0x_set_videorom_bank(0, 1, 1, data, 64); |
| 2655 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, data, 64); |
| 2636 | 2656 | break; |
| 2637 | 2657 | case 0x5001: |
| 2638 | 2658 | /* Switch 1k VROM at $0800 */ |
| 2639 | | ppu2c0x_set_videorom_bank(0, 2, 1, data, 64); |
| 2659 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, data, 64); |
| 2640 | 2660 | break; |
| 2641 | 2661 | case 0x5003: |
| 2642 | 2662 | /* Switch 1k VROM at $0c00 */ |
| 2643 | | ppu2c0x_set_videorom_bank(0, 3, 1, data, 64); |
| 2663 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, data, 64); |
| 2644 | 2664 | break; |
| 2645 | 2665 | case 0x6000: |
| 2646 | 2666 | /* Switch 1k VROM at $1000 */ |
| 2647 | | ppu2c0x_set_videorom_bank(0, 4, 1, data, 64); |
| 2667 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, data, 64); |
| 2648 | 2668 | break; |
| 2649 | 2669 | case 0x6002: |
| 2650 | 2670 | /* Switch 1k VROM at $1400 */ |
| 2651 | | ppu2c0x_set_videorom_bank(0, 5, 1, data, 64); |
| 2671 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, data, 64); |
| 2652 | 2672 | break; |
| 2653 | 2673 | case 0x6001: |
| 2654 | 2674 | /* Switch 1k VROM at $1800 */ |
| 2655 | | ppu2c0x_set_videorom_bank(0, 6, 1, data, 64); |
| 2675 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, data, 64); |
| 2656 | 2676 | break; |
| 2657 | 2677 | case 0x6003: |
| 2658 | 2678 | /* Switch 1k VROM at $1c00 */ |
| 2659 | | ppu2c0x_set_videorom_bank(0, 7, 1, data, 64); |
| 2679 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, data, 64); |
| 2660 | 2680 | break; |
| 2661 | 2681 | case 0x7000: |
| 2662 | 2682 | IRQ_count_latch = data; |
| r4499 | r4500 | |
| 2694 | 2714 | case 0x1000: |
| 2695 | 2715 | bankSel = data & 0x02; |
| 2696 | 2716 | if (data & 0x01) |
| 2697 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 2717 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 2698 | 2718 | else |
| 2699 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 2719 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 2700 | 2720 | break; |
| 2701 | 2721 | case 0x2000: |
| 2702 | 2722 | /* Switch 8k bank at $A000 */ |
| r4499 | r4500 | |
| 2704 | 2724 | break; |
| 2705 | 2725 | case 0x3000: |
| 2706 | 2726 | /* Switch 1k VROM at $1000 */ |
| 2707 | | ppu2c0x_set_videorom_bank(0, offset & 0x07, 1, data, 64); |
| 2727 | ppu2c0x_set_videorom_bank(state->ppu, offset & 0x07, 1, data, 64); |
| 2708 | 2728 | break; |
| 2709 | 2729 | default: |
| 2710 | 2730 | logerror("Uncaught mapper 32 write, addr: %04x value: %02x\n", offset + 0x8000, data); |
| r4499 | r4500 | |
| 2731 | 2751 | break; |
| 2732 | 2752 | case 0x0002: |
| 2733 | 2753 | /* Switch 2k VROM at $0000 */ |
| 2734 | | ppu2c0x_set_videorom_bank(0, 0, 2, data, 128); |
| 2754 | ppu2c0x_set_videorom_bank(state->ppu, 0, 2, data, 128); |
| 2735 | 2755 | break; |
| 2736 | 2756 | case 0x0003: |
| 2737 | 2757 | /* Switch 2k VROM at $0800 */ |
| 2738 | | ppu2c0x_set_videorom_bank(0, 2, 2, data, 128); |
| 2758 | ppu2c0x_set_videorom_bank(state->ppu, 2, 2, data, 128); |
| 2739 | 2759 | break; |
| 2740 | 2760 | case 0x2000: |
| 2741 | 2761 | /* Switch 1k VROM at $1000 */ |
| 2742 | | ppu2c0x_set_videorom_bank(0, 4, 1, data, 64); |
| 2762 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, data, 64); |
| 2743 | 2763 | break; |
| 2744 | 2764 | case 0x2001: |
| 2745 | 2765 | /* Switch 1k VROM at $1400 */ |
| 2746 | | ppu2c0x_set_videorom_bank(0, 5, 1, data, 64); |
| 2766 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, data, 64); |
| 2747 | 2767 | break; |
| 2748 | 2768 | case 0x2002: |
| 2749 | 2769 | /* Switch 1k VROM at $1800 */ |
| 2750 | | ppu2c0x_set_videorom_bank(0, 6, 1, data, 64); |
| 2770 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, data, 64); |
| 2751 | 2771 | break; |
| 2752 | 2772 | case 0x2003: |
| 2753 | 2773 | /* Switch 1k VROM at $1c00 */ |
| 2754 | | ppu2c0x_set_videorom_bank(0, 7, 1, data, 64); |
| 2774 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, data, 64); |
| 2755 | 2775 | break; |
| 2756 | 2776 | default: |
| 2757 | 2777 | logerror("Uncaught mapper 33 write, addr: %04x value: %02x\n", offset + 0x8000, data); |
| r4499 | r4500 | |
| 2824 | 2844 | |
| 2825 | 2845 | static WRITE8_HANDLER( mapper41_m_w ) |
| 2826 | 2846 | { |
| 2847 | nes_state *state = space->machine->driver_data; |
| 2848 | |
| 2827 | 2849 | LOG_MMC(("mapper41_m_w, offset: %04x, data: %02x\n", offset, data)); |
| 2828 | 2850 | |
| 2829 | 2851 | if (offset & 0x20) |
| 2830 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 2852 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 2831 | 2853 | else |
| 2832 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 2854 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 2833 | 2855 | |
| 2834 | 2856 | mapper41_reg2 = offset & 0x04; |
| 2835 | 2857 | mapper41_chr &= ~0x0c; |
| r4499 | r4500 | |
| 2839 | 2861 | |
| 2840 | 2862 | static WRITE8_HANDLER( mapper41_w ) |
| 2841 | 2863 | { |
| 2864 | nes_state *state = space->machine->driver_data; |
| 2865 | |
| 2842 | 2866 | LOG_MMC(("mapper41_w, offset: %04x, data: %02x\n", offset, data)); |
| 2843 | 2867 | |
| 2844 | 2868 | if (mapper41_reg2) |
| 2845 | 2869 | { |
| 2846 | 2870 | mapper41_chr &= ~0x03; |
| 2847 | 2871 | mapper41_chr |= data & 0x03; |
| 2848 | | chr8(mapper41_chr); |
| 2872 | chr8(space->machine, mapper41_chr); |
| 2849 | 2873 | } |
| 2850 | 2874 | } |
| 2851 | 2875 | |
| 2852 | 2876 | static WRITE8_HANDLER( mapper42_w ) |
| 2853 | 2877 | { |
| 2878 | nes_state *state = space->machine->driver_data; |
| 2879 | |
| 2854 | 2880 | LOG_MMC(("mapper42_w, offset: %04x, data: %02x\n", offset, data)); |
| 2855 | 2881 | |
| 2856 | 2882 | if ( offset >= 0x7000 ) |
| r4499 | r4500 | |
| 2861 | 2887 | memory_set_bankptr (space->machine, 5, &nes.rom[( data & ( ( nes.prg_chunks << 1 ) -1 ) ) * 0x2000 + 0x10000]); |
| 2862 | 2888 | break; |
| 2863 | 2889 | case 0x01: |
| 2864 | | ppu2c0x_set_mirroring( 0, ( data & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 2890 | ppu2c0x_set_mirroring( state->ppu, ( data & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 2865 | 2891 | break; |
| 2866 | 2892 | case 0x02: |
| 2867 | 2893 | /* Check if IRQ is being enabled */ |
| r4499 | r4500 | |
| 2884 | 2910 | |
| 2885 | 2911 | LOG_MMC(("mapper43_w, offset: %04x, data: %02x\n", offset, data)); |
| 2886 | 2912 | |
| 2887 | | ppu2c0x_set_mirroring( 0, ( offset & 0x2000 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 2913 | ppu2c0x_set_mirroring( state->ppu, ( offset & 0x2000 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 2888 | 2914 | |
| 2889 | 2915 | if ( offset & 0x0800 ) |
| 2890 | 2916 | { |
| r4499 | r4500 | |
| 3036 | 3062 | } |
| 3037 | 3063 | |
| 3038 | 3064 | static void mapper51_set_banks( const address_space *space ) { |
| 3039 | | ppu2c0x_set_mirroring( 0, ( MMC1_bank1 == 3 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3065 | ppu2c0x_set_mirroring( state->ppu, ( MMC1_bank1 == 3 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3040 | 3066 | |
| 3041 | 3067 | if ( MMC1_bank1 & 0x01 ) { |
| 3042 | 3068 | prg32( space, MMC1_bank2 ); |
| r4499 | r4500 | |
| 3083 | 3109 | prg16_cdef( space, ( MMC1_bank2 >> 5 ) & 0x03 ); |
| 3084 | 3110 | } |
| 3085 | 3111 | |
| 3086 | | ppu2c0x_set_mirroring( 0, ( MMC1_bank2 & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3112 | ppu2c0x_set_mirroring( state->ppu, ( MMC1_bank2 & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3087 | 3113 | |
| 3088 | 3114 | chr8( ( MMC1_bank1 & 0x03 ) | ( MMC1_bank2 & 0x07 ) | ( ( MMC1_bank2 & 0x10 ) >> 1 ) ); |
| 3089 | 3115 | } |
| r4499 | r4500 | |
| 3102 | 3128 | |
| 3103 | 3129 | chr8( ( offset & 0x38 ) >> 3 ); |
| 3104 | 3130 | |
| 3105 | | ppu2c0x_set_mirroring( 0, ( data & 0x02 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3131 | ppu2c0x_set_mirroring( state->ppu, ( data & 0x02 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3106 | 3132 | } |
| 3107 | 3133 | } |
| 3108 | 3134 | |
| r4499 | r4500 | |
| 3121 | 3147 | prg16_cdef( space, ( ( offset & 0x0F ) << 1 ) | ( ( offset & 0x20 ) >> 4 ) ); |
| 3122 | 3148 | break; |
| 3123 | 3149 | } |
| 3124 | | ppu2c0x_set_mirroring( 0, ( offset & 0x80 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3150 | ppu2c0x_set_mirroring( state->ppu, ( offset & 0x80 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3125 | 3151 | } |
| 3126 | 3152 | |
| 3127 | 3153 | static WRITE8_HANDLER( mapper62_w ) |
| r4499 | r4500 | |
| 3137 | 3163 | prg32( space, ( ( offset & 0x40 ) | ( ( offset >> 8 ) & 0x3F ) ) >> 1 ); |
| 3138 | 3164 | } |
| 3139 | 3165 | |
| 3140 | | ppu2c0x_set_mirroring( 0, ( offset & 0x80 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3166 | ppu2c0x_set_mirroring( state->ppu, ( offset & 0x80 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 3141 | 3167 | } |
| 3142 | 3168 | |
| 3143 | 3169 | static void mapper64_set_banks( const address_space *space ) { |
| 3144 | 3170 | if ( mapper64_cmd & 0x20 ) { |
| 3145 | | chr1_0( mapper64_data[0] ); |
| 3146 | | chr1_2( mapper64_data[1] ); |
| 3147 | | chr1_1( mapper64_data[8] ); |
| 3148 | | chr1_3( mapper64_data[9] ); |
| 3171 | chr1_0( space->machine, mapper64_data[0] ); |
| 3172 | chr1_2( space->machine, mapper64_data[1] ); |
| 3173 | chr1_1( space->machine, mapper64_data[8] ); |
| 3174 | chr1_3( space->machine, mapper64_data[9] ); |
| 3149 | 3175 | } else { |
| 3150 | | chr1_0( mapper64_data[0] & 0xFE ); |
| 3151 | | chr1_1( ( mapper64_data[0] & 0xFE ) | 1 ); |
| 3152 | | chr1_2( mapper64_data[1] & 0xFE ); |
| 3153 | | chr1_3( ( mapper64_data[1] & 0xFE ) | 1 ); |
| 3176 | chr1_0( space->machine, mapper64_data[0] & 0xFE ); |
| 3177 | chr1_1( space->machine, ( mapper64_data[0] & 0xFE ) | 1 ); |
| 3178 | chr1_2( space->machine, mapper64_data[1] & 0xFE ); |
| 3179 | chr1_3( space->machine, ( mapper64_data[1] & 0xFE ) | 1 ); |
| 3154 | 3180 | } |
| 3155 | | chr1_4( mapper64_data[2] ); |
| 3156 | | chr1_5( mapper64_data[3] ); |
| 3157 | | chr1_6( mapper64_data[4] ); |
| 3158 | | chr1_7( mapper64_data[5] ); |
| 3181 | chr1_4( space->machine, mapper64_data[2] ); |
| 3182 | chr1_5( space->machine, mapper64_data[3] ); |
| 3183 | chr1_6( space->machine, mapper64_data[4] ); |
| 3184 | chr1_7( space->machine, mapper64_data[5] ); |
| 3159 | 3185 | |
| 3160 | 3186 | prg8_89( space, mapper64_data[6] ); |
| 3161 | 3187 | prg8_ab( space, mapper64_data[7] ); |
| r4499 | r4500 | |
| 3190 | 3216 | case 0x2000: |
| 3191 | 3217 | /* Not sure if the one-screen mirroring applies to this mapper */ |
| 3192 | 3218 | if (data & 0x40) |
| 3193 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); |
| 3219 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); |
| 3194 | 3220 | else |
| 3195 | 3221 | { |
| 3196 | 3222 | if (data & 0x01) |
| 3197 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 3223 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 3198 | 3224 | else |
| 3199 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 3225 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 3200 | 3226 | } |
| 3201 | 3227 | break; |
| 3202 | 3228 | case 0x4000: /* $c000 - IRQ scanline counter */ |
| r4499 | r4500 | |
| 3259 | 3285 | break; |
| 3260 | 3286 | case 0x1001: |
| 3261 | 3287 | if (data & 0x80) |
| 3262 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 3288 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 3263 | 3289 | else |
| 3264 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 3290 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 3265 | 3291 | break; |
| 3266 | 3292 | case 0x1005: |
| 3267 | 3293 | IRQ_count = data << 1; |
| r4499 | r4500 | |
| 3286 | 3312 | case 0x3006: |
| 3287 | 3313 | case 0x3007: |
| 3288 | 3314 | /* Switch 1k VROM at $0000-$1c00 */ |
| 3289 | | ppu2c0x_set_videorom_bank(0, offset & 7, 1, data, 64); |
| 3315 | ppu2c0x_set_videorom_bank(state->ppu, offset & 7, 1, data, 64); |
| 3290 | 3316 | break; |
| 3291 | 3317 | |
| 3292 | 3318 | case 0x4000: |
| r4499 | r4500 | |
| 3364 | 3390 | case 0x6801: |
| 3365 | 3391 | switch(data&3) |
| 3366 | 3392 | { |
| 3367 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 3368 | | case 0x01: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 3369 | | case 0x02: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 3370 | | case 0x03: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 3393 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 3394 | case 0x01: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 3395 | case 0x02: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 3396 | case 0x03: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 3371 | 3397 | } |
| 3372 | 3398 | break; |
| 3373 | 3399 | case 0x7800: |
| r4499 | r4500 | |
| 3388 | 3414 | |
| 3389 | 3415 | switch (m68_mirror) |
| 3390 | 3416 | { |
| 3391 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 3392 | | case 0x01: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 3393 | | case 0x02: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 3394 | | case 0x03: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 3417 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 3418 | case 0x01: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 3419 | case 0x02: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 3420 | case 0x03: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 3395 | 3421 | case 0x10: |
| 3396 | 3422 | ppu_mirror_custom_vrom (0, (m0 << 10) + M68_OFFSET); |
| 3397 | 3423 | ppu_mirror_custom_vrom (1, (m1 << 10) + M68_OFFSET); |
| r4499 | r4500 | |
| 3480 | 3506 | switch (cmd) |
| 3481 | 3507 | { |
| 3482 | 3508 | case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: |
| 3483 | | ppu2c0x_set_videorom_bank(0, cmd, 1, data, 64); |
| 3509 | ppu2c0x_set_videorom_bank(state->ppu, cmd, 1, data, 64); |
| 3484 | 3510 | break; |
| 3485 | 3511 | |
| 3486 | 3512 | /* TODO: deal with bankswitching/write-protecting the mid-mapper area */ |
| r4499 | r4500 | |
| 3507 | 3533 | case 12: |
| 3508 | 3534 | switch (data & 0x03) |
| 3509 | 3535 | { |
| 3510 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 3511 | | case 0x01: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 3512 | | case 0x02: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 3513 | | case 0x03: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 3536 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 3537 | case 0x01: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 3538 | case 0x02: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 3539 | case 0x03: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 3514 | 3540 | } |
| 3515 | 3541 | break; |
| 3516 | 3542 | case 13: |
| r4499 | r4500 | |
| 3543 | 3569 | |
| 3544 | 3570 | #if 1 |
| 3545 | 3571 | if (data & 0x80) |
| 3546 | | // ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 3547 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); |
| 3572 | // ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 3573 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); |
| 3548 | 3574 | else |
| 3549 | | // ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 3550 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 3575 | // ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 3576 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 3551 | 3577 | #endif |
| 3552 | 3578 | } |
| 3553 | 3579 | |
| r4499 | r4500 | |
| 3618 | 3644 | break; |
| 3619 | 3645 | case 0x1000: /* TODO: verify */ |
| 3620 | 3646 | if (data & 0x01) |
| 3621 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 3647 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 3622 | 3648 | else |
| 3623 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 3649 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 3624 | 3650 | /* vrom banking as well? */ |
| 3625 | 3651 | break; |
| 3626 | 3652 | case 0x2000: |
| r4499 | r4500 | |
| 3658 | 3684 | default:logerror("mapper76 unsupported command: %02x, data: %02x\n", cmd, data);break; |
| 3659 | 3685 | } |
| 3660 | 3686 | } |
| 3661 | | case 0x2000: (data&1)?ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ):ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT);break; |
| 3687 | case 0x2000: (data&1)?ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ):ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT);break; |
| 3662 | 3688 | default: logerror("mapper76 unmapped write, offset: %04x, data: %02x\n", offset, data);break; |
| 3663 | 3689 | } |
| 3664 | 3690 | } |
| r4499 | r4500 | |
| 3752 | 3778 | break; |
| 3753 | 3779 | case 0x1ef2: |
| 3754 | 3780 | /* Switch 1k VROM at $1000 */ |
| 3755 | | ppu2c0x_set_videorom_bank(0, 4, 1, data, 64); |
| 3781 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, data, 64); |
| 3756 | 3782 | break; |
| 3757 | 3783 | case 0x1ef3: |
| 3758 | 3784 | /* Switch 1k VROM at $1400 */ |
| 3759 | | ppu2c0x_set_videorom_bank(0, 5, 1, data, 64); |
| 3785 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, data, 64); |
| 3760 | 3786 | break; |
| 3761 | 3787 | case 0x1ef4: |
| 3762 | 3788 | /* Switch 1k VROM at $1800 */ |
| 3763 | | ppu2c0x_set_videorom_bank(0, 6, 1, data, 64); |
| 3789 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, data, 64); |
| 3764 | 3790 | break; |
| 3765 | 3791 | case 0x1ef5: |
| 3766 | 3792 | /* Switch 1k VROM at $1c00 */ |
| 3767 | | ppu2c0x_set_videorom_bank(0, 7, 1, data, 64); |
| 3793 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, data, 64); |
| 3768 | 3794 | break; |
| 3769 | 3795 | case 0x1efa: case 0x1efb: |
| 3770 | 3796 | /* Switch 8k ROM at $8000 */ |
| r4499 | r4500 | |
| 3810 | 3836 | break; |
| 3811 | 3837 | case 0x1ef2: |
| 3812 | 3838 | /* Switch 1k VROM at $1000 */ |
| 3813 | | ppu2c0x_set_videorom_bank(0, 4 ^ vrom_switch, 1, data, 64); |
| 3839 | ppu2c0x_set_videorom_bank(state->ppu, 4 ^ vrom_switch, 1, data, 64); |
| 3814 | 3840 | break; |
| 3815 | 3841 | case 0x1ef3: |
| 3816 | 3842 | /* Switch 1k VROM at $1400 */ |
| 3817 | | ppu2c0x_set_videorom_bank(0, 5 ^ vrom_switch, 1, data, 64); |
| 3843 | ppu2c0x_set_videorom_bank(state->ppu, 5 ^ vrom_switch, 1, data, 64); |
| 3818 | 3844 | break; |
| 3819 | 3845 | case 0x1ef4: |
| 3820 | 3846 | /* Switch 1k VROM at $1800 */ |
| 3821 | | ppu2c0x_set_videorom_bank(0, 6 ^ vrom_switch, 1, data, 64); |
| 3847 | ppu2c0x_set_videorom_bank(state->ppu, 6 ^ vrom_switch, 1, data, 64); |
| 3822 | 3848 | break; |
| 3823 | 3849 | case 0x1ef5: |
| 3824 | 3850 | /* Switch 1k VROM at $1c00 */ |
| 3825 | | ppu2c0x_set_videorom_bank(0, 7 ^ vrom_switch, 1, data, 64); |
| 3851 | ppu2c0x_set_videorom_bank(state->ppu, 7 ^ vrom_switch, 1, data, 64); |
| 3826 | 3852 | break; |
| 3827 | 3853 | case 0x1ef6: |
| 3828 | | (data&0x1)?ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT):ppu2c0x_set_mirroring(0,PPU_MIRROR_HORZ); |
| 3854 | (data&0x1)?ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT):ppu2c0x_set_mirroring(state->ppu,PPU_MIRROR_HORZ); |
| 3829 | 3855 | //doc says 1= swapped. Causes in-game issues, but mostly fixes title screen |
| 3830 | 3856 | vrom_switch = ((data & 0x02) << 1); |
| 3831 | 3857 | break; |
| r4499 | r4500 | |
| 3863 | 3889 | prg16_cdef( space, ( mapper83_data[8] & 0x30 ) | 0x0F ); |
| 3864 | 3890 | } |
| 3865 | 3891 | |
| 3866 | | static void mapper83_set_chr( void ) { |
| 3867 | | chr1_0( mapper83_data[0] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3868 | | chr1_1( mapper83_data[1] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3869 | | chr1_2( mapper83_data[2] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3870 | | chr1_3( mapper83_data[3] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3871 | | chr1_4( mapper83_data[4] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3872 | | chr1_5( mapper83_data[5] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3873 | | chr1_6( mapper83_data[6] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3874 | | chr1_7( mapper83_data[7] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3892 | static void mapper83_set_chr( running_machine *machine ) { |
| 3893 | chr1_0( machine, mapper83_data[0] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3894 | chr1_1( machine, mapper83_data[1] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3895 | chr1_2( machine, mapper83_data[2] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3896 | chr1_3( machine, mapper83_data[3] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3897 | chr1_4( machine, mapper83_data[4] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3898 | chr1_5( machine, mapper83_data[5] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3899 | chr1_6( machine, mapper83_data[6] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3900 | chr1_7( machine, mapper83_data[7] | ( ( mapper83_data[8] & 0x30 ) << 4 ) ); |
| 3875 | 3901 | } |
| 3876 | 3902 | |
| 3877 | 3903 | static WRITE8_HANDLER( mapper83_w ) |
| 3878 | 3904 | { |
| 3905 | nes_state *state = space->machine->driver_data; |
| 3906 | |
| 3879 | 3907 | LOG_MMC(("mapper83_w, offset: %04x, data: %02x\n", offset, data)); |
| 3880 | 3908 | |
| 3881 | 3909 | switch( offset ) { |
| r4499 | r4500 | |
| 3890 | 3918 | case 0x0100: |
| 3891 | 3919 | switch( data & 0x03 ) { |
| 3892 | 3920 | case 0: |
| 3893 | | ppu2c0x_set_mirroring( 0, PPU_MIRROR_VERT ); |
| 3921 | ppu2c0x_set_mirroring( state->ppu, PPU_MIRROR_VERT ); |
| 3894 | 3922 | break; |
| 3895 | 3923 | case 1: |
| 3896 | | ppu2c0x_set_mirroring( 0, PPU_MIRROR_HORZ ); |
| 3924 | ppu2c0x_set_mirroring( state->ppu, PPU_MIRROR_HORZ ); |
| 3897 | 3925 | break; |
| 3898 | 3926 | case 2: |
| 3899 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 3927 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 3900 | 3928 | break; |
| 3901 | 3929 | case 3: |
| 3902 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); |
| 3930 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); |
| 3903 | 3931 | break; |
| 3904 | 3932 | } |
| 3905 | 3933 | break; |
| r4499 | r4500 | |
| 3961 | 3989 | |
| 3962 | 3990 | case 0x2000: |
| 3963 | 3991 | /* Switch 1k VROM at $0000 */ |
| 3964 | | ppu2c0x_set_videorom_bank(0, 0, 1, data, 64); |
| 3992 | ppu2c0x_set_videorom_bank(state->ppu, 0, 1, data, 64); |
| 3965 | 3993 | break; |
| 3966 | 3994 | case 0x2008: case 0x2010: case 0x2018: |
| 3967 | 3995 | /* Switch 1k VROM at $0400 */ |
| 3968 | | ppu2c0x_set_videorom_bank(0, 1, 1, data, 64); |
| 3996 | ppu2c0x_set_videorom_bank(state->ppu, 1, 1, data, 64); |
| 3969 | 3997 | break; |
| 3970 | 3998 | case 0x3000: |
| 3971 | 3999 | /* Switch 1k VROM at $0800 */ |
| 3972 | | ppu2c0x_set_videorom_bank(0, 2, 1, data, 64); |
| 4000 | ppu2c0x_set_videorom_bank(state->ppu, 2, 1, data, 64); |
| 3973 | 4001 | break; |
| 3974 | 4002 | case 0x3008: case 0x3010: case 0x3018: |
| 3975 | 4003 | /* Switch 1k VROM at $0c00 */ |
| 3976 | | ppu2c0x_set_videorom_bank(0, 3, 1, data, 64); |
| 4004 | ppu2c0x_set_videorom_bank(state->ppu, 3, 1, data, 64); |
| 3977 | 4005 | break; |
| 3978 | 4006 | case 0x4000: |
| 3979 | 4007 | /* Switch 1k VROM at $1000 */ |
| 3980 | | ppu2c0x_set_videorom_bank(0, 4, 1, data, 64); |
| 4008 | ppu2c0x_set_videorom_bank(state->ppu, 4, 1, data, 64); |
| 3981 | 4009 | break; |
| 3982 | 4010 | case 0x4008: case 0x4010: case 0x4018: |
| 3983 | 4011 | /* Switch 1k VROM at $1400 */ |
| 3984 | | ppu2c0x_set_videorom_bank(0, 5, 1, data, 64); |
| 4012 | ppu2c0x_set_videorom_bank(state->ppu, 5, 1, data, 64); |
| 3985 | 4013 | break; |
| 3986 | 4014 | case 0x5000: |
| 3987 | 4015 | /* Switch 1k VROM at $1800 */ |
| 3988 | | ppu2c0x_set_videorom_bank(0, 6, 1, data, 64); |
| 4016 | ppu2c0x_set_videorom_bank(state->ppu, 6, 1, data, 64); |
| 3989 | 4017 | break; |
| 3990 | 4018 | case 0x5008: case 0x5010: case 0x5018: |
| 3991 | 4019 | /* Switch 1k VROM at $1c00 */ |
| 3992 | | ppu2c0x_set_videorom_bank(0, 7, 1, data, 64); |
| 4020 | ppu2c0x_set_videorom_bank(state->ppu, 7, 1, data, 64); |
| 3993 | 4021 | break; |
| 3994 | 4022 | |
| 3995 | 4023 | case 0x6000: |
| 3996 | 4024 | switch (data & 0x03) |
| 3997 | 4025 | { |
| 3998 | | case 0x00: ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); break; |
| 3999 | | case 0x01: ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); break; |
| 4000 | | case 0x02: ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); break; |
| 4001 | | case 0x03: ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); break; |
| 4026 | case 0x00: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); break; |
| 4027 | case 0x01: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); break; |
| 4028 | case 0x02: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); break; |
| 4029 | case 0x03: ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); break; |
| 4002 | 4030 | } |
| 4003 | 4031 | break; |
| 4004 | 4032 | case 0x6008: case 0x6010: case 0x6018: |
| r4499 | r4500 | |
| 4049 | 4077 | prg16_89ab(space, (data>>4)&7); |
| 4050 | 4078 | chr=(data&7)|((data&0x80)?8:0); |
| 4051 | 4079 | chr8(chr); |
| 4052 | | (data&8)?ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH):ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 4080 | (data&8)?ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH):ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 4053 | 4081 | |
| 4054 | 4082 | } |
| 4055 | 4083 | |
| r4499 | r4500 | |
| 4141 | 4169 | if(offset&0x4000) |
| 4142 | 4170 | return; |
| 4143 | 4171 | if(data&0x80) |
| 4144 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 4145 | | else ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 4172 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 4173 | else ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 4146 | 4174 | prg16_cdef(space, data&0x0F); |
| 4147 | 4175 | } |
| 4148 | 4176 | static WRITE8_HANDLER( mapper101_m_w ) |
| r4499 | r4500 | |
| 4200 | 4228 | } |
| 4201 | 4229 | break; |
| 4202 | 4230 | case 0x6000: |
| 4203 | | ppu2c0x_set_mirroring( 0, ( data & 0x01 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4231 | ppu2c0x_set_mirroring( state->ppu, ( data & 0x01 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4204 | 4232 | break; |
| 4205 | 4233 | } |
| 4206 | 4234 | } |
| r4499 | r4500 | |
| 4263 | 4291 | |
| 4264 | 4292 | switch( offset & 0x7003 ) { |
| 4265 | 4293 | case 0x0001: |
| 4266 | | ppu2c0x_set_mirroring( 0, ( data & 0x01 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4294 | ppu2c0x_set_mirroring( state->ppu, ( data & 0x01 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4267 | 4295 | break; |
| 4268 | 4296 | case 0x2000: |
| 4269 | 4297 | MMC1_bank1 = data; |
| r4499 | r4500 | |
| 4370 | 4398 | prg16_cdef( space, offset & 0x07 ); |
| 4371 | 4399 | chr8( offset & 0x07 ); |
| 4372 | 4400 | |
| 4373 | | ppu2c0x_set_mirroring( 0, ( offset & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4401 | ppu2c0x_set_mirroring( state->ppu, ( offset & 0x08 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4374 | 4402 | } |
| 4375 | 4403 | |
| 4376 | 4404 | static WRITE8_HANDLER( mapper201_w ) |
| r4499 | r4500 | |
| 4396 | 4424 | prg16_cdef( space, bank + ( ( ( bank & 0x06 ) == 0x06 ) ? 1 : 0 ) ); |
| 4397 | 4425 | chr8( bank ); |
| 4398 | 4426 | |
| 4399 | | ppu2c0x_set_mirroring( 0, ( offset & 0x01 ) ? PPU_MIRROR_HORZ: PPU_MIRROR_VERT ); |
| 4427 | ppu2c0x_set_mirroring( state->ppu, ( offset & 0x01 ) ? PPU_MIRROR_HORZ: PPU_MIRROR_VERT ); |
| 4400 | 4428 | } |
| 4401 | 4429 | |
| 4402 | 4430 | static WRITE8_HANDLER( mapper203_w ) |
| r4499 | r4500 | |
| 4441 | 4469 | prg32 (space, bank); |
| 4442 | 4470 | |
| 4443 | 4471 | if (offset & 0x2000) |
| 4444 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 4472 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 4445 | 4473 | else |
| 4446 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 4474 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 4447 | 4475 | } |
| 4448 | 4476 | |
| 4449 | 4477 | static WRITE8_HANDLER( mapper226_w ) |
| r4499 | r4500 | |
| 4467 | 4495 | hi_bank = reg0 & 0x01; |
| 4468 | 4496 | size_16 = reg0 & 0x20; |
| 4469 | 4497 | if (reg0 & 0x40) |
| 4470 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 4498 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 4471 | 4499 | else |
| 4472 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 4500 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 4473 | 4501 | |
| 4474 | 4502 | bank = ((reg0 & 0x1e) >> 1) | ((reg1 & 0x01) << 4); |
| 4475 | 4503 | |
| r4499 | r4500 | |
| 4518 | 4546 | } |
| 4519 | 4547 | |
| 4520 | 4548 | if (offset & 0x02) |
| 4521 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 4549 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 4522 | 4550 | else |
| 4523 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 4551 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 4524 | 4552 | } |
| 4525 | 4553 | |
| 4526 | 4554 | static WRITE8_HANDLER( mapper228_w ) |
| r4499 | r4500 | |
| 4567 | 4595 | } |
| 4568 | 4596 | |
| 4569 | 4597 | if (offset & 0x2000) |
| 4570 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 4598 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 4571 | 4599 | else |
| 4572 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 4600 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 4573 | 4601 | |
| 4574 | 4602 | /* Now handle vrom banking */ |
| 4575 | 4603 | chr = (data & 0x03) + ((offset & 0x0f) << 2); |
| r4499 | r4500 | |
| 4581 | 4609 | LOG_MMC(("mapper229_w, offset: %04x, data: %02x\n", offset, data)); |
| 4582 | 4610 | |
| 4583 | 4611 | if (offset & 0x20) |
| 4584 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HORZ); |
| 4612 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HORZ); |
| 4585 | 4613 | else |
| 4586 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 4614 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 4587 | 4615 | |
| 4588 | 4616 | if ((offset & 0x1e) == 0) |
| 4589 | 4617 | { |
| r4499 | r4500 | |
| 4611 | 4639 | } else { |
| 4612 | 4640 | prg32( space, ( ( data & 0x1E ) >> 1 ) + 4 ); |
| 4613 | 4641 | } |
| 4614 | | ppu2c0x_set_mirroring( 0, ( data & 0x40 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4642 | ppu2c0x_set_mirroring( state->ppu, ( data & 0x40 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4615 | 4643 | } |
| 4616 | 4644 | } |
| 4617 | 4645 | |
| r4499 | r4500 | |
| 4671 | 4699 | |
| 4672 | 4700 | switch( data & 0x03 ) { |
| 4673 | 4701 | case 0: |
| 4674 | | ppu2c0x_set_mirroring( 0, PPU_MIRROR_VERT ); |
| 4702 | ppu2c0x_set_mirroring( state->ppu, PPU_MIRROR_VERT ); |
| 4675 | 4703 | break; |
| 4676 | 4704 | case 1: |
| 4677 | | ppu2c0x_set_mirroring( 0, PPU_MIRROR_HORZ ); |
| 4705 | ppu2c0x_set_mirroring( state->ppu, PPU_MIRROR_HORZ ); |
| 4678 | 4706 | break; |
| 4679 | 4707 | case 2: |
| 4680 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 4708 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 4681 | 4709 | break; |
| 4682 | 4710 | case 3: |
| 4683 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_HIGH); |
| 4711 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_HIGH); |
| 4684 | 4712 | break; |
| 4685 | 4713 | } |
| 4686 | 4714 | } |
| r4499 | r4500 | |
| 4792 | 4820 | } |
| 4793 | 4821 | break; |
| 4794 | 4822 | case 0x2000: |
| 4795 | | ppu2c0x_set_mirroring( 0, ( data & 0x01 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4823 | ppu2c0x_set_mirroring( state->ppu, ( data & 0x01 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); |
| 4796 | 4824 | break; |
| 4797 | 4825 | case 0x4000: |
| 4798 | 4826 | IRQ_count_latch = data; |
| r4499 | r4500 | |
| 4847 | 4875 | const mmc *mapper; |
| 4848 | 4876 | |
| 4849 | 4877 | /* Set the vram bank-switch values to the default */ |
| 4850 | | ppu2c0x_set_videorom_bank(0, 0, 8, 0, 64); |
| 4878 | ppu2c0x_set_videorom_bank(state->ppu, 0, 8, 0, 64); |
| 4851 | 4879 | |
| 4852 | 4880 | /* Set the mapper irq callback */ |
| 4853 | 4881 | mapper = nes_mapper_lookup(mapperNum); |
| r4499 | r4500 | |
| 4948 | 4976 | break; |
| 4949 | 4977 | case 7: |
| 4950 | 4978 | /* Bankswitches 32k at a time */ |
| 4951 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 4979 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 4952 | 4980 | prg16_89ab (space, 0); |
| 4953 | 4981 | prg16_cdef (space, nes.prg_chunks-1); |
| 4954 | 4982 | break; |
| r4499 | r4500 | |
| 5177 | 5205 | case 89: |
| 5178 | 5206 | prg16_89ab(space, 0); |
| 5179 | 5207 | prg16_cdef(space, nes.prg_chunks-1); |
| 5180 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_LOW); |
| 5208 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_LOW); |
| 5181 | 5209 | break; |
| 5182 | 5210 | |
| 5183 | 5211 | case 91: |
| 5184 | | ppu2c0x_set_mirroring(0, PPU_MIRROR_VERT); |
| 5212 | ppu2c0x_set_mirroring(state->ppu, PPU_MIRROR_VERT); |
| 5185 | 5213 | prg16_89ab (space, nes.prg_chunks-1); |
| 5186 | 5214 | prg16_cdef (space, nes.prg_chunks-1); |
| 5187 | 5215 | break; |