trunk/src/mame/drivers/r2dx_v33.c
| r32177 | r32178 | |
| 51 | 51 | DECLARE_DRIVER_INIT(nzerotea); |
| 52 | 52 | DECLARE_DRIVER_INIT(zerotm2k); |
| 53 | 53 | |
| 54 | DECLARE_MACHINE_RESET(r2dx_v33); |
| 55 | DECLARE_MACHINE_RESET(nzeroteam); |
| 54 | 56 | |
| 55 | 57 | UINT32 screen_update_rdx_v33(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 56 | 58 | INTERRUPT_GEN_MEMBER(rdx_v33_interrupt); |
| r32177 | r32178 | |
| 66 | 68 | m_eeprom->di_write((data & 0x20) >> 5); |
| 67 | 69 | m_eeprom->cs_write((data & 0x08) ? ASSERT_LINE : CLEAR_LINE); |
| 68 | 70 | |
| 69 | | if (data&0xc7) printf("eeprom_w extra bits used %04x\n",data); |
| 71 | // 0x40 - coin counter 1? |
| 72 | // 0x80 - coin counter 2? |
| 73 | |
| 74 | // 0x04 is active in Raiden DX mode, it could be part of the rom bank (which half of the rom to use) or the FG tile bank (or both?) |
| 75 | |
| 76 | if (data&0x07) printf("eeprom_w extra bits used %04x\n",data & 7); |
| 70 | 77 | } |
| 71 | 78 | else |
| 72 | 79 | { |
| r32177 | r32178 | |
| 153 | 160 | static ADDRESS_MAP_START( rdx_v33_map, AS_PROGRAM, 16, r2dx_v33_state ) |
| 154 | 161 | AM_RANGE(0x00000, 0x003ff) AM_RAM // vectors copied here |
| 155 | 162 | |
| 156 | | AM_RANGE(0x00400, 0x00407) AM_WRITE(mcu_table_w) |
| 157 | | AM_RANGE(0x00420, 0x00429) AM_WRITE(mcu_table2_w) |
| 163 | // AM_RANGE(0x00400, 0x00407) AM_WRITE(mcu_table_w) |
| 164 | // AM_RANGE(0x00420, 0x00429) AM_WRITE(mcu_table2_w) |
| 158 | 165 | |
| 159 | 166 | /* results from cop? */ |
| 160 | 167 | AM_RANGE(0x00430, 0x00431) AM_READ(rdx_v33_unknown_r) |
| r32177 | r32178 | |
| 461 | 468 | INPUT_PORTS_END |
| 462 | 469 | |
| 463 | 470 | |
| 471 | MACHINE_RESET_MEMBER(r2dx_v33_state,r2dx_v33) |
| 472 | { |
| 473 | common_reset(); |
| 474 | } |
| 475 | |
| 476 | MACHINE_RESET_MEMBER(r2dx_v33_state,nzeroteam) |
| 477 | { |
| 478 | common_reset(); |
| 479 | |
| 480 | bg_bank = 0; |
| 481 | fg_bank = 2; |
| 482 | mid_bank = 1; |
| 483 | } |
| 484 | |
| 485 | |
| 464 | 486 | static MACHINE_CONFIG_START( rdx_v33, r2dx_v33_state ) |
| 465 | 487 | |
| 466 | 488 | /* basic machine hardware */ |
| r32177 | r32178 | |
| 468 | 490 | MCFG_CPU_PROGRAM_MAP(rdx_v33_map) |
| 469 | 491 | MCFG_CPU_VBLANK_INT_DRIVER("screen", r2dx_v33_state, rdx_v33_interrupt) |
| 470 | 492 | |
| 471 | | //MCFG_MACHINE_RESET_OVERRIDE(r2dx_v33_state,rdx_v33) |
| 493 | MCFG_MACHINE_RESET_OVERRIDE(r2dx_v33_state,r2dx_v33) |
| 472 | 494 | |
| 473 | 495 | MCFG_EEPROM_SERIAL_93C46_ADD("eeprom") |
| 474 | 496 | |
| r32177 | r32178 | |
| 504 | 526 | MCFG_CPU_PROGRAM_MAP(nzerotea_map) |
| 505 | 527 | MCFG_CPU_VBLANK_INT_DRIVER("screen", r2dx_v33_state, rdx_v33_interrupt) |
| 506 | 528 | |
| 529 | MCFG_MACHINE_RESET_OVERRIDE(r2dx_v33_state,nzeroteam) |
| 530 | |
| 531 | |
| 507 | 532 | // SEIBU2_RAIDEN2_SOUND_SYSTEM_CPU(14318180/4) |
| 508 | 533 | SEIBU_NEWZEROTEAM_SOUND_SYSTEM_CPU(14318180/4) |
| 509 | 534 | |
| r32177 | r32178 | |
| 746 | 771 | ROM_LOAD( "szy-01.u099", 0x00000, 0x40000, CRC(48be32b1) SHA1(969d2191a3c46871ee8bf93088b3cecce3eccf0c) ) /* PCB silkscreened PCM, Same as other Zero Team sets */ |
| 747 | 772 | ROM_END |
| 748 | 773 | |
| 749 | | // newer PCB, with V33 CPU and COPD3 protection, but weak sound hardware. - was marked as Raiden DX New in the rom dump, but boots as Raiden 2 New version, is it switchable? |
| 750 | | GAME( 1996, r2dx_v33, 0, rdx_v33, rdx_v33, r2dx_v33_state, rdx_v33, ROT270, "Seibu Kaihatsu", "Raiden II / DX (newer V33 PCB)", GAME_NOT_WORKING|GAME_NO_SOUND) |
| 774 | // newer PCB, with V33 CPU and COPD3 protection, but weak sound hardware. - was marked as Raiden DX New in the rom dump, but boots as Raiden 2 New version, the rom contains both |
| 775 | GAME( 1996, r2dx_v33, 0, rdx_v33, rdx_v33, r2dx_v33_state, rdx_v33, ROT270, "Seibu Kaihatsu", "Raiden II New / Raiden DX (newer V33 PCB)", GAME_NOT_WORKING|GAME_NO_SOUND) |
| 751 | 776 | |
| 752 | 777 | // 'V33 system type_b' - uses V33 CPU, COPX-D3 external protection rom, but still has the proper sound system |
| 753 | 778 | GAME( 1997, nzeroteam, zeroteam, nzerotea, nzerotea, r2dx_v33_state, nzerotea, ROT0, "Seibu Kaihatsu", "New Zero Team", GAME_NOT_WORKING|GAME_NO_SOUND) |