trunk/src/mame/drivers/segaufo.c
r0 | r32765 | |
| 1 | // license:BSD-3-Clause |
| 2 | // copyright-holders:hap |
| 3 | /*************************************************************************** |
| 4 | |
| 5 | Sega UFO Catcher, Z80 type hardware |
| 6 | The list underneath is not complete. A # before the name means it's not dumped yet. |
| 7 | |
| 8 | 1st gen |
| 9 | * ? |
| 10 | - # UFO Catcher (1985) |
| 11 | |
| 12 | 2nd gen: |
| 13 | * ? |
| 14 | - # UFO Catcher DX (1987) |
| 15 | - # UFO Catcher DX II (1987) |
| 16 | |
| 17 | 3rd gen - UFO brd |
| 18 | * Z80, 2 Sega 315-5296(I/O), YM3438, NEC uPD71054C |
| 19 | - # Dream Town (1990) |
| 20 | - New UFO Catcher (1991) (2P) - probably the most popular cabinet of all UFO Catcher series |
| 21 | - UFO Catcher Mini (1991) (1P) |
| 22 | - # UFO Catcher Sega Sonic (1991) |
| 23 | - # School Kids (1993) |
| 24 | |
| 25 | 4th gen - EX brd |
| 26 | * Z80, 2 Sega 315-5296(I/O), YM3438, NEC uPD71054C, optional NEC uPD7759C |
| 27 | - # Dream Palace (1992) |
| 28 | - # Dream Kitchen (1994) |
| 29 | - # UFO Catcher Excellent (1994) |
| 30 | - # UFO A La Carte (1996) |
| 31 | - UFO Catcher 21 (1996) (2P) |
| 32 | - UFO Catcher 800 (1998) (1P) |
| 33 | - # Baby UFO (1998) |
| 34 | - # Prize Sensor (1998) |
| 35 | |
| 36 | More games were released after 2000, assumed to be on more modern hardware. |
| 37 | |
| 38 | |
| 39 | TODO: |
| 40 | - make the other games work (for now only newufo+clones work) |
| 41 | - add layout |
| 42 | |
| 43 | ***************************************************************************/ |
| 44 | |
| 45 | #include "emu.h" |
| 46 | #include "cpu/z80/z80.h" |
| 47 | #include "machine/pit8253.h" |
| 48 | #include "machine/315-5296.h" |
| 49 | #include "sound/2612intf.h" |
| 50 | |
| 51 | |
| 52 | /* simulation parameters */ |
| 53 | // x/y/z cabinet dimensions per player (motor range) |
| 54 | #define CABINET_WIDTH 400 |
| 55 | #define CABINET_DEPTH 400 |
| 56 | #define CABINET_HEIGHT 250 |
| 57 | |
| 58 | // x/y/z motor speed in hertz |
| 59 | #define MOTOR_SPEED 100 |
| 60 | |
| 61 | // crane size (stepper motor range) |
| 62 | // note: the game expects this to be around 350 steps per quarter rotation |
| 63 | #define CRANE_SIZE 350 |
| 64 | |
| 65 | |
| 66 | |
| 67 | class ufo_state : public driver_device |
| 68 | { |
| 69 | public: |
| 70 | ufo_state(const machine_config &mconfig, device_type type, const char *tag) |
| 71 | : driver_device(mconfig, type, tag), |
| 72 | m_maincpu(*this, "maincpu") |
| 73 | { } |
| 74 | |
| 75 | required_device<cpu_device> m_maincpu; |
| 76 | |
| 77 | struct Player |
| 78 | { |
| 79 | struct Motor |
| 80 | { |
| 81 | UINT8 running; |
| 82 | UINT8 direction; |
| 83 | float position; |
| 84 | float speed; |
| 85 | } motor[4]; |
| 86 | } m_player[2]; |
| 87 | |
| 88 | UINT8 m_stepper; |
| 89 | |
| 90 | void motor_tick(int p, int m); |
| 91 | |
| 92 | DECLARE_WRITE_LINE_MEMBER(pit_out0); |
| 93 | DECLARE_WRITE_LINE_MEMBER(pit_out1); |
| 94 | DECLARE_WRITE_LINE_MEMBER(pit_out2); |
| 95 | DECLARE_WRITE_LINE_MEMBER(ym3438_irq); |
| 96 | DECLARE_READ8_MEMBER(crane_limits_r); |
| 97 | DECLARE_WRITE8_MEMBER(stepper_w); |
| 98 | DECLARE_WRITE8_MEMBER(cp_lamps_w); |
| 99 | DECLARE_WRITE8_MEMBER(cp_digits_w); |
| 100 | DECLARE_WRITE8_MEMBER(crane_xyz_w); |
| 101 | DECLARE_WRITE8_MEMBER(ufo_lamps_w); |
| 102 | |
| 103 | virtual void machine_reset(); |
| 104 | virtual void machine_start(); |
| 105 | TIMER_DEVICE_CALLBACK_MEMBER(simulate_xyz); |
| 106 | }; |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | void ufo_state::motor_tick(int p, int m) |
| 112 | { |
| 113 | float delta = m_player[p].motor[m].speed; |
| 114 | if (m_player[p].motor[m].direction) |
| 115 | delta = -delta; |
| 116 | |
| 117 | if (m_player[p].motor[m].running) |
| 118 | m_player[p].motor[m].position += delta; |
| 119 | |
| 120 | if (m_player[p].motor[m].position < 0) |
| 121 | m_player[p].motor[m].position = 0; |
| 122 | if (m_player[p].motor[m].position > 1) |
| 123 | m_player[p].motor[m].position = 1; |
| 124 | } |
| 125 | |
| 126 | |
| 127 | TIMER_DEVICE_CALLBACK_MEMBER(ufo_state::simulate_xyz) |
| 128 | { |
| 129 | for (int p = 0; p < 2; p++) |
| 130 | for (int m = 0; m < 3; m++) |
| 131 | motor_tick(p, m); |
| 132 | } |
| 133 | |
| 134 | /*************************************************************************** |
| 135 | |
| 136 | I/O |
| 137 | |
| 138 | ***************************************************************************/ |
| 139 | |
| 140 | WRITE_LINE_MEMBER(ufo_state::pit_out0) |
| 141 | { |
| 142 | // ? |
| 143 | } |
| 144 | |
| 145 | WRITE_LINE_MEMBER(ufo_state::pit_out1) |
| 146 | { |
| 147 | // ? |
| 148 | } |
| 149 | |
| 150 | WRITE_LINE_MEMBER(ufo_state::pit_out2) |
| 151 | { |
| 152 | // NMI? |
| 153 | if (state) |
| 154 | m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE); |
| 155 | } |
| 156 | |
| 157 | |
| 158 | WRITE8_MEMBER(ufo_state::stepper_w) |
| 159 | { |
| 160 | for (int p = 0; p < 2; p++) |
| 161 | { |
| 162 | // The crane stepper motor is set up as a rotating ellipse disc under the crane, |
| 163 | // controlled with 4 output bits connected to a Toshiba TB6560AHQ motor driver. |
| 164 | // I don't know which bits connect to which pins specifically. |
| 165 | // To run it, the game writes a continuous sequence of $5, $9, $a, $6, .. |
| 166 | static const UINT8 sequence[4] = |
| 167 | { 0x5, 0x9, 0xa, 0x6 }; |
| 168 | |
| 169 | // d0-d3: p1, d4-d7: p2 |
| 170 | UINT8 cur = data >> (p*4) & 0xf; |
| 171 | UINT8 prev = m_stepper >> (p*4) & 0xf; |
| 172 | |
| 173 | for (int i = 0; i < 4; i++) |
| 174 | { |
| 175 | if (sequence[i] == prev && sequence[(i+1) & 3] == cur) |
| 176 | { |
| 177 | m_player[p].motor[3].running = 1; |
| 178 | motor_tick(p, 3); |
| 179 | |
| 180 | // change direction after each quarter rotate |
| 181 | if (m_player[p].motor[3].position <= 0 || m_player[p].motor[3].position >= 1) |
| 182 | m_player[p].motor[3].direction ^= 1; |
| 183 | |
| 184 | break; |
| 185 | } |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | m_stepper = data; |
| 190 | } |
| 191 | |
| 192 | WRITE8_MEMBER(ufo_state::cp_lamps_w) |
| 193 | { |
| 194 | // d0-d3: p1/p2 button lamps |
| 195 | // other bits: ? |
| 196 | for (int i = 0; i < 4; i++) |
| 197 | output_set_lamp_value(i, ~data >> i & 1); |
| 198 | } |
| 199 | |
| 200 | WRITE8_MEMBER(ufo_state::cp_digits_w) |
| 201 | { |
| 202 | static const UINT8 lut_7448[0x10] = |
| 203 | { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7c,0x07,0x7f,0x67,0x58,0x4c,0x62,0x69,0x78,0x00 }; |
| 204 | |
| 205 | // d0-d3: cpanel digit |
| 206 | // other bits: ? |
| 207 | output_set_digit_value(offset & 1, lut_7448[data & 0xf]); |
| 208 | } |
| 209 | |
| 210 | WRITE8_MEMBER(ufo_state::crane_xyz_w) |
| 211 | { |
| 212 | int p = offset & 1; |
| 213 | |
| 214 | // d0: x/z axis (0:x, 1:z + halt x/y) |
| 215 | // d1: x/z direction |
| 216 | // d2: y direction |
| 217 | // d3: x/z running |
| 218 | // d4: y running |
| 219 | // other bits: ? |
| 220 | m_player[p].motor[0].running = (data & 9) == 8; |
| 221 | m_player[p].motor[0].direction = data & 2; |
| 222 | m_player[p].motor[1].running = (data & 0x11) == 0x10; |
| 223 | m_player[p].motor[1].direction = data & 4; |
| 224 | m_player[p].motor[2].running = (data & 9) == 9; |
| 225 | m_player[p].motor[2].direction = data & 2; |
| 226 | } |
| 227 | |
| 228 | WRITE8_MEMBER(ufo_state::ufo_lamps_w) |
| 229 | { |
| 230 | ; |
| 231 | } |
| 232 | |
| 233 | |
| 234 | READ8_MEMBER(ufo_state::crane_limits_r) |
| 235 | { |
| 236 | int p = offset & 1; |
| 237 | UINT8 ret = 0xff; |
| 238 | |
| 239 | // d0: left limit sw (right for p2) |
| 240 | // d1: right limit sw (left for p2) |
| 241 | // d2: back limit sw |
| 242 | // d3: front limit sw |
| 243 | // d4: down limit sw |
| 244 | // d5: up limit sw |
| 245 | for (int i = 0; i < 3; i++) |
| 246 | { |
| 247 | ret ^= (m_player[p].motor[i].position >= 1) << (i*2 + 0); |
| 248 | ret ^= (m_player[p].motor[i].position <= 0) << (i*2 + 1); |
| 249 | } |
| 250 | |
| 251 | // d6: crane open sensor (reflective sticker on the stepper motor rotation disc) |
| 252 | if (m_player[p].motor[3].position >= 0.97) |
| 253 | ret ^= 0x40; |
| 254 | |
| 255 | // d7: ? |
| 256 | |
| 257 | return ret; |
| 258 | } |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | static ADDRESS_MAP_START( ufo_map, AS_PROGRAM, 8, ufo_state ) |
| 264 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 265 | AM_RANGE(0xe000, 0xffff) AM_RAM |
| 266 | ADDRESS_MAP_END |
| 267 | |
| 268 | static ADDRESS_MAP_START( ufo_portmap, AS_PROGRAM, 8, ufo_state ) |
| 269 | ADDRESS_MAP_UNMAP_HIGH |
| 270 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 271 | AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("pit", pit8254_device, read, write) |
| 272 | AM_RANGE(0x40, 0x43) AM_DEVREADWRITE("ym", ym3438_device, read, write) |
| 273 | AM_RANGE(0x80, 0x8f) AM_DEVREADWRITE("io1", sega_315_5296_device, read, write) |
| 274 | AM_RANGE(0xc0, 0xcf) AM_DEVREADWRITE("io2", sega_315_5296_device, read, write) |
| 275 | ADDRESS_MAP_END |
| 276 | |
| 277 | |
| 278 | |
| 279 | /*************************************************************************** |
| 280 | |
| 281 | Inputs |
| 282 | |
| 283 | ***************************************************************************/ |
| 284 | |
| 285 | static INPUT_PORTS_START( ufo ) |
| 286 | PORT_START("P1") |
| 287 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_NAME("P1 Coin 1") |
| 288 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_NAME("P1 Coin 2") |
| 289 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("P1 Test") |
| 290 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("P1 Service Coin") |
| 291 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE3 ) PORT_NAME("P1 Credit Clear") |
| 292 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 293 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 294 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("P1 Prize Fell") |
| 295 | |
| 296 | PORT_START("P2") |
| 297 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_NAME("P2 Coin 1") |
| 298 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_NAME("P2 Coin 2") |
| 299 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("P2 Test") PORT_CODE(KEYCODE_F1) |
| 300 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("P2 Service Coin") |
| 301 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE4 ) PORT_NAME("P2 Credit Clear") |
| 302 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 303 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 304 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(2) PORT_NAME("P2 Prize Fell") |
| 305 | |
| 306 | PORT_START("DSW1") // coinage |
| 307 | PORT_DIPNAME( 0x01, 0x01, "UNK1-01" ) |
| 308 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 309 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 310 | PORT_DIPNAME( 0x02, 0x02, "UNK1-02" ) |
| 311 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 312 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 313 | PORT_DIPNAME( 0x04, 0x04, "UNK1-04" ) |
| 314 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 315 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 316 | PORT_DIPNAME( 0x08, 0x08, "UNK1-08" ) |
| 317 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 318 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 319 | PORT_DIPNAME( 0x10, 0x10, "UNK1-10" ) |
| 320 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 321 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 322 | PORT_DIPNAME( 0x20, 0x20, "UNK1-20" ) |
| 323 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 324 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 325 | PORT_DIPNAME( 0x40, 0x40, "UNK1-40" ) |
| 326 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 327 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 328 | PORT_DIPNAME( 0x80, 0x80, "UNK1-80" ) |
| 329 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 330 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 331 | |
| 332 | PORT_START("DSW2") |
| 333 | PORT_DIPNAME( 0x01, 0x01, "UNK2-01 Demo Music Off" ) |
| 334 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 335 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 336 | PORT_DIPNAME( 0x02, 0x02, "UNK2-02" ) |
| 337 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 338 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 339 | PORT_DIPNAME( 0x04, 0x04, "UNK2-04 Initial Motor Test" ) |
| 340 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 341 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 342 | PORT_DIPNAME( 0x08, 0x08, "UNK2-08" ) |
| 343 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 344 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 345 | PORT_DIPNAME( 0x10, 0x10, "UNK2-10 Enable Prize Sensor" ) |
| 346 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 347 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 348 | PORT_DIPNAME( 0x20, 0x20, "UNK2-20" ) |
| 349 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 350 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 351 | PORT_DIPNAME( 0x40, 0x40, "UNK2-40" ) |
| 352 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 353 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 354 | PORT_DIPNAME( 0x80, 0x80, "UNK2-80" ) |
| 355 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 356 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 357 | INPUT_PORTS_END |
| 358 | |
| 359 | |
| 360 | |
| 361 | /*************************************************************************** |
| 362 | |
| 363 | Machine Config |
| 364 | |
| 365 | ***************************************************************************/ |
| 366 | |
| 367 | void ufo_state::machine_reset() |
| 368 | { |
| 369 | } |
| 370 | |
| 371 | void ufo_state::machine_start() |
| 372 | { |
| 373 | // init/zerofill |
| 374 | static const float motor_speeds[4] = |
| 375 | { 1.0/CABINET_WIDTH, 1.0/CABINET_DEPTH, 1.0/CABINET_HEIGHT, 1.0/CRANE_SIZE }; |
| 376 | |
| 377 | for (int p = 0; p < 2; p++) |
| 378 | { |
| 379 | for (int m = 0; m < 4; m++) |
| 380 | { |
| 381 | m_player[p].motor[m].running = 0; |
| 382 | m_player[p].motor[m].direction = 0; |
| 383 | m_player[p].motor[m].position = 0.5; |
| 384 | m_player[p].motor[m].speed = motor_speeds[m]; |
| 385 | } |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | WRITE_LINE_MEMBER(ufo_state::ym3438_irq) |
| 390 | { |
| 391 | m_maincpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE); |
| 392 | } |
| 393 | |
| 394 | static MACHINE_CONFIG_START( ufo, ufo_state ) |
| 395 | |
| 396 | /* basic machine hardware */ |
| 397 | MCFG_CPU_ADD("maincpu", Z80, 8000000) |
| 398 | MCFG_CPU_PROGRAM_MAP(ufo_map) |
| 399 | MCFG_CPU_IO_MAP(ufo_portmap) |
| 400 | |
| 401 | MCFG_TIMER_DRIVER_ADD_PERIODIC("motor_timer", ufo_state, simulate_xyz, attotime::from_hz(MOTOR_SPEED)) |
| 402 | |
| 403 | MCFG_DEVICE_ADD("io1", SEGA_315_5296, 16000000) |
| 404 | // all ports set to input |
| 405 | MCFG_315_5296_IN_PORTA_CB(READ8(ufo_state, crane_limits_r)) |
| 406 | MCFG_315_5296_IN_PORTB_CB(READ8(ufo_state, crane_limits_r)) |
| 407 | // MCFG_315_5296_IN_PORTC_CB(NOOP) |
| 408 | // MCFG_315_5296_IN_PORTD_CB(NOOP) |
| 409 | MCFG_315_5296_IN_PORTE_CB(IOPORT("P1")) |
| 410 | MCFG_315_5296_IN_PORTF_CB(IOPORT("DSW1")) |
| 411 | MCFG_315_5296_IN_PORTG_CB(IOPORT("DSW2")) |
| 412 | MCFG_315_5296_IN_PORTH_CB(IOPORT("P2")) |
| 413 | |
| 414 | MCFG_DEVICE_ADD("io2", SEGA_315_5296, 16000000) |
| 415 | // all ports set to output |
| 416 | MCFG_315_5296_OUT_PORTA_CB(WRITE8(ufo_state, stepper_w)) |
| 417 | MCFG_315_5296_OUT_PORTB_CB(WRITE8(ufo_state, cp_lamps_w)) |
| 418 | MCFG_315_5296_OUT_PORTC_CB(WRITE8(ufo_state, cp_digits_w)) |
| 419 | MCFG_315_5296_OUT_PORTD_CB(WRITE8(ufo_state, cp_digits_w)) |
| 420 | MCFG_315_5296_OUT_PORTE_CB(WRITE8(ufo_state, crane_xyz_w)) |
| 421 | MCFG_315_5296_OUT_PORTF_CB(WRITE8(ufo_state, crane_xyz_w)) |
| 422 | MCFG_315_5296_OUT_PORTG_CB(WRITE8(ufo_state, ufo_lamps_w)) |
| 423 | // MCFG_315_5296_OUT_PORTH_CB(NOOP) |
| 424 | |
| 425 | MCFG_DEVICE_ADD("pit", PIT8254, 0) // uPD71054C, configuration is unknown |
| 426 | MCFG_PIT8253_CLK0(8000000/256) |
| 427 | MCFG_PIT8253_OUT0_HANDLER(WRITELINE(ufo_state, pit_out0)) |
| 428 | MCFG_PIT8253_CLK1(8000000/256) |
| 429 | MCFG_PIT8253_OUT1_HANDLER(WRITELINE(ufo_state, pit_out1)) |
| 430 | MCFG_PIT8253_CLK2(8000000/256) |
| 431 | MCFG_PIT8253_OUT2_HANDLER(WRITELINE(ufo_state, pit_out2)) |
| 432 | |
| 433 | /* no video! */ |
| 434 | |
| 435 | /* sound hardware */ |
| 436 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 437 | |
| 438 | MCFG_SOUND_ADD("ym", YM3438, 8000000) |
| 439 | MCFG_YM2612_IRQ_HANDLER(WRITELINE(ufo_state, ym3438_irq)) |
| 440 | MCFG_SOUND_ROUTE(0, "mono", 0.40) |
| 441 | MCFG_SOUND_ROUTE(1, "mono", 0.40) |
| 442 | MACHINE_CONFIG_END |
| 443 | |
| 444 | |
| 445 | |
| 446 | /*************************************************************************** |
| 447 | |
| 448 | Game drivers |
| 449 | |
| 450 | ***************************************************************************/ |
| 451 | |
| 452 | ROM_START( newufo ) |
| 453 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 454 | ROM_LOAD( "epr-13896.bin", 0x000000, 0x010000, CRC(ca94be57) SHA1(acb6a22940c5e9ce639c7c30eb3948324b223090) ) |
| 455 | ROM_END |
| 456 | |
| 457 | ROM_START( newufo_sonic ) |
| 458 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 459 | ROM_LOAD( "epr-14124.bin", 0x000000, 0x010000, CRC(2bdbad89) SHA1(10de4b266471a68083ec4bc439b301b6587ccfd6) ) |
| 460 | ROM_END |
| 461 | |
| 462 | ROM_START( newufo_nfl ) |
| 463 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 464 | ROM_LOAD( "epr-15261.bin", 0x000000, 0x010000, CRC(338c00d3) SHA1(03152956c6f1e4d5a1a11ee49f94a8c5eb550815) ) |
| 465 | ROM_END |
| 466 | |
| 467 | ROM_START( newufo_xmas ) |
| 468 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 469 | ROM_LOAD( "epr-15340.bin", 0x000000, 0x010000, CRC(6287c9ac) SHA1(bc6bc84bb432424e1d25e01113e8e331fa64f96f) ) |
| 470 | ROM_END |
| 471 | |
| 472 | |
| 473 | ROM_START( ufomini ) |
| 474 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 475 | ROM_LOAD( "epr-14355.bin", 0x000000, 0x010000, CRC(fbc969c5) SHA1(4a99dcd36bc48b6472988e0bc679fd61af17359c) ) |
| 476 | ROM_END |
| 477 | |
| 478 | |
| 479 | ROM_START( ufo21 ) |
| 480 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 481 | ROM_LOAD( "epr-19063a.bin", 0x000000, 0x010000, CRC(2e13e3e9) SHA1(6908f7db79c1a1da4ebc0456afc50ff18f2e8cf3) ) |
| 482 | |
| 483 | ROM_REGION( 0x40000, "upd", 0 ) |
| 484 | ROM_LOAD( "epr-19064.bin", 0x000000, 0x040000, CRC(ab62c1f0) SHA1(8791a88546ae69e710e128ffc2ea6e9b464f0631) ) |
| 485 | ROM_END |
| 486 | |
| 487 | ROM_START( ufo800 ) |
| 488 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 489 | ROM_LOAD( "epr-20413a.bin", 0x000000, 0x010000, CRC(36e9da6d) SHA1(8e1dbf8b24bc31be7de28f4d562838c291af7c7b) ) |
| 490 | ROM_END |
| 491 | |
| 492 | |
| 493 | GAME (1991, newufo, 0, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (standard)", GAME_MECHANICAL ) |
| 494 | GAME (1991, newufo_sonic, newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Sonic The Hedgehog)", GAME_MECHANICAL ) |
| 495 | GAME (1991, newufo_nfl, newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Team NFL)", GAME_MECHANICAL ) |
| 496 | GAME (1991, newufo_xmas, newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Christmas season ROM kit)", GAME_MECHANICAL ) |
| 497 | GAME (1991, ufomini, 0, ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher Mini", GAME_NOT_WORKING | GAME_MECHANICAL ) |
| 498 | GAME (1996, ufo21, 0, ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher 21", GAME_NOT_WORKING | GAME_MECHANICAL ) |
| 499 | GAME (1998, ufo800, 0, ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher 800", GAME_NOT_WORKING | GAME_MECHANICAL ) |