src/mame/drivers/ksys573.c
| r15143 | r15144 | |
| 5162 | 5162 | ROM_REGION( 0x200000, "onboard.0", 0 ) /* onboard flash */ |
| 5163 | 5163 | ROM_LOAD( "876ea.31m", 0x000000, 0x200000, CRC(a76043cb) SHA1(1c37034298abf3219d0bba29f4fcea8d83782926) ) |
| 5164 | 5164 | ROM_REGION( 0x200000, "onboard.1", 0 ) /* onboard flash */ |
| 5165 | | ROM_LOAD( "876ea.27m", 0x000000, 0x200000, CRC(95a2a257) SHA1(3a8ecaabdf3d993c844bbc424c9fa15be7668462) ) |
| 5165 | ROM_LOAD( "876ea.27m", 0x000000, 0x200000, BAD_DUMP CRC(95a2a257) SHA1(3a8ecaabdf3d993c844bbc424c9fa15be7668462) ) |
| 5166 | 5166 | ROM_REGION( 0x200000, "onboard.2", 0 ) /* onboard flash */ |
| 5167 | 5167 | ROM_LOAD( "876ea.31l", 0x000000, 0x200000, CRC(d011c7a5) SHA1(8861b62c8b654b8e719600a37337ae44e6438899) ) |
| 5168 | 5168 | ROM_REGION( 0x200000, "onboard.3", 0 ) /* onboard flash */ |
| r15143 | r15144 | |
| 5170 | 5170 | ROM_REGION( 0x200000, "onboard.4", 0 ) /* onboard flash */ |
| 5171 | 5171 | ROM_LOAD( "876ea.31j", 0x000000, 0x200000, CRC(ae497ebc) SHA1(ef131e60726db94f0d9ceab70bce02c0de080ede) ) |
| 5172 | 5172 | ROM_REGION( 0x200000, "onboard.5", 0 ) /* onboard flash */ |
| 5173 | | ROM_LOAD( "876ea.27j", 0x000000, 0x200000, CRC(0c4d8435) SHA1(cda642ccd5463edacfec582c120d65cf15452fc9) ) |
| 5173 | ROM_LOAD( "876ea.27j", 0x000000, 0x200000, BAD_DUMP CRC(0c4d8435) SHA1(cda642ccd5463edacfec582c120d65cf15452fc9) ) |
| 5174 | 5174 | ROM_REGION( 0x200000, "onboard.6", 0 ) /* onboard flash */ |
| 5175 | | ROM_LOAD( "876ea.31h", 0x000000, 0x200000, CRC(90545167) SHA1(fb58b52a9d94f92afefead7be291301019e263ee) ) |
| 5175 | ROM_LOAD( "876ea.31h", 0x000000, 0x200000, BAD_DUMP CRC(90545167) SHA1(fb58b52a9d94f92afefead7be291301019e263ee) ) |
| 5176 | 5176 | ROM_REGION( 0x200000, "onboard.7", 0 ) /* onboard flash */ |
| 5177 | 5177 | ROM_LOAD( "876ea.27h", 0x000000, 0x200000, CRC(49175f99) SHA1(0154f6332ed210b6f0af20ba622133cde0994b7f) ) |
| 5178 | 5178 | |
| 5179 | 5179 | ROM_REGION( 0x002000, "m48t58", 0 ) /* timekeeper */ |
| 5180 | | ROM_LOAD( "876ea.22h", 0x000000, 0x002000, NO_DUMP ) |
| 5180 | ROM_LOAD( "876ea.22h", 0x000000, 0x002000, CRC(8e11d196) SHA1(e7442fdd611f4290d531b1ebdc9f487e323fd531) ) |
| 5181 | 5181 | ROM_END |
| 5182 | 5182 | |
| 5183 | 5183 | ROM_START( hyperbbc ) |
src/mame/drivers/gunbustr.c
| r15143 | r15144 | |
| 1 | 1 | /**************************************************************************** |
| 2 | 2 | |
| 3 | | Gunbuster (c) 1992 Taito |
| 3 | Gunbuster (c) 1992 Taito |
| 4 | 4 | |
| 5 | 5 | Driver by Bryan McPhail & David Graves. |
| 6 | 6 | |
| r15143 | r15144 | |
| 82 | 82 | |
| 83 | 83 | WRITE32_MEMBER(gunbustr_state::gunbustr_input_w) |
| 84 | 84 | { |
| 85 | | |
| 86 | | #if 0 |
| 87 | | { |
| 88 | | char t[64]; |
| 89 | | COMBINE_DATA(&m_mem[offset]); |
| 90 | | |
| 91 | | sprintf(t,"%08x %08x",m_mem[0],m_mem[1]); |
| 92 | | popmessage(t); |
| 93 | | } |
| 94 | | #endif |
| 95 | | |
| 96 | 85 | switch (offset) |
| 97 | 86 | { |
| 98 | 87 | case 0x00: |
| 99 | 88 | { |
| 100 | | if (ACCESSING_BITS_24_31) /* $400000 is watchdog */ |
| 89 | if (ACCESSING_BITS_24_31) |
| 101 | 90 | { |
| 91 | /* $400000 is watchdog */ |
| 102 | 92 | machine().watchdog_reset(); |
| 103 | 93 | } |
| 104 | 94 | |
| r15143 | r15144 | |
| 108 | 98 | eeprom->set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 109 | 99 | eeprom->write_bit(data & 0x40); |
| 110 | 100 | eeprom->set_cs_line((data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| 111 | | return; |
| 112 | 101 | } |
| 113 | | return; |
| 102 | break; |
| 114 | 103 | } |
| 115 | 104 | |
| 116 | 105 | case 0x01: |
| 117 | 106 | { |
| 118 | 107 | if (ACCESSING_BITS_24_31) |
| 119 | 108 | { |
| 120 | | // coin lockout does not work in gunbustrj, perhaps this was a prototype version without proper coin handling? |
| 121 | | coin_lockout_w(machine(), 0, ~data & 0x01000000); |
| 122 | | coin_lockout_w(machine(), 1, ~data & 0x02000000); |
| 109 | if (m_coin_lockout) |
| 110 | { |
| 111 | coin_lockout_w(machine(), 0, ~data & 0x01000000); |
| 112 | coin_lockout_w(machine(), 1, ~data & 0x02000000); |
| 113 | } |
| 123 | 114 | |
| 124 | 115 | // game does not write a separate counter for coin 2! maybe in linked mode? |
| 125 | 116 | coin_counter_w(machine(), 0, data & 0x04000000); |
| 126 | 117 | coin_counter_w(machine(), 1, data & 0x04000000); |
| 127 | 118 | m_coin_word = (data >> 16) &0xffff; |
| 128 | 119 | } |
| 129 | | //logerror("CPU #0 PC %06x: write input %06x\n",cpu_get_pc(&device()),offset); |
| 120 | //logerror("CPU #0 PC %06x: write input %06x\n",cpu_get_pc(&device()),offset); |
| 121 | break; |
| 130 | 122 | } |
| 131 | 123 | } |
| 132 | 124 | } |
| 133 | 125 | |
| 134 | 126 | WRITE32_MEMBER(gunbustr_state::motor_control_w) |
| 135 | 127 | { |
| 136 | | /* |
| 137 | | Standard value poked into MSW is 0x3c00 |
| 138 | | (0x2000 and zero are written at startup) |
| 139 | | |
| 140 | | */ |
| 141 | | if (data & 0x1000000) |
| 142 | | { |
| 143 | | output_set_value("Player1_Gun_Recoil",1); |
| 144 | | } |
| 145 | | else |
| 146 | | { |
| 147 | | output_set_value("Player1_Gun_Recoil",0); |
| 148 | | } |
| 149 | | |
| 150 | | if (data & 0x10000) |
| 151 | | { |
| 152 | | output_set_value("Player2_Gun_Recoil",1); |
| 153 | | } |
| 154 | | else |
| 155 | | { |
| 156 | | output_set_value("Player2_Gun_Recoil",0); |
| 157 | | } |
| 158 | | |
| 159 | | if (data & 0x40000) |
| 160 | | { |
| 161 | | output_set_value("Hit_lamp",1); |
| 162 | | } |
| 163 | | else |
| 164 | | { |
| 165 | | output_set_value("Hit_lamp",0); |
| 166 | | } |
| 167 | | |
| 128 | // Standard value poked into MSW is 0x3c00 |
| 129 | // (0x2000 and zero are written at startup) |
| 130 | output_set_value("Player1_Gun_Recoil", (data & 0x1000000) ? 1 : 0); |
| 131 | output_set_value("Player2_Gun_Recoil", (data & 0x10000) ? 1 : 0); |
| 132 | output_set_value("Hit_lamp", (data & 0x40000) ? 1 : 0); |
| 168 | 133 | } |
| 169 | 134 | |
| 170 | 135 | |
| r15143 | r15144 | |
| 327 | 292 | |
| 328 | 293 | static const tc0480scp_interface gunbustr_tc0480scp_intf = |
| 329 | 294 | { |
| 330 | | 1, 2, /* gfxnum, txnum */ |
| 331 | | 0, /* pixels */ |
| 295 | 1, 2, /* gfxnum, txnum */ |
| 296 | 0, /* pixels */ |
| 332 | 297 | 0x20, 0x07, /* x_offset, y_offset */ |
| 333 | | -1, -1, /* text_xoff, text_yoff */ |
| 334 | | -1, 0, /* flip_xoff, flip_yoff */ |
| 335 | | 0 /* col_base */ |
| 298 | -1, -1, /* text_xoff, text_yoff */ |
| 299 | -1, 0, /* flip_xoff, flip_yoff */ |
| 300 | 0 /* col_base */ |
| 336 | 301 | }; |
| 337 | 302 | |
| 338 | 303 | static MACHINE_CONFIG_START( gunbustr, gunbustr_state ) |
| 339 | 304 | |
| 340 | 305 | /* basic machine hardware */ |
| 341 | | MCFG_CPU_ADD("maincpu", M68EC020, 16000000) /* 16 MHz */ |
| 306 | MCFG_CPU_ADD("maincpu", M68EC020, XTAL_16MHz) |
| 342 | 307 | MCFG_CPU_PROGRAM_MAP(gunbustr_map) |
| 343 | 308 | MCFG_CPU_VBLANK_INT("screen", gunbustr_interrupt) /* VBL */ |
| 344 | 309 | |
| r15143 | r15144 | |
| 479 | 444 | { |
| 480 | 445 | /* Speedup handler */ |
| 481 | 446 | gunbustr_state *state = machine.driver_data<gunbustr_state>(); |
| 482 | | machine.device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0x203acc, 0x203acf, read32_delegate(FUNC(gunbustr_state::main_cycle_r),state)); |
| 447 | state->m_maincpu->memory().space(AS_PROGRAM)->install_read_handler(0x203acc, 0x203acf, read32_delegate(FUNC(gunbustr_state::main_cycle_r),state)); |
| 483 | 448 | } |
| 484 | 449 | |
| 450 | static DRIVER_INIT( gunbustrj ) |
| 451 | { |
| 452 | DRIVER_INIT_CALL(gunbustr); |
| 453 | |
| 454 | // no coin lockout, perhaps this was a prototype version without proper coin handling? |
| 455 | gunbustr_state *state = machine.driver_data<gunbustr_state>(); |
| 456 | state->m_coin_lockout = false; |
| 457 | } |
| 458 | |
| 485 | 459 | GAME( 1992, gunbustr, 0, gunbustr, gunbustr, gunbustr, ORIENTATION_FLIP_X, "Taito Corporation Japan", "Gunbuster (World)", 0 ) |
| 486 | 460 | GAME( 1992, gunbustru, gunbustr, gunbustr, gunbustr, gunbustr, ORIENTATION_FLIP_X, "Taito America Corporation", "Gunbuster (US)", 0 ) |
| 487 | | GAME( 1992, gunbustrj, gunbustr, gunbustr, gunbustr, gunbustr, ORIENTATION_FLIP_X, "Taito Corporation", "Gunbuster (Japan)", 0 ) |
| 461 | GAME( 1992, gunbustrj, gunbustr, gunbustr, gunbustr, gunbustrj,ORIENTATION_FLIP_X, "Taito Corporation", "Gunbuster (Japan)", 0 ) |