trunk/src/mame/layout/st_mp200.lay
| r31677 | r31678 | |
| 30 | 30 | |
| 31 | 31 | <!-- Background --> |
| 32 | 32 | <backdrop element="background"> |
| 33 | | <bounds left="0" top="20" right="274" bottom="394" /> |
| 33 | <bounds left="0" top="20" right="318" bottom="394" /> |
| 34 | 34 | </backdrop> |
| 35 | 35 | |
| 36 | 36 | <!-- LEDs --> |
| 37 | 37 | |
| 38 | 38 | <!-- Player 1 Score --> |
| 39 | 39 | |
| 40 | | <bezel name="digit5" element="digit"> |
| 40 | <bezel name="digit0" element="digit"> |
| 41 | 41 | <bounds left="10" top="45" right="44" bottom="84" /> |
| 42 | 42 | </bezel> |
| 43 | | <bezel name="digit4" element="digit"> |
| 43 | <bezel name="digit6" element="digit"> |
| 44 | 44 | <bounds left="54" top="45" right="88" bottom="84" /> |
| 45 | 45 | </bezel> |
| 46 | | <bezel name="digit3" element="digit"> |
| 46 | <bezel name="digit5" element="digit"> |
| 47 | 47 | <bounds left="98" top="45" right="132" bottom="84" /> |
| 48 | 48 | </bezel> |
| 49 | | <bezel name="digit2" element="digit"> |
| 49 | <bezel name="digit4" element="digit"> |
| 50 | 50 | <bounds left="142" top="45" right="176" bottom="84" /> |
| 51 | 51 | </bezel> |
| 52 | | <bezel name="digit1" element="digit"> |
| 52 | <bezel name="digit3" element="digit"> |
| 53 | 53 | <bounds left="186" top="45" right="220" bottom="84" /> |
| 54 | 54 | </bezel> |
| 55 | | <bezel name="digit0" element="digit"> |
| 55 | <bezel name="digit2" element="digit"> |
| 56 | 56 | <bounds left="230" top="45" right="264" bottom="84" /> |
| 57 | 57 | </bezel> |
| 58 | <bezel name="digit1" element="digit"> |
| 59 | <bounds left="274" top="45" right="308" bottom="84" /> |
| 60 | </bezel> |
| 58 | 61 | |
| 59 | 62 | <!-- Player 2 Score --> |
| 60 | | <bezel name="digit13" element="digit"> |
| 63 | <bezel name="digit10" element="digit"> |
| 61 | 64 | <bounds left="10" top="105" right="44" bottom="144" /> |
| 62 | 65 | </bezel> |
| 63 | | <bezel name="digit12" element="digit"> |
| 66 | <bezel name="digit16" element="digit"> |
| 64 | 67 | <bounds left="54" top="105" right="88" bottom="144" /> |
| 65 | 68 | </bezel> |
| 66 | | <bezel name="digit11" element="digit"> |
| 69 | <bezel name="digit15" element="digit"> |
| 67 | 70 | <bounds left="98" top="105" right="132" bottom="144" /> |
| 68 | 71 | </bezel> |
| 69 | | <bezel name="digit10" element="digit"> |
| 72 | <bezel name="digit14" element="digit"> |
| 70 | 73 | <bounds left="142" top="105" right="176" bottom="144" /> |
| 71 | 74 | </bezel> |
| 72 | | <bezel name="digit9" element="digit"> |
| 75 | <bezel name="digit13" element="digit"> |
| 73 | 76 | <bounds left="186" top="105" right="220" bottom="144" /> |
| 74 | 77 | </bezel> |
| 75 | | <bezel name="digit8" element="digit"> |
| 78 | <bezel name="digit12" element="digit"> |
| 76 | 79 | <bounds left="230" top="105" right="264" bottom="144" /> |
| 77 | 80 | </bezel> |
| 81 | <bezel name="digit11" element="digit"> |
| 82 | <bounds left="274" top="105" right="308" bottom="144" /> |
| 83 | </bezel> |
| 78 | 84 | |
| 79 | 85 | <!-- Player 3 Score --> |
| 80 | | <bezel name="digit21" element="digit"> |
| 86 | <bezel name="digit20" element="digit"> |
| 81 | 87 | <bounds left="10" top="165" right="44" bottom="204" /> |
| 82 | 88 | </bezel> |
| 83 | | <bezel name="digit20" element="digit"> |
| 89 | <bezel name="digit26" element="digit"> |
| 84 | 90 | <bounds left="54" top="165" right="88" bottom="204" /> |
| 85 | 91 | </bezel> |
| 86 | | <bezel name="digit19" element="digit"> |
| 92 | <bezel name="digit25" element="digit"> |
| 87 | 93 | <bounds left="98" top="165" right="132" bottom="204" /> |
| 88 | 94 | </bezel> |
| 89 | | <bezel name="digit18" element="digit"> |
| 95 | <bezel name="digit24" element="digit"> |
| 90 | 96 | <bounds left="142" top="165" right="176" bottom="204" /> |
| 91 | 97 | </bezel> |
| 92 | | <bezel name="digit17" element="digit"> |
| 98 | <bezel name="digit23" element="digit"> |
| 93 | 99 | <bounds left="186" top="165" right="220" bottom="204" /> |
| 94 | 100 | </bezel> |
| 95 | | <bezel name="digit16" element="digit"> |
| 101 | <bezel name="digit22" element="digit"> |
| 96 | 102 | <bounds left="230" top="165" right="264" bottom="204" /> |
| 97 | 103 | </bezel> |
| 104 | <bezel name="digit21" element="digit"> |
| 105 | <bounds left="274" top="165" right="308" bottom="204" /> |
| 106 | </bezel> |
| 98 | 107 | |
| 99 | 108 | <!-- Player 4 Score --> |
| 100 | | <bezel name="digit28" element="digit"> |
| 109 | <bezel name="digit36" element="digit"> |
| 101 | 110 | <bounds left="10" top="225" right="44" bottom="264" /> |
| 102 | 111 | </bezel> |
| 103 | | <bezel name="digit27" element="digit"> |
| 112 | <bezel name="digit35" element="digit"> |
| 104 | 113 | <bounds left="54" top="225" right="88" bottom="264" /> |
| 105 | 114 | </bezel> |
| 106 | | <bezel name="digit26" element="digit"> |
| 115 | <bezel name="digit34" element="digit"> |
| 107 | 116 | <bounds left="98" top="225" right="132" bottom="264" /> |
| 108 | 117 | </bezel> |
| 109 | | <bezel name="digit25" element="digit"> |
| 118 | <bezel name="digit33" element="digit"> |
| 110 | 119 | <bounds left="142" top="225" right="176" bottom="264" /> |
| 111 | 120 | </bezel> |
| 112 | | <bezel name="digit24" element="digit"> |
| 121 | <bezel name="digit32" element="digit"> |
| 113 | 122 | <bounds left="186" top="225" right="220" bottom="264" /> |
| 114 | 123 | </bezel> |
| 115 | | <bezel name="digit29" element="digit"> |
| 124 | <bezel name="digit31" element="digit"> |
| 116 | 125 | <bounds left="230" top="225" right="264" bottom="264" /> |
| 117 | 126 | </bezel> |
| 127 | <bezel name="digit30" element="digit"> |
| 128 | <bounds left="274" top="225" right="308" bottom="264" /> |
| 129 | </bezel> |
| 118 | 130 | |
| 119 | 131 | <!-- Credits and Balls --> |
| 120 | | <bezel name="digit35" element="digit"> |
| 132 | <bezel name="digit44" element="digit"> |
| 121 | 133 | <bounds left="10" top="345" right="44" bottom="384" /> |
| 122 | 134 | </bezel> |
| 123 | | <bezel name="digit34" element="digit"> |
| 135 | <bezel name="digit43" element="digit"> |
| 124 | 136 | <bounds left="54" top="345" right="88" bottom="384" /> |
| 125 | 137 | </bezel> |
| 126 | | <bezel name="digit32" element="digit"> |
| 138 | <bezel name="digit41" element="digit"> |
| 127 | 139 | <bounds left="186" top="345" right="220" bottom="384" /> |
| 128 | 140 | </bezel> |
| 129 | | <bezel name="digit37" element="digit"> |
| 141 | <bezel name="digit40" element="digit"> |
| 130 | 142 | <bounds left="230" top="345" right="264" bottom="384" /> |
| 131 | 143 | </bezel> |
| 132 | 144 | |
trunk/src/mame/drivers/st_mp200.c
| r31677 | r31678 | |
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | ToDo: |
| 9 | | - Display to fix |
| 10 | 9 | - Sound - All machines have a B605/C605 sound card containing a 6840 and many other chips |
| 11 | 10 | - Sound - Games 126,128-151,165 have a A720 voice synthesizer with a 'CRC' CPU and many other chips |
| 12 | 11 | - Dips, Inputs, Solenoids vary per game |
| r31677 | r31678 | |
| 46 | 45 | |
| 47 | 46 | DECLARE_DRIVER_INIT(st_mp200); |
| 48 | 47 | DECLARE_DRIVER_INIT(st_mp201); |
| 48 | DECLARE_DRIVER_INIT(st_mp202); |
| 49 | 49 | DECLARE_READ8_MEMBER(u10_a_r); |
| 50 | 50 | DECLARE_WRITE8_MEMBER(u10_a_w); |
| 51 | 51 | DECLARE_READ8_MEMBER(u10_b_r); |
| r31677 | r31678 | |
| 59 | 59 | DECLARE_WRITE_LINE_MEMBER(u11_cb2_w); |
| 60 | 60 | DECLARE_INPUT_CHANGED_MEMBER(activity_test); |
| 61 | 61 | DECLARE_INPUT_CHANGED_MEMBER(self_test); |
| 62 | | TIMER_DEVICE_CALLBACK_MEMBER(u10_timer); |
| 62 | TIMER_DEVICE_CALLBACK_MEMBER(timer_x); |
| 63 | 63 | TIMER_DEVICE_CALLBACK_MEMBER(u11_timer); |
| 64 | 64 | private: |
| 65 | | UINT8 m_u10; |
| 66 | | UINT8 m_u10_a; |
| 67 | | UINT8 m_u10_b; |
| 68 | | UINT8 m_u11_a; |
| 69 | | UINT8 m_u11_b; |
| 65 | UINT8 m_u10a; |
| 66 | UINT8 m_u10b; |
| 67 | UINT8 m_u11a; |
| 68 | UINT8 m_u11b; |
| 70 | 69 | bool m_u10_ca2; |
| 71 | 70 | bool m_u10_cb2; |
| 72 | | bool m_u10_timer; |
| 71 | bool m_u11_cb2; |
| 72 | bool m_timer_x; |
| 73 | 73 | bool m_u11_timer; |
| 74 | 74 | bool m_su; // speech unit fitted yes/no |
| 75 | bool m_6d; // 6-digit display yes/no |
| 75 | 76 | UINT8 m_digit; |
| 76 | | UINT8 m_segment; |
| 77 | UINT8 m_counter; |
| 77 | 78 | virtual void machine_reset(); |
| 78 | 79 | required_device<m6800_cpu_device> m_maincpu; |
| 79 | 80 | optional_device<s14001a_device> m_s14001a; |
| r31677 | r31678 | |
| 97 | 98 | AM_RANGE(0x0000, 0x007f) AM_RAM // internal to the cpu |
| 98 | 99 | AM_RANGE(0x0088, 0x008b) AM_DEVREADWRITE("pia_u10", pia6821_device, read, write) |
| 99 | 100 | AM_RANGE(0x0090, 0x0093) AM_DEVREADWRITE("pia_u11", pia6821_device, read, write) |
| 100 | | AM_RANGE(0x00a0, 0x00bf) AM_WRITENOP // to sound board |
| 101 | | AM_RANGE(0x00c0, 0x00df) // to sound board |
| 101 | AM_RANGE(0x00a0, 0x00a7) AM_WRITENOP // to sound board |
| 102 | AM_RANGE(0x00c0, 0x00c7) // to sound board |
| 102 | 103 | AM_RANGE(0x0200, 0x02ff) AM_RAM AM_SHARE("nvram") |
| 103 | 104 | AM_RANGE(0x1000, 0xffff) AM_ROM //AM_REGION("roms", 0 ) |
| 104 | 105 | ADDRESS_MAP_END |
| r31677 | r31678 | |
| 310 | 311 | WRITE_LINE_MEMBER( st_mp200_state::u10_ca2_w ) |
| 311 | 312 | { |
| 312 | 313 | m_u10_ca2 = state; |
| 314 | if (!state) |
| 315 | m_counter = 0; |
| 313 | 316 | } |
| 314 | | |
| 317 | |
| 315 | 318 | WRITE_LINE_MEMBER( st_mp200_state::u10_cb2_w ) |
| 316 | 319 | { |
| 317 | 320 | if (m_su) |
| r31677 | r31678 | |
| 329 | 332 | |
| 330 | 333 | if ((m_su) & (state)) |
| 331 | 334 | { |
| 332 | | if BIT(m_u10_a, 7) |
| 335 | if BIT(m_u10a, 7) |
| 333 | 336 | { |
| 334 | | m_s14001a->reg_w(m_u10_a & 0x3f); |
| 337 | m_s14001a->reg_w(m_u10a & 0x3f); |
| 335 | 338 | m_s14001a->rst_w(1); |
| 336 | 339 | m_s14001a->rst_w(0); |
| 337 | 340 | } |
| 338 | 341 | else |
| 339 | | if BIT(m_u10_a, 6) |
| 342 | if BIT(m_u10a, 6) |
| 340 | 343 | { |
| 341 | | m_s14001a->set_volume(((m_u10_a & 0x38) >> 3) + 1); |
| 344 | m_s14001a->set_volume(((m_u10a & 0x38) >> 3) + 1); |
| 342 | 345 | |
| 343 | | UINT8 clock_divisor = 16 - (m_u10_a & 0x07); |
| 346 | UINT8 clock_divisor = 16 - (m_u10a & 0x07); |
| 344 | 347 | |
| 345 | 348 | m_s14001a->set_clock(S14001_CLOCK / clock_divisor / 8); |
| 346 | 349 | } |
| r31677 | r31678 | |
| 349 | 352 | |
| 350 | 353 | WRITE_LINE_MEMBER( st_mp200_state::u11_cb2_w ) |
| 351 | 354 | { |
| 355 | m_u11_cb2 = state; |
| 352 | 356 | } |
| 353 | 357 | |
| 354 | 358 | READ8_MEMBER( st_mp200_state::u10_a_r ) |
| 355 | 359 | { |
| 356 | | return m_u10_a; |
| 360 | return m_u10a; |
| 357 | 361 | } |
| 358 | 362 | |
| 359 | 363 | WRITE8_MEMBER( st_mp200_state::u10_a_w ) |
| 360 | 364 | { |
| 361 | 365 | static const UINT8 patterns[16] = { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0,0,0,0,0,0 }; // MC14543 |
| 362 | | m_segment = data >> 4; |
| 363 | | m_u10_a = data; |
| 364 | | m_u10 = (data & 15) | (BIT(m_u11_a, 0) << 4); |
| 366 | m_u10a = data; |
| 367 | |
| 365 | 368 | if (!m_u10_ca2) |
| 366 | 369 | { |
| 367 | | switch (m_u10) |
| 368 | | { |
| 369 | | case 0x1e: |
| 370 | | output_set_digit_value(m_digit, patterns[m_segment]); |
| 371 | | break; |
| 372 | | case 0x1d: |
| 373 | | output_set_digit_value(8+m_digit, patterns[m_segment]); |
| 374 | | break; |
| 375 | | case 0x1b: |
| 376 | | output_set_digit_value(16+m_digit, patterns[m_segment]); |
| 377 | | break; |
| 378 | | case 0x07: |
| 379 | | output_set_digit_value(24+m_digit, patterns[m_segment]); |
| 380 | | break; |
| 381 | | case 0x0f: |
| 382 | | output_set_digit_value(32+m_digit, patterns[m_segment]); |
| 383 | | break; |
| 384 | | default://printf("%X ",m_u10); |
| 385 | | break; |
| 386 | | } |
| 370 | m_counter++; |
| 371 | UINT8 segment = data >> 4; |
| 372 | |
| 373 | if (m_6d && !m_digit && (m_counter < 6)) |
| 374 | m_digit = 6; // handle 6-digit display |
| 375 | |
| 376 | if (m_counter==1) |
| 377 | output_set_digit_value(m_digit, patterns[segment]); |
| 378 | else |
| 379 | if (m_counter==3) |
| 380 | output_set_digit_value(10+m_digit, patterns[segment]); |
| 381 | else |
| 382 | if (m_counter==5) |
| 383 | output_set_digit_value(20+m_digit, patterns[segment]); |
| 384 | else |
| 385 | if (m_counter==8) |
| 386 | output_set_digit_value(30+m_digit, patterns[segment]); |
| 387 | else |
| 388 | if (m_counter==10) |
| 389 | output_set_digit_value(40+m_digit, patterns[segment]); |
| 387 | 390 | } |
| 388 | 391 | } |
| 389 | 392 | |
| r31677 | r31678 | |
| 391 | 394 | { |
| 392 | 395 | UINT8 data = 0; |
| 393 | 396 | |
| 394 | | if (BIT(m_u10_a, 0)) |
| 397 | if (BIT(m_u10a, 0)) |
| 395 | 398 | data |= m_io_x0->read(); |
| 396 | 399 | |
| 397 | | if (BIT(m_u10_a, 1)) |
| 400 | if (BIT(m_u10a, 1)) |
| 398 | 401 | data |= m_io_x1->read(); |
| 399 | 402 | |
| 400 | | if (BIT(m_u10_a, 2)) |
| 403 | if (BIT(m_u10a, 2)) |
| 401 | 404 | data |= m_io_x2->read(); |
| 402 | 405 | |
| 403 | | if (BIT(m_u10_a, 3)) |
| 406 | if (BIT(m_u10a, 3)) |
| 404 | 407 | data |= m_io_x3->read(); |
| 405 | 408 | |
| 406 | | if (BIT(m_u10_a, 4)) |
| 409 | if (BIT(m_u10a, 4)) |
| 407 | 410 | data |= m_io_x4->read(); |
| 408 | 411 | |
| 409 | | if (BIT(m_u10_a, 5)) |
| 412 | if (BIT(m_u10a, 5)) |
| 410 | 413 | data |= m_io_dsw0->read(); |
| 411 | 414 | |
| 412 | | if (BIT(m_u10_a, 6)) |
| 415 | if (BIT(m_u10a, 6)) |
| 413 | 416 | data |= m_io_dsw1->read(); |
| 414 | 417 | |
| 415 | | if (BIT(m_u10_a, 7)) |
| 418 | if (BIT(m_u10a, 7)) |
| 416 | 419 | data |= m_io_dsw2->read(); |
| 417 | 420 | |
| 418 | 421 | if (m_u10_cb2) |
| r31677 | r31678 | |
| 423 | 426 | |
| 424 | 427 | WRITE8_MEMBER( st_mp200_state::u10_b_w ) |
| 425 | 428 | { |
| 426 | | m_u10_b = data; |
| 429 | m_u10b = data; |
| 427 | 430 | } |
| 428 | 431 | |
| 429 | 432 | READ8_MEMBER( st_mp200_state::u11_a_r ) |
| 430 | 433 | { |
| 431 | | return m_u11_a; |
| 434 | return m_u11a; |
| 432 | 435 | } |
| 433 | 436 | |
| 434 | 437 | WRITE8_MEMBER( st_mp200_state::u11_a_w ) |
| 435 | 438 | { |
| 436 | | m_u11_a = data; |
| 439 | m_u11a = data; |
| 437 | 440 | |
| 438 | | m_digit = 0xff; |
| 439 | | if BIT(data, 2) |
| 440 | | m_digit = 4; |
| 441 | | else |
| 442 | | if BIT(data, 3) |
| 443 | | m_digit = 3; |
| 444 | | else |
| 445 | | if BIT(data, 4) |
| 446 | | m_digit = 2; |
| 447 | | else |
| 448 | | if BIT(data, 5) |
| 449 | | m_digit = 1; |
| 450 | | else |
| 451 | | if BIT(data, 6) |
| 452 | | m_digit = 0; |
| 453 | | else |
| 454 | | if BIT(data, 7) |
| 455 | | m_digit = 5; |
| 441 | if (!m_u10_ca2) |
| 442 | { |
| 443 | if BIT(data, 1) |
| 444 | m_digit = 6; |
| 445 | else |
| 446 | if BIT(data, 2) |
| 447 | m_digit = 5; |
| 448 | else |
| 449 | if BIT(data, 3) |
| 450 | m_digit = 4; |
| 451 | else |
| 452 | if BIT(data, 4) |
| 453 | m_digit = 3; |
| 454 | else |
| 455 | if BIT(data, 5) |
| 456 | m_digit = 2; |
| 457 | else |
| 458 | if BIT(data, 6) |
| 459 | m_digit = 1; |
| 460 | else |
| 461 | if BIT(data, 7) |
| 462 | m_digit = 0; |
| 463 | |
| 464 | m_counter++; |
| 465 | } |
| 456 | 466 | } |
| 457 | 467 | |
| 458 | 468 | WRITE8_MEMBER( st_mp200_state::u11_b_w ) |
| 459 | 469 | { |
| 460 | | m_u11_b = data; |
| 461 | | switch (data & 15) |
| 470 | m_u11b = data; |
| 471 | if (!m_u11_cb2) |
| 462 | 472 | { |
| 463 | | case 0x0: // |
| 464 | | //m_samples->start(0, 3); |
| 465 | | break; |
| 466 | | case 0x1: // chime 10 |
| 467 | | m_samples->start(1, 1); |
| 468 | | break; |
| 469 | | case 0x2: // chime 100 |
| 470 | | m_samples->start(2, 2); |
| 471 | | break; |
| 472 | | case 0x3: // chime 1000 |
| 473 | | m_samples->start(3, 3); |
| 474 | | break; |
| 475 | | case 0x4: // chime 10000 |
| 476 | | m_samples->start(0, 4); |
| 477 | | break; |
| 478 | | case 0x5: // knocker |
| 479 | | m_samples->start(0, 6); |
| 480 | | break; |
| 481 | | case 0x6: // outhole |
| 482 | | m_samples->start(0, 5); |
| 483 | | break; |
| 484 | | // from here, vary per game |
| 485 | | case 0x7: |
| 486 | | case 0x8: |
| 487 | | case 0x9: |
| 488 | | //m_samples->start(0, 5); |
| 489 | | break; |
| 490 | | case 0xa: |
| 491 | | //m_samples->start(0, 5); |
| 492 | | break; |
| 493 | | case 0xb: |
| 494 | | //m_samples->start(0, 0); |
| 495 | | break; |
| 496 | | case 0xc: |
| 497 | | //m_samples->start(0, 5); |
| 498 | | break; |
| 499 | | case 0xd: |
| 500 | | //m_samples->start(0, 0); |
| 501 | | break; |
| 502 | | case 0xe: |
| 503 | | //m_samples->start(0, 5); |
| 504 | | break; |
| 505 | | case 0xf: // not used |
| 506 | | break; |
| 473 | switch (data & 15) |
| 474 | { |
| 475 | case 0x0: // |
| 476 | //m_samples->start(0, 3); |
| 477 | break; |
| 478 | case 0x1: // chime 10 |
| 479 | //m_samples->start(1, 1); |
| 480 | break; |
| 481 | case 0x2: // chime 100 |
| 482 | //m_samples->start(2, 2); |
| 483 | break; |
| 484 | case 0x3: // chime 1000 |
| 485 | //m_samples->start(3, 3); |
| 486 | break; |
| 487 | case 0x4: // chime 10000 |
| 488 | //m_samples->start(0, 4); |
| 489 | break; |
| 490 | case 0x5: // knocker |
| 491 | m_samples->start(0, 6); |
| 492 | break; |
| 493 | case 0x6: // outhole |
| 494 | m_samples->start(0, 5); |
| 495 | break; |
| 496 | // from here, vary per game |
| 497 | case 0x7: |
| 498 | case 0x8: |
| 499 | case 0x9: |
| 500 | //m_samples->start(0, 5); |
| 501 | break; |
| 502 | case 0xa: |
| 503 | //m_samples->start(0, 5); |
| 504 | break; |
| 505 | case 0xb: |
| 506 | //m_samples->start(0, 0); |
| 507 | break; |
| 508 | case 0xc: |
| 509 | //m_samples->start(0, 5); |
| 510 | break; |
| 511 | case 0xd: |
| 512 | //m_samples->start(0, 0); |
| 513 | break; |
| 514 | case 0xe: |
| 515 | //m_samples->start(0, 5); |
| 516 | break; |
| 517 | case 0xf: // not used |
| 518 | break; |
| 519 | } |
| 507 | 520 | } |
| 508 | 521 | } |
| 509 | 522 | |
| 510 | 523 | void st_mp200_state::machine_reset() |
| 511 | 524 | { |
| 512 | | m_u10_a = 0; |
| 513 | | m_u10_b = 0; |
| 525 | m_u10a = 0; |
| 526 | m_u10b = 0; |
| 514 | 527 | m_u10_cb2 = 0; |
| 515 | | m_u11_a = 0; |
| 516 | | m_u11_b = 0; |
| 528 | m_u11a = 0; |
| 529 | m_u11b = 0; |
| 517 | 530 | } |
| 518 | 531 | |
| 519 | 532 | DRIVER_INIT_MEMBER( st_mp200_state, st_mp200 ) |
| 520 | 533 | { |
| 534 | m_6d = 0; |
| 521 | 535 | m_su = 0; |
| 522 | 536 | } |
| 523 | 537 | |
| 524 | 538 | DRIVER_INIT_MEMBER( st_mp200_state, st_mp201 ) |
| 525 | 539 | { |
| 540 | m_6d = 0; |
| 526 | 541 | m_su = 1; |
| 527 | 542 | } |
| 528 | 543 | |
| 544 | DRIVER_INIT_MEMBER( st_mp200_state, st_mp202 ) |
| 545 | { |
| 546 | m_6d = 1; |
| 547 | m_su = 0; |
| 548 | } |
| 549 | |
| 529 | 550 | // zero-cross detection |
| 530 | | TIMER_DEVICE_CALLBACK_MEMBER( st_mp200_state::u10_timer ) |
| 551 | TIMER_DEVICE_CALLBACK_MEMBER( st_mp200_state::timer_x ) |
| 531 | 552 | { |
| 532 | | m_u10_timer ^= 1; |
| 533 | | m_pia_u10->cb1_w(m_u10_timer); |
| 553 | m_timer_x ^= 1; |
| 554 | m_pia_u10->cb1_w(m_timer_x); |
| 534 | 555 | } |
| 535 | 556 | |
| 536 | 557 | // 555 timer for display refresh |
| r31677 | r31678 | |
| 563 | 584 | MCFG_PIA_CB2_HANDLER(WRITELINE(st_mp200_state, u10_cb2_w)) |
| 564 | 585 | MCFG_PIA_IRQA_HANDLER(DEVWRITELINE("maincpu", m6800_cpu_device, irq_line)) |
| 565 | 586 | MCFG_PIA_IRQB_HANDLER(DEVWRITELINE("maincpu", m6800_cpu_device, irq_line)) |
| 566 | | MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_z", st_mp200_state, u10_timer, attotime::from_hz(120)) // mains freq*2 |
| 587 | MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_x", st_mp200_state, timer_x, attotime::from_hz(120)) // mains freq*2 |
| 567 | 588 | |
| 568 | 589 | MCFG_DEVICE_ADD("pia_u11", PIA6821, 0) |
| 569 | 590 | MCFG_PIA_READPA_HANDLER(READ8(st_mp200_state, u11_a_r)) |
| r31677 | r31678 | |
| 889 | 910 | ROM_RELOAD( 0xf800, 0x0800) |
| 890 | 911 | ROM_END |
| 891 | 912 | |
| 913 | // 6-digit |
| 914 | GAME(1979, meteorp, 0, st_mp200, mp200, st_mp200_state, st_mp202, ROT0, "Stern", "Meteor (Stern)", GAME_IS_SKELETON_MECHANICAL) |
| 915 | GAME(1980, galaxypi, 0, st_mp200, mp200, st_mp200_state, st_mp202, ROT0, "Stern", "Galaxy", GAME_IS_SKELETON_MECHANICAL) |
| 916 | GAME(1980, ali, 0, st_mp200, mp200, st_mp200_state, st_mp202, ROT0, "Stern", "Ali", GAME_IS_SKELETON_MECHANICAL) |
| 892 | 917 | |
| 893 | | GAME(1979, meteorp, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Meteor (Stern)", GAME_IS_SKELETON_MECHANICAL) |
| 894 | | GAME(1980, galaxypi, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Galaxy", GAME_IS_SKELETON_MECHANICAL) |
| 918 | // 7-digit |
| 919 | GAME(1980, biggame, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Big Game", GAME_IS_SKELETON_MECHANICAL) |
| 895 | 920 | GAME(1980, cheetah, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Cheetah", GAME_IS_SKELETON_MECHANICAL) |
| 896 | 921 | GAME(1980, quicksil, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Quicksilver", GAME_IS_SKELETON_MECHANICAL) |
| 897 | | GAME(1980, ali, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Ali", GAME_IS_SKELETON_MECHANICAL) |
| 898 | | GAME(1980, biggame, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Big Game", GAME_IS_SKELETON_MECHANICAL) |
| 899 | 922 | GAME(1980, seawitch, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Seawitch", GAME_IS_SKELETON_MECHANICAL) |
| 900 | 923 | GAME(1980, nineball, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Nine Ball", GAME_IS_SKELETON_MECHANICAL) |
| 901 | 924 | GAME(1981, lightnin, 0, st_mp201, mp200, st_mp200_state, st_mp201, ROT0, "Stern", "Lightning", GAME_IS_SKELETON_MECHANICAL) |
| 902 | 925 | GAME(1980, stargzr, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Stargazer", GAME_IS_SKELETON_MECHANICAL) |
| 926 | GAME(1981, splitsec, 0, st_mp201, mp200, st_mp200_state, st_mp201, ROT0, "Stern", "Split Second", GAME_IS_SKELETON_MECHANICAL) |
| 927 | GAME(1981, catacomp, 0, st_mp201, mp200, st_mp200_state, st_mp201, ROT0, "Stern", "Catacomb (Pinball)", GAME_IS_SKELETON_MECHANICAL) |
| 928 | GAME(1982, dragfist, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Dragonfist", GAME_IS_SKELETON_MECHANICAL) |
| 929 | GAME(1984, lazrlord, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Lazer Lord", GAME_IS_SKELETON_MECHANICAL) |
| 930 | |
| 931 | // hang after boot |
| 903 | 932 | GAME(1980, flight2k, 0, st_mp201, mp200, st_mp200_state, st_mp201, ROT0, "Stern", "Flight 2000", GAME_IS_SKELETON_MECHANICAL) |
| 904 | 933 | GAME(1981, freefall, 0, st_mp201, mp200, st_mp200_state, st_mp201, ROT0, "Stern", "Freefall", GAME_IS_SKELETON_MECHANICAL) |
| 905 | | GAME(1981, splitsec, 0, st_mp201, mp200, st_mp200_state, st_mp201, ROT0, "Stern", "Split Second", GAME_IS_SKELETON_MECHANICAL) |
| 906 | | GAME(1981, catacomp, 0, st_mp201, mp200, st_mp200_state, st_mp201, ROT0, "Stern", "Catacomb (Pinball)", GAME_IS_SKELETON_MECHANICAL) |
| 907 | 934 | GAME(1981, viperp, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Viper (Pinball)", GAME_IS_SKELETON_MECHANICAL) |
| 908 | 935 | GAME(1981, ironmaid, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Iron Maiden", GAME_IS_SKELETON_MECHANICAL) |
| 909 | | GAME(1982, dragfist, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Dragonfist", GAME_IS_SKELETON_MECHANICAL) |
| 910 | 936 | GAME(1982, orbitor1, 0, st_mp201, mp200, st_mp200_state, st_mp201, ROT0, "Stern", "Orbitor 1", GAME_IS_SKELETON_MECHANICAL) |
| 911 | | GAME(1984, lazrlord, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Stern", "Lazer Lord", GAME_IS_SKELETON_MECHANICAL) |
| 912 | 937 | |
| 913 | 938 | // other manufacturer |
| 914 | 939 | GAME(1985, gamatron, flight2k, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Pinstar", "Gamatron", GAME_IS_SKELETON_MECHANICAL) |
| 915 | | GAME(1978, blkshpsq, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "Astro", "Black Sheep Squadron", GAME_IS_SKELETON_MECHANICAL) |
| 940 | GAME(1978, blkshpsq, 0, st_mp200, mp200, st_mp200_state, st_mp202, ROT0, "Astro", "Black Sheep Squadron", GAME_IS_SKELETON_MECHANICAL) |
| 916 | 941 | GAME(198?, st_game, 0, st_mp200, mp200, st_mp200_state, st_mp200, ROT0, "<unknown>", "unknown pinball game", GAME_IS_SKELETON_MECHANICAL) |