| Previous | 15994 Revisions | Next |
| r14999 Sunday 22nd April, 2012 at 15:16:07 UTC by Miodrag Milanović |
|---|
| Sync with U7 (nw) |
| [src] | version.c |
| [src/emu] | device.c device.h diexec.c diexec.h driver.c driver.h ioport.h memory.c memory.h rendersw.c |
| [src/emu/cpu/m68000] | 68307bus.c 68307bus.h 68307ser.c 68307ser.h 68340sim.h |
| [src/emu/imagedev] | cassette.c |
| [src/emu/sound] | i5000.c i5000.h |
| [src/emu/video] | mc6845.c |
| [src/lib/formats] | adam_cas.c ap2_dsk.c ap2_dsk.h |
| [src/lib/softfloat] | fyl2x.c |
| [src/mame] | mame.lst |
| [src/mame/audio] | aztarac.c cchasm.c mario.c midway.c midway.h redalert.c williams.c williams.h |
| [src/mame/drivers] | amaticmg.c astrafr.c berzerk.c bfm_sc4.c bfm_sc4h.c coolridr.c darkhors.c ddenlovr.c ddragon.c deco32.c ecoinf3.c flower.c gal3.c galaxia.c galaxian.c gladiatr.c globalfr.c gsword.c jpmsys7.c liberatr.c mcr.c mcr3.c mediagx.c meyc8080.c meyc8088.c midvunit.c midyunit.c model3.c naomi.c proconn.c psikyo.c quasar.c segas32.c seta.c seta2.c silvmil.c snesb.c splus.c ssv.c suna16.c taitoair.c tetrisp2.c vcombat.c viper.c voyager.c zn.c |
| [src/mame/includes] | amiga.h argus.h balsente.h bfm_sc45.h bigstrkb.h btime.h cave.h cclimber.h equites.h galaga.h galaxian.h kaneko16.h lasso.h mcr.h metalmx.h midtunit.h midyunit.h model2.h namcos22.h nmk16.h rungun.h splash.h st0016.h taito_f2.h taito_f3.h terracre.h toaplan2.h turbo.h twin16.h zaxxon.h |
| [src/mame/layout] | bfm_sc4.lay |
| [src/mame/machine] | atarigen.h bfm_bd1.c pgmprot1.c r2crypt.c sec.c steppers.c steppers.h ticket.c ticket.h |
| [src/mame/video] | nycaptor.c tetrisp2.c tia.h |
| [src/osd/sdl] | sdl.mak |
| [src/osd/windows] | windows.mak |
| r14998 | r14999 | |
|---|---|---|
| 8968 | 8968 | puzlstar // (c) 1999 Puzzle Star |
| 8969 | 8969 | olds // (c) 1999 Oriental Legend Super / Special |
| 8970 | 8970 | olds100 // |
| 8971 | olds100a // | |
| 8971 | olds100a // | |
| 8972 | 8972 | kov2 // (c) 2000 Knights of Valor 2 |
| 8973 | 8973 | kov2106 // |
| 8974 | 8974 | kov2103 // |
| r14998 | r14999 | |
| 9010 | 9010 | ddpdoj // (c) 2002 DoDonPachi Dai-Ou-Jou |
| 9011 | 9011 | ddpdoja // |
| 9012 | 9012 | ddpdojb // |
| 9013 | ddpdojblk // | |
| 9013 | ddpdojblk // | |
| 9014 | 9014 | espgal // (c) 2003 Espgaluda |
| 9015 | 9015 | |
| 9016 | 9016 | // IGS PGM2 Platform |
| r14998 | r14999 | |
|---|---|---|
| 40 | 40 | { |
| 41 | 41 | m_sound_flags &= ~0x80; |
| 42 | 42 | z80ctc_trg2_w(m_ctc, 0); |
| 43 | return soundlatch2_byte_r( | |
| 43 | return soundlatch2_byte_r( | |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | WRITE8_MEMBER(cchasm_state::cchasm_soundlatch4_w) |
| 47 | 47 | { |
| 48 | 48 | m_sound_flags |= 0x40; |
| 49 | soundlatch4_byte_w( | |
| 49 | soundlatch4_byte_w( | |
| 50 | 50 | cputag_set_input_line(machine(), "maincpu", 1, HOLD_LINE); |
| 51 | 51 | } |
| 52 | 52 | |
| r14998 | r14999 | |
| 60 | 60 | switch (offset & 0xf) |
| 61 | 61 | { |
| 62 | 62 | case 0: |
| 63 | soundlatch_byte_w( | |
| 63 | soundlatch_byte_w( | |
| 64 | 64 | break; |
| 65 | 65 | case 1: |
| 66 | 66 | m_sound_flags |= 0x80; |
| 67 | soundlatch2_byte_w( | |
| 67 | soundlatch2_byte_w( | |
| 68 | 68 | z80ctc_trg2_w(m_ctc, 1); |
| 69 | 69 | cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE); |
| 70 | 70 | break; |
| r14998 | r14999 | |
| 80 | 80 | switch (offset & 0xf) |
| 81 | 81 | { |
| 82 | 82 | case 0x0: |
| 83 | return soundlatch3_byte_r( | |
| 83 | return soundlatch3_byte_r( | |
| 84 | 84 | case 0x1: |
| 85 | 85 | m_sound_flags &= ~0x40; |
| 86 | return soundlatch4_byte_r( | |
| 86 | return soundlatch4_byte_r( | |
| 87 | 87 | case 0x2: |
| 88 | 88 | return (m_sound_flags| (input_port_read(machine(), "IN3") & 0x07) | 0x08) << 8; |
| 89 | 89 | case 0x5: |
| r14998 | r14999 | |
|---|---|---|
| 107 | 107 | |
| 108 | 108 | //------------------------------------------------- |
| 109 | 109 | // write - handle an external write to one of the |
| 110 | // | |
| 110 | // input latches | |
| 111 | 111 | //------------------------------------------------- |
| 112 | 112 | |
| 113 | 113 | WRITE8_MEMBER(midway_ssio_device::write) |
| r14998 | r14999 | |
| 128 | 128 | device_reset(); |
| 129 | 129 | m_cpu->set_input_line(INPUT_LINE_RESET, ASSERT_LINE); |
| 130 | 130 | } |
| 131 | ||
| 131 | ||
| 132 | 132 | // going low resets and reactivates the CPU |
| 133 | 133 | else |
| 134 | 134 | m_cpu->set_input_line(INPUT_LINE_RESET, CLEAR_LINE); |
| r14998 | r14999 | |
| 167 | 167 | |
| 168 | 168 | //------------------------------------------------- |
| 169 | 169 | // set_custom_input - configure a custom port |
| 170 | // | |
| 170 | // reader | |
| 171 | 171 | //------------------------------------------------- |
| 172 | 172 | |
| 173 | 173 | void midway_ssio_device::set_custom_input(int which, UINT8 mask, read8_delegate handler) |
| r14998 | r14999 | |
| 179 | 179 | |
| 180 | 180 | //------------------------------------------------- |
| 181 | 181 | // set_custom_output - configure a custom port |
| 182 | // | |
| 182 | // writer | |
| 183 | 183 | //------------------------------------------------- |
| 184 | 184 | |
| 185 | 185 | void midway_ssio_device::set_custom_output(int which, UINT8 mask, write8_delegate handler) |
| r14998 | r14999 | |
| 191 | 191 | |
| 192 | 192 | //------------------------------------------------- |
| 193 | 193 | // compute_ay8910_modulation - precompute |
| 194 | // volume modulation tables based on the duty | |
| 195 | // cycle described by the PROMs | |
| 194 | // volume modulation tables based on the duty | |
| 195 | // cycle described by the PROMs | |
| 196 | 196 | //------------------------------------------------- |
| 197 | 197 | |
| 198 | 198 | void midway_ssio_device::compute_ay8910_modulation() |
| r14998 | r14999 | |
| 201 | 201 | // AY-8910 modulation: |
| 202 | 202 | // |
| 203 | 203 | // Starts with a 16MHz oscillator |
| 204 | // | |
| 204 | // /2 via 7474 flip-flip @ F11 | |
| 205 | 205 | // |
| 206 | 206 | // This signal clocks the binary counter @ E11 which |
| 207 | 207 | // cascades into the decade counter @ D11. This combo |
| r14998 | r14999 | |
| 258 | 258 | |
| 259 | 259 | //------------------------------------------------- |
| 260 | 260 | // clock_14024 - periodic timer to clock the |
| 261 | // | |
| 261 | // 7-bit async counter at C12 | |
| 262 | 262 | //------------------------------------------------- |
| 263 | 263 | |
| 264 | 264 | INTERRUPT_GEN_MEMBER(midway_ssio_device::clock_14024) |
| r14998 | r14999 | |
| 367 | 367 | |
| 368 | 368 | //------------------------------------------------- |
| 369 | 369 | // update_volumes - update the volumes of each |
| 370 | // | |
| 370 | // AY-8910 channel based on modulation and mute | |
| 371 | 371 | //------------------------------------------------- |
| 372 | 372 | |
| 373 | 373 | void midway_ssio_device::update_volumes() |
| r14998 | r14999 | |
| 488 | 488 | ioport_constructor midway_ssio_device::device_input_ports() const |
| 489 | 489 | { |
| 490 | 490 | return NULL; |
| 491 | // | |
| 491 | // return INPUT_PORTS_NAME( midway_ssio ); | |
| 492 | 492 | } |
| 493 | 493 | |
| 494 | 494 | |
| r14998 | r14999 | |
| 564 | 564 | |
| 565 | 565 | //------------------------------------------------- |
| 566 | 566 | // write - handle an external write to the input |
| 567 | // | |
| 567 | // latch | |
| 568 | 568 | //------------------------------------------------- |
| 569 | 569 | |
| 570 | 570 | WRITE8_MEMBER(midway_chip_squeak_deluxe_device::write) |
| r14998 | r14999 | |
| 779 | 779 | |
| 780 | 780 | //------------------------------------------------- |
| 781 | 781 | // write - handle an external write to the input |
| 782 | // | |
| 782 | // latch | |
| 783 | 783 | //------------------------------------------------- |
| 784 | 784 | |
| 785 | 785 | WRITE8_MEMBER(midway_sounds_good_device::write) |
| r14998 | r14999 | |
| 966 | 966 | |
| 967 | 967 | //------------------------------------------------- |
| 968 | 968 | // write - handle an external write to the input |
| 969 | // | |
| 969 | // latch | |
| 970 | 970 | //------------------------------------------------- |
| 971 | 971 | |
| 972 | 972 | WRITE8_MEMBER(midway_turbo_chip_squeak_device::write) |
| r14998 | r14999 | |
| 1137 | 1137 | |
| 1138 | 1138 | //------------------------------------------------- |
| 1139 | 1139 | // write - handle an external write to the input |
| 1140 | // | |
| 1140 | // latch | |
| 1141 | 1141 | //------------------------------------------------- |
| 1142 | 1142 | |
| 1143 | 1143 | WRITE8_MEMBER(midway_squawk_n_talk_device::write) |
| r14998 | r14999 | |
|---|---|---|
| 104 | 104 | DECLARE_WRITE_LINE_MEMBER(reset_write); |
| 105 | 105 | DECLARE_READ8_MEMBER(ioport_read); |
| 106 | 106 | DECLARE_WRITE8_MEMBER(ioport_write); |
| 107 | ||
| 107 | ||
| 108 | 108 | // configuration |
| 109 | 109 | void set_custom_input(int which, UINT8 mask, read8_delegate handler); |
| 110 | 110 | void set_custom_output(int which, UINT8 mask, write8_delegate handler); |
| r14998 | r14999 | |
|---|---|---|
| 19 | 19 | if (ACCESSING_BITS_0_7) |
| 20 | 20 | { |
| 21 | 21 | data &= 0xff; |
| 22 | soundlatch_byte_w( | |
| 22 | soundlatch_byte_w( | |
| 23 | 23 | m_sound_status ^= 0x21; |
| 24 | 24 | if (m_sound_status & 0x20) |
| 25 | 25 | cputag_set_input_line(machine(), "audiocpu", 0, HOLD_LINE); |
| r14998 | r14999 | |
| 30 | 30 | { |
| 31 | 31 | m_sound_status |= 0x01; |
| 32 | 32 | m_sound_status &= ~0x20; |
| 33 | return soundlatch_byte_r( | |
| 33 | return soundlatch_byte_r( | |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | READ8_MEMBER(aztarac_state::aztarac_snd_status_r) |
| r14998 | r14999 | |
|---|---|---|
| 111 | 111 | |
| 112 | 112 | //------------------------------------------------- |
| 113 | 113 | // write - handle an external write to the input |
| 114 | // | |
| 114 | // latch | |
| 115 | 115 | //------------------------------------------------- |
| 116 | 116 | |
| 117 | 117 | WRITE16_MEMBER(williams_cvsd_sound_device::write) |
| r14998 | r14999 | |
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 | //------------------------------------------------- |
| 165 | // cvsd_digit_clock_clear_w - clear the clock on | |
| 165 | // cvsd_digit_clock_clear_w - clear the clock on | |
| 166 | 166 | // the HC55516 and clock the data |
| 167 | 167 | //------------------------------------------------- |
| 168 | 168 | |
| r14998 | r14999 | |
| 185 | 185 | |
| 186 | 186 | //------------------------------------------------- |
| 187 | 187 | // ym2151_irq_w - process IRQ signal changes from |
| 188 | // | |
| 188 | // the YM2151 | |
| 189 | 189 | //------------------------------------------------- |
| 190 | 190 | |
| 191 | 191 | WRITE_LINE_MEMBER(williams_cvsd_sound_device::ym2151_irq_w) |
| r14998 | r14999 | |
| 196 | 196 | |
| 197 | 197 | //------------------------------------------------- |
| 198 | 198 | // pia_irqa - process IRQ A signal changes from |
| 199 | // | |
| 199 | // the 6821 | |
| 200 | 200 | //------------------------------------------------- |
| 201 | 201 | |
| 202 | 202 | WRITE_LINE_MEMBER(williams_cvsd_sound_device::pia_irqa) |
| r14998 | r14999 | |
| 207 | 207 | |
| 208 | 208 | //------------------------------------------------- |
| 209 | 209 | // pia_irqb - process IRQ B signal changes from |
| 210 | // | |
| 210 | // the 6821 | |
| 211 | 211 | //------------------------------------------------- |
| 212 | 212 | |
| 213 | 213 | WRITE_LINE_MEMBER(williams_cvsd_sound_device::pia_irqb) |
| r14998 | r14999 | |
| 375 | 375 | |
| 376 | 376 | //------------------------------------------------- |
| 377 | 377 | // read - return the talkback register with the |
| 378 | // | |
| 378 | // SYNC bits in bits 8 and 9 | |
| 379 | 379 | //------------------------------------------------- |
| 380 | 380 | |
| 381 | 381 | READ16_MEMBER(williams_narc_sound_device::read) |
| r14998 | r14999 | |
| 386 | 386 | |
| 387 | 387 | //------------------------------------------------- |
| 388 | 388 | // write - handle an external write to the input |
| 389 | // | |
| 389 | // latch | |
| 390 | 390 | //------------------------------------------------- |
| 391 | 391 | |
| 392 | 392 | WRITE16_MEMBER(williams_narc_sound_device::write) |
| r14998 | r14999 | |
| 444 | 444 | |
| 445 | 445 | //------------------------------------------------- |
| 446 | 446 | // command_r - read command written by external |
| 447 | // | |
| 447 | // agent | |
| 448 | 448 | //------------------------------------------------- |
| 449 | 449 | |
| 450 | 450 | READ8_MEMBER(williams_narc_sound_device::command_r) |
| r14998 | r14999 | |
| 457 | 457 | |
| 458 | 458 | //------------------------------------------------- |
| 459 | 459 | // command2_w - write command from master CPU to |
| 460 | // | |
| 460 | // slave CPU | |
| 461 | 461 | //------------------------------------------------- |
| 462 | 462 | |
| 463 | 463 | WRITE8_MEMBER(williams_narc_sound_device::command2_w) |
| r14998 | r14999 | |
| 468 | 468 | |
| 469 | 469 | //------------------------------------------------- |
| 470 | 470 | // command2_r - read command written by master |
| 471 | // | |
| 471 | // CPU | |
| 472 | 472 | //------------------------------------------------- |
| 473 | 473 | |
| 474 | 474 | READ8_MEMBER(williams_narc_sound_device::command2_r) |
| r14998 | r14999 | |
| 480 | 480 | |
| 481 | 481 | //------------------------------------------------- |
| 482 | 482 | // master_talkback_w - handle writes to the |
| 483 | // | |
| 483 | // talkback latch from the master CPU | |
| 484 | 484 | //------------------------------------------------- |
| 485 | 485 | |
| 486 | 486 | WRITE8_MEMBER(williams_narc_sound_device::master_talkback_w) |
| r14998 | r14999 | |
| 492 | 492 | |
| 493 | 493 | //------------------------------------------------- |
| 494 | 494 | // master_sync_w - handle writes to the master |
| 495 | // | |
| 495 | // SYNC register | |
| 496 | 496 | //------------------------------------------------- |
| 497 | 497 | |
| 498 | 498 | WRITE8_MEMBER(williams_narc_sound_device::master_sync_w) |
| r14998 | r14999 | |
| 505 | 505 | |
| 506 | 506 | //------------------------------------------------- |
| 507 | 507 | // slave_talkback_w - handle writes to the |
| 508 | // | |
| 508 | // talkback latch from the slave CPU | |
| 509 | 509 | //------------------------------------------------- |
| 510 | 510 | |
| 511 | 511 | WRITE8_MEMBER(williams_narc_sound_device::slave_talkback_w) |
| r14998 | r14999 | |
| 516 | 516 | |
| 517 | 517 | //------------------------------------------------- |
| 518 | 518 | // slave_sync_w - handle writes to the slave |
| 519 | // | |
| 519 | // SYNC register | |
| 520 | 520 | //------------------------------------------------- |
| 521 | 521 | |
| 522 | 522 | WRITE8_MEMBER(williams_narc_sound_device::slave_sync_w) |
| r14998 | r14999 | |
| 528 | 528 | |
| 529 | 529 | |
| 530 | 530 | //------------------------------------------------- |
| 531 | // cvsd_digit_clock_clear_w - clear the clock on | |
| 531 | // cvsd_digit_clock_clear_w - clear the clock on | |
| 532 | 532 | // the HC55516 and clock the data |
| 533 | 533 | //------------------------------------------------- |
| 534 | 534 | |
| r14998 | r14999 | |
| 551 | 551 | |
| 552 | 552 | //------------------------------------------------- |
| 553 | 553 | // ym2151_irq_w - handle line changes on the |
| 554 | // | |
| 554 | // YM2151 IRQ line | |
| 555 | 555 | //------------------------------------------------- |
| 556 | 556 | |
| 557 | 557 | WRITE_LINE_MEMBER(williams_narc_sound_device::ym2151_irq_w) |
| r14998 | r14999 | |
| 720 | 720 | m_sound_int_state = 1; |
| 721 | 721 | } |
| 722 | 722 | break; |
| 723 | ||
| 723 | ||
| 724 | 724 | case TID_SLAVE_COMMAND: |
| 725 | 725 | m_latch2 = param & 0xff; |
| 726 | 726 | m_cpu1->set_input_line(M6809_FIRQ_LINE, ASSERT_LINE); |
| 727 | 727 | break; |
| 728 | ||
| 728 | ||
| 729 | 729 | case TID_SYNC_CLEAR: |
| 730 | 730 | m_audio_sync &= ~param; |
| 731 | 731 | break; |
| r14998 | r14999 | |
| 754 | 754 | |
| 755 | 755 | //------------------------------------------------- |
| 756 | 756 | // write - handle an external write to the input |
| 757 | // | |
| 757 | // latch | |
| 758 | 758 | //------------------------------------------------- |
| 759 | 759 | |
| 760 | 760 | WRITE16_MEMBER(williams_adpcm_sound_device::write) |
| r14998 | r14999 | |
| 795 | 795 | |
| 796 | 796 | //------------------------------------------------- |
| 797 | 797 | // bank_select_w - select the sound CPU memory |
| 798 | // | |
| 798 | // bank | |
| 799 | 799 | //------------------------------------------------- |
| 800 | 800 | |
| 801 | 801 | WRITE8_MEMBER(williams_adpcm_sound_device::bank_select_w) |
| r14998 | r14999 | |
| 806 | 806 | |
| 807 | 807 | //------------------------------------------------- |
| 808 | 808 | // bank_select_w - select the OKI6295 memory |
| 809 | // | |
| 809 | // bank | |
| 810 | 810 | //------------------------------------------------- |
| 811 | 811 | |
| 812 | 812 | WRITE8_MEMBER(williams_adpcm_sound_device::oki6295_bank_select_w) |
| r14998 | r14999 | |
| 817 | 817 | |
| 818 | 818 | //------------------------------------------------- |
| 819 | 819 | // command_r - read the command from the external |
| 820 | // | |
| 820 | // latch | |
| 821 | 821 | //------------------------------------------------- |
| 822 | 822 | |
| 823 | 823 | READ8_MEMBER(williams_adpcm_sound_device::command_r) |
| r14998 | r14999 | |
| 983 | 983 | machine().scheduler().boost_interleave(attotime::zero, attotime::from_usec(100)); |
| 984 | 984 | } |
| 985 | 985 | break; |
| 986 | ||
| 986 | ||
| 987 | 987 | case TID_IRQ_CLEAR: |
| 988 | 988 | m_sound_int_state = 0; |
| 989 | 989 | break; |
| r14998 | r14999 | |
|---|---|---|
| 114 | 114 | // internal state |
| 115 | 115 | UINT8 m_talkback; |
| 116 | 116 | }; |
| 117 | ||
| 118 | 117 | |
| 118 | ||
| 119 | 119 | // ======================> williams_narc_sound_device |
| 120 | 120 | |
| 121 | 121 | class williams_narc_sound_device : public device_t, |
| r14998 | r14999 | |
| 218 | 218 | UINT8 m_talkback; |
| 219 | 219 | UINT8 m_sound_int_state; |
| 220 | 220 | }; |
| 221 | ||
| 222 | 221 | |
| 222 |
| r14998 | r14999 | |
|---|---|---|
| 65 | 65 | WRITE8_MEMBER(redalert_state::redalert_audio_command_w) |
| 66 | 66 | { |
| 67 | 67 | /* the byte is connected to port A of the AY8910 */ |
| 68 | soundlatch_byte_w( | |
| 68 | soundlatch_byte_w( | |
| 69 | 69 | |
| 70 | 70 | /* D7 is also connected to the NMI input of the CPU - |
| 71 | 71 | the NMI is actually toggled by a 74121 */ |
| r14998 | r14999 | |
| 154 | 154 | |
| 155 | 155 | WRITE8_MEMBER(redalert_state::redalert_voice_command_w) |
| 156 | 156 | { |
| 157 | soundlatch2_byte_w( | |
| 157 | soundlatch2_byte_w( | |
| 158 | 158 | cputag_set_input_line(machine(), "voice", I8085_RST75_LINE, (~data & 0x80) ? ASSERT_LINE : CLEAR_LINE); |
| 159 | 159 | } |
| 160 | 160 | |
| r14998 | r14999 | |
| 281 | 281 | WRITE8_MEMBER(redalert_state::demoneye_audio_command_w) |
| 282 | 282 | { |
| 283 | 283 | /* the byte is connected to port A of the AY8910 */ |
| 284 | soundlatch_byte_w( | |
| 284 | soundlatch_byte_w( | |
| 285 | 285 | cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE); |
| 286 | 286 | } |
| 287 | 287 |
| r14998 | r14999 | |
|---|---|---|
| 462 | 462 | |
| 463 | 463 | READ8_MEMBER(mario_state::mario_sh_p1_r) |
| 464 | 464 | { |
| 465 | return I8035_P1_R( | |
| 465 | return I8035_P1_R( | |
| 466 | 466 | } |
| 467 | 467 | |
| 468 | 468 | READ8_MEMBER(mario_state::mario_sh_p2_r) |
| 469 | 469 | { |
| 470 | return I8035_P2_R( | |
| 470 | return I8035_P2_R( | |
| 471 | 471 | } |
| 472 | 472 | |
| 473 | 473 | READ8_MEMBER(mario_state::mario_sh_t0_r) |
| 474 | 474 | { |
| 475 | return I8035_T_R( | |
| 475 | return I8035_T_R( | |
| 476 | 476 | } |
| 477 | 477 | |
| 478 | 478 | READ8_MEMBER(mario_state::mario_sh_t1_r) |
| 479 | 479 | { |
| 480 | return I8035_T_R( | |
| 480 | return I8035_T_R( | |
| 481 | 481 | } |
| 482 | 482 | |
| 483 | 483 | READ8_MEMBER(mario_state::mario_sh_tune_r) |
| 484 | 484 | { |
| 485 | 485 | UINT8 *SND = memregion("audiocpu")->base(); |
| 486 | 486 | UINT16 mask = memregion("audiocpu")->bytes()-1; |
| 487 | UINT8 p2 = I8035_P2_R( | |
| 487 | UINT8 p2 = I8035_P2_R( | |
| 488 | 488 | |
| 489 | 489 | if ((p2 >> 7) & 1) |
| 490 | return soundlatch_byte_r( | |
| 490 | return soundlatch_byte_r( | |
| 491 | 491 | else |
| 492 | 492 | return (SND[(0x1000 + (p2 & 0x0f) * 256 + offset) & mask]); |
| 493 | 493 | } |
| r14998 | r14999 | |
| 499 | 499 | |
| 500 | 500 | WRITE8_MEMBER(mario_state::mario_sh_p1_w) |
| 501 | 501 | { |
| 502 | I8035_P1_W( | |
| 502 | I8035_P1_W( | |
| 503 | 503 | } |
| 504 | 504 | |
| 505 | 505 | WRITE8_MEMBER(mario_state::mario_sh_p2_w) |
| 506 | 506 | { |
| 507 | 507 | mario_state *state = machine().driver_data<mario_state>(); |
| 508 | I8035_P2_W( | |
| 508 | I8035_P2_W( | |
| 509 | 509 | } |
| 510 | 510 | |
| 511 | 511 | /**************************************************************** |
| r14998 | r14999 | |
| 528 | 528 | |
| 529 | 529 | WRITE8_MEMBER(mario_state::mario_sh_tuneselect_w) |
| 530 | 530 | { |
| 531 | soundlatch_byte_w( | |
| 531 | soundlatch_byte_w( | |
| 532 | 532 | } |
| 533 | 533 | |
| 534 | 534 | /* Sound 0 and 1 are pulsed !*/ |
| r14998 | r14999 | |
| 558 | 558 | cputag_set_input_line(machine(), "audiocpu",0,CLEAR_LINE); |
| 559 | 559 | break; |
| 560 | 560 | case 1: /* get coin */ |
| 561 | I8035_T_W_AH( | |
| 561 | I8035_T_W_AH( | |
| 562 | 562 | break; |
| 563 | 563 | case 2: /* ice */ |
| 564 | I8035_T_W_AH( | |
| 564 | I8035_T_W_AH( | |
| 565 | 565 | break; |
| 566 | 566 | case 3: /* crab */ |
| 567 | I8035_P1_W_AH( | |
| 567 | I8035_P1_W_AH( | |
| 568 | 568 | break; |
| 569 | 569 | case 4: /* turtle */ |
| 570 | I8035_P1_W_AH( | |
| 570 | I8035_P1_W_AH( | |
| 571 | 571 | break; |
| 572 | 572 | case 5: /* fly */ |
| 573 | I8035_P1_W_AH( | |
| 573 | I8035_P1_W_AH( | |
| 574 | 574 | break; |
| 575 | 575 | case 6: /* coin */ |
| 576 | I8035_P1_W_AH( | |
| 576 | I8035_P1_W_AH( | |
| 577 | 577 | break; |
| 578 | 578 | case 7: /* skid */ |
| 579 | 579 | discrete_sound_w(machine().device("discrete"), DS_SOUND7_INP, data & 1); |
| r14998 | r14999 | |
|---|---|---|
| 377 | 377 | DRIVER_INIT( kovshxas ) |
| 378 | 378 | { |
| 379 | 379 | pgm_basic_init(machine); |
| 380 | // | |
| 380 | // pgm_kovshp_decrypt(machine); | |
| 381 | 381 | pgm_arm7_type1_latch_init(machine); |
| 382 | 382 | machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_read_handler(0x4f0008, 0x4f0009, FUNC(kovsh_fake_region_r)); |
| 383 | 383 | machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_write_handler(0x500000, 0x500005, FUNC(kovshp_asic27a_write_word)); |
| r14998 | r14999 | |
|---|---|---|
| 147 | 147 | |
| 148 | 148 | |
| 149 | 149 | //------------------------------------------------- |
| 150 | // write - write the control line via the active | |
| 150 | // write - write the control line via the active | |
| 151 | 151 | // bit |
| 152 | 152 | //------------------------------------------------- |
| 153 | 153 | |
| r14998 | r14999 | |
| 227 | 227 | |
| 228 | 228 | // update LED status (fixme: should map to an output) |
| 229 | 229 | set_led_status(machine(), 2, (m_status == m_ticketdispensed)); |
| 230 | ||
| 230 | ||
| 231 | 231 | // if we just dispensed, increment global count |
| 232 | 232 | if (m_status == m_ticketdispensed) |
| 233 | 233 | { |
| r14998 | r14999 | |
|---|---|---|
| 105 | 105 | UINT8 m_motor_sense; |
| 106 | 106 | UINT8 m_status_sense; |
| 107 | 107 | attotime m_period; |
| 108 | ||
| 108 | ||
| 109 | 109 | // active state |
| 110 | 110 | UINT8 m_active_bit; |
| 111 | 111 | UINT8 m_motoron; |
| r14998 | r14999 | |
|---|---|---|
| 254 | 254 | default: |
| 255 | 255 | logerror("No reel type specified for %x!\n",which); |
| 256 | 256 | break; |
| 257 | ||
| 257 | ||
| 258 | 258 | case STARPOINT_48STEP_REEL : /* STARPOINT RMxxx */ |
| 259 | 259 | case STARPOINT_200STEP_REEL : |
| 260 | case GAMESMAN_200STEP_REEL : /* Gamesman GMxxxx */ | |
| 260 | case GAMESMAN_200STEP_REEL : /* Gamesman GMxxxx */ | |
| 261 | 261 | case STARPOINT_144STEP_DICE :/* STARPOINT 1DCU DICE mechanism */ |
| 262 | 262 | //Standard drive table is 2,6,4,5,1,9,8,a |
| 263 | 263 | //NOTE: This runs through the stator patterns in such a way as to drive the reel forward (downwards from the player's view, clockwise on our rose) |
| r14998 | r14999 | |
| 401 | 401 | break; |
| 402 | 402 | } |
| 403 | 403 | break; |
| 404 | ||
| 404 | ||
| 405 | 405 | case ECOIN_200STEP_REEL : |
| 406 | 406 | //While the 48 and 100 step models appear to be reverse driven Starpoint reels, the 200 step model seems bespoke, certainly in terms of wiring. |
| 407 | 407 | //On a Proconn machine this same pattern is seen but running in reverse |
| r14998 | r14999 | |
|---|---|---|
| 30 | 30 | #define GAMESMAN_100STEP_REEL 7 |
| 31 | 31 | #define GAMESMAN_200STEP_REEL 8 |
| 32 | 32 | |
| 33 | #define PROJECT_48STEP_REEL 9 | |
| 33 | #define PROJECT_48STEP_REEL 9 | |
| 34 | 34 | |
| 35 | 35 | /*------------- Stepper motor interface structure -----------------*/ |
| 36 | 36 |
| r14998 | r14999 | |
|---|---|---|
| 188 | 188 | UINT32 m_playfield2_latch; |
| 189 | 189 | |
| 190 | 190 | atarigen_screen_timer m_screen_timer[2]; |
| 191 | ||
| 191 | ||
| 192 | 192 | DECLARE_DIRECT_UPDATE_MEMBER(atarigen_slapstic_setdirect); |
| 193 | 193 | }; |
| 194 | 194 |
| r14998 | r14999 | |
|---|---|---|
| 112 | 112 | case SEC_REQUEST_FINGERPRNT: Cmd_Get_Fpr(); break; |
| 113 | 113 | case SEC_REQUEST_LAST_CMD: Cmd_Get_Lst(); break; |
| 114 | 114 | case SEC_REQUEST_COUNT_VAL: Cmd_Get_Cnt(); break; |
| 115 | case SEC_SET_NUM_COUNTERS: | |
| 115 | case SEC_SET_NUM_COUNTERS: | |
| 116 | 116 | case SEC_SET_MARKET: Cmd_Set_Mrk(); break; |
| 117 | 117 | case SEC_SET_COUNTER_TXT: Cmd_Set_Txt(); break; |
| 118 | case SEC_COUNT_INC_SMALL: | |
| 118 | case SEC_COUNT_INC_SMALL: | |
| 119 | 119 | case SEC_COUNT_INC_MED: Cmd_Inc_Med(); break; |
| 120 | 120 | case SEC_COUNT_INC_LARGE: Cmd_Inc_Lrg(); break; |
| 121 | 121 | |
| r14998 | r14999 | |
| 149 | 149 | m_reply[3] = 0; // Last Error |
| 150 | 150 | |
| 151 | 151 | m_reply[4] = CalcByteSum(1); |
| 152 | ||
| 152 | ||
| 153 | 153 | m_rxpos = 0; |
| 154 | 154 | m_rxclk = 0; |
| 155 | 155 | m_rxlen = 5; |
| r14998 | r14999 | |
| 160 | 160 | m_reply[0] = SEC_DAT; |
| 161 | 161 | m_reply[1] = m_last; |
| 162 | 162 | m_reply[2] = 4; |
| 163 | ||
| 163 | ||
| 164 | 164 | // fingerprint |
| 165 | 165 | m_reply[3] = 0x11; |
| 166 | 166 | m_reply[4] = 0x01; |
| r14998 | r14999 | |
| 168 | 168 | m_reply[6] = 0x00; |
| 169 | 169 | |
| 170 | 170 | m_reply[7] = CalcByteSum(4); |
| 171 | ||
| 171 | ||
| 172 | 172 | m_rxpos = 0; |
| 173 | 173 | m_rxclk = 0; |
| 174 | 174 | m_rxlen = 8; |
| r14998 | r14999 | |
| 179 | 179 | m_reply[0] = SEC_DAT; |
| 180 | 180 | m_reply[1] = m_last; |
| 181 | 181 | m_reply[2] = 4; |
| 182 | ||
| 182 | ||
| 183 | 183 | // Last Command (is this really 4 bytes?) |
| 184 | 184 | m_reply[3] = m_last; |
| 185 | 185 | m_reply[4] = 0x00; |
| r14998 | r14999 | |
| 187 | 187 | m_reply[6] = 0x00; |
| 188 | 188 | |
| 189 | 189 | m_reply[7] = CalcByteSum(4); |
| 190 | ||
| 190 | ||
| 191 | 191 | m_rxpos = 0; |
| 192 | 192 | m_rxclk = 0; |
| 193 | 193 | m_rxlen = 8; |
| r14998 | r14999 | |
| 205 | 205 | m_reply[5] = 'E'; |
| 206 | 206 | |
| 207 | 207 | m_reply[6] = CalcByteSum(3); |
| 208 | ||
| 208 | ||
| 209 | 209 | m_rxpos = 0; |
| 210 | 210 | m_rxclk = 0; |
| 211 | 211 | m_rxlen = 7; |
| r14998 | r14999 | |
| 215 | 215 | { |
| 216 | 216 | char temp[10]; |
| 217 | 217 | |
| 218 | sprintf(temp,"%07d0", m_counters[m_request[3]]); | |
| 219 | ||
| 218 | sprintf(temp,"%07d0", m_counters[m_request[3]]); | |
| 219 | ||
| 220 | 220 | m_reply[0] = SEC_DAT; |
| 221 | 221 | m_reply[1] = m_last; |
| 222 | 222 | m_reply[2] = 4; |
| r14998 | r14999 | |
| 227 | 227 | m_reply[6] = ((temp[6] - 0x30) << 4) + (temp[7] - 0x30); |
| 228 | 228 | |
| 229 | 229 | m_reply[7] = CalcByteSum(4); |
| 230 | ||
| 230 | ||
| 231 | 231 | m_rxpos = 0; |
| 232 | 232 | m_rxclk = 0; |
| 233 | 233 | m_rxlen = 8; |
| r14998 | r14999 | |
| 242 | 242 | m_reply[3] = 0x20; // Status |
| 243 | 243 | |
| 244 | 244 | m_reply[4] = CalcByteSum(1); |
| 245 | ||
| 245 | ||
| 246 | 246 | m_rxpos = 0; |
| 247 | 247 | m_rxclk = 0; |
| 248 | 248 | m_rxlen = 5; |
| r14998 | r14999 | |
| 257 | 257 | m_reply[3] = m_market; |
| 258 | 258 | |
| 259 | 259 | m_reply[4] = CalcByteSum(1); |
| 260 | ||
| 260 | ||
| 261 | 261 | m_rxpos = 0; |
| 262 | 262 | m_rxclk = 0; |
| 263 | 263 | m_rxlen = 5; |
| r14998 | r14999 | |
| 278 | 278 | |
| 279 | 279 | void SEC::Cmd_Set_Mrk(void) |
| 280 | 280 | { |
| 281 | m_market = m_request[3]; | |
| 281 | m_market = m_request[3]; | |
| 282 | 282 | |
| 283 | 283 | m_reply[0] = SEC_ACK; |
| 284 | 284 | m_reply[1] = m_last; |
| r14998 | r14999 | |
|---|---|---|
| 12 | 12 | that, when combined, the total amounts of bits is lower (in raiden2 case) or equal |
| 13 | 13 | (in zero team) to the number of bits of a 512*16 bits table (the same size than the |
| 14 | 14 | bigger table uploaded). |
| 15 | ||
| 15 | ||
| 16 | 16 | The size of the tables is different for both games, which points to the hypothesis |
| 17 | 17 | that the position of them within a 512*16 table could be configured through programming. |
| 18 | As illustration, these could be possible configurations: | |
| 18 | As illustration, these could be possible configurations: | |
| 19 | 19 | (r: rotate; x5: x5; x11: x11; u: unused) |
| 20 | ||
| 20 | ||
| 21 | 21 | R2: |
| 22 | 22 | |--|------| |
| 23 | 23 | | | x11 | |
| r14998 | r14999 | |
| 26 | 26 | | | | | |
| 27 | 27 | | |u |x5 | |
| 28 | 28 | |--|--|---| |
| 29 | ||
| 29 | ||
| 30 | 30 | ZT: |
| 31 | 31 | |--|------| |
| 32 | 32 | |r | | |
| r14998 | r14999 | |
| 35 | 35 | | | | |
| 36 | 36 | |x5| | |
| 37 | 37 | |--|------| |
| 38 | ||
| 38 | ||
| 39 | 39 | This hypothesis has the strengh of explaining why x5 is indeed 5-bits wide instead of the |
| 40 | 40 | much more symmetric and senseful 8-bits wide possibility (to allow configurations like |
| 41 | 41 | the suggested one for zero team), but, of course, it should be taken just as what it is: a guess. |
| r14998 | r14999 | |
| 78 | 78 | }; |
| 79 | 79 | |
| 80 | 80 | static const UINT8 x5_r2[256] = { |
| 81 | 0x08, 0x09, 0x1f, 0x0f, 0x09, 0x09, 0x0b, 0x1d, 0x06, 0x13, 0x02, 0x15, 0x02, 0x0c, 0x0d, 0x19, | |
| 82 | 0x03, 0x13, 0x0c, 0x1f, 0x1a, 0x18, 0x17, 0x10, 0x0a, 0x19, 0x15, 0x04, 0x1f, 0x11, 0x1c, 0x02, | |
| 83 | 0x0e, 0x08, 0x06, 0x0a, 0x07, 0x1c, 0x10, 0x04, 0x11, 0x0c, 0x0a, 0x19, 0x0a, 0x04, 0x17, 0x07, | |
| 84 | 0x16, 0x1b, 0x1d, 0x15, 0x1d, 0x13, 0x0e, 0x03, 0x1a, 0x11, 0x14, 0x14, 0x03, 0x18, 0x07, 0x03, | |
| 85 | 0x08, 0x1a, 0x02, 0x0f, 0x0b, 0x11, 0x1c, 0x05, 0x19, 0x1d, 0x05, 0x01, 0x1f, 0x1c, 0x1d, 0x07, | |
| 86 | 0x07, 0x0c, 0x02, 0x16, 0x0e, 0x06, 0x0b, 0x07, 0x01, 0x1a, 0x09, 0x0e, 0x0e, 0x07, 0x0e, 0x15, | |
| 87 | 0x01, 0x16, 0x13, 0x15, 0x14, 0x07, 0x0c, 0x1f, 0x1f, 0x19, 0x17, 0x12, 0x19, 0x17, 0x0a, 0x1f, | |
| 88 | 0x0c, 0x16, 0x15, 0x1e, 0x05, 0x14, 0x05, 0x1c, 0x0b, 0x0d, 0x0c, 0x0a, 0x05, 0x09, 0x14, 0x02, | |
| 89 | 0x10, 0x02, 0x13, 0x05, 0x12, 0x17, 0x03, 0x0b, 0x1b, 0x06, 0x15, 0x0b, 0x01, 0x0b, 0x1b, 0x09, | |
| 90 | 0x10, 0x0a, 0x1e, 0x09, 0x08, 0x0a, 0x04, 0x13, 0x04, 0x12, 0x04, 0x0f, 0x0b, 0x0c, 0x06, 0x07, | |
| 91 | 0x03, 0x18, 0x00, 0x1e, 0x17, 0x00, 0x16, 0x08, 0x0d, 0x1c, 0x09, 0x07, 0x17, 0x18, 0x0b, 0x0d, | |
| 92 | 0x11, 0x0f, 0x14, 0x1e, 0x1a, 0x1b, 0x09, 0x15, 0x03, 0x07, 0x12, 0x16, 0x15, 0x11, 0x16, 0x1e, | |
| 93 | 0x14, 0x15, 0x00, 0x05, 0x15, 0x18, 0x18, 0x12, 0x18, 0x1e, 0x06, 0x06, 0x0c, 0x1a, 0x04, 0x0b, | |
| 94 | 0x05, 0x08, 0x04, 0x1f, 0x0c, 0x08, 0x0a, 0x1f, 0x1a, 0x16, 0x0e, 0x1e, 0x16, 0x18, 0x18, 0x05, | |
| 95 | 0x00, 0x1a, 0x05, 0x15, 0x19, 0x10, 0x03, 0x0e, 0x10, 0x1c, 0x0a, 0x18, 0x00, 0x16, 0x0b, 0x05, | |
| 96 | 0x05, 0x15, 0x11, 0x0a, 0x1c, 0x00, 0x1e, 0x1f, 0x17, 0x12, 0x0a, 0x1c, 0x07, 0x04, 0x1f, 0x1a, | |
| 81 | 0x08, 0x09, 0x1f, 0x0f, 0x09, 0x09, 0x0b, 0x1d, 0x06, 0x13, 0x02, 0x15, 0x02, 0x0c, 0x0d, 0x19, | |
| 82 | 0x03, 0x13, 0x0c, 0x1f, 0x1a, 0x18, 0x17, 0x10, 0x0a, 0x19, 0x15, 0x04, 0x1f, 0x11, 0x1c, 0x02, | |
| 83 | 0x0e, 0x08, 0x06, 0x0a, 0x07, 0x1c, 0x10, 0x04, 0x11, 0x0c, 0x0a, 0x19, 0x0a, 0x04, 0x17, 0x07, | |
| 84 | 0x16, 0x1b, 0x1d, 0x15, 0x1d, 0x13, 0x0e, 0x03, 0x1a, 0x11, 0x14, 0x14, 0x03, 0x18, 0x07, 0x03, | |
| 85 | 0x08, 0x1a, 0x02, 0x0f, 0x0b, 0x11, 0x1c, 0x05, 0x19, 0x1d, 0x05, 0x01, 0x1f, 0x1c, 0x1d, 0x07, | |
| 86 | 0x07, 0x0c, 0x02, 0x16, 0x0e, 0x06, 0x0b, 0x07, 0x01, 0x1a, 0x09, 0x0e, 0x0e, 0x07, 0x0e, 0x15, | |
| 87 | 0x01, 0x16, 0x13, 0x15, 0x14, 0x07, 0x0c, 0x1f, 0x1f, 0x19, 0x17, 0x12, 0x19, 0x17, 0x0a, 0x1f, | |
| 88 | 0x0c, 0x16, 0x15, 0x1e, 0x05, 0x14, 0x05, 0x1c, 0x0b, 0x0d, 0x0c, 0x0a, 0x05, 0x09, 0x14, 0x02, | |
| 89 | 0x10, 0x02, 0x13, 0x05, 0x12, 0x17, 0x03, 0x0b, 0x1b, 0x06, 0x15, 0x0b, 0x01, 0x0b, 0x1b, 0x09, | |
| 90 | 0x10, 0x0a, 0x1e, 0x09, 0x08, 0x0a, 0x04, 0x13, 0x04, 0x12, 0x04, 0x0f, 0x0b, 0x0c, 0x06, 0x07, | |
| 91 | 0x03, 0x18, 0x00, 0x1e, 0x17, 0x00, 0x16, 0x08, 0x0d, 0x1c, 0x09, 0x07, 0x17, 0x18, 0x0b, 0x0d, | |
| 92 | 0x11, 0x0f, 0x14, 0x1e, 0x1a, 0x1b, 0x09, 0x15, 0x03, 0x07, 0x12, 0x16, 0x15, 0x11, 0x16, 0x1e, | |
| 93 | 0x14, 0x15, 0x00, 0x05, 0x15, 0x18, 0x18, 0x12, 0x18, 0x1e, 0x06, 0x06, 0x0c, 0x1a, 0x04, 0x0b, | |
| 94 | 0x05, 0x08, 0x04, 0x1f, 0x0c, 0x08, 0x0a, 0x1f, 0x1a, 0x16, 0x0e, 0x1e, 0x16, 0x18, 0x18, 0x05, | |
| 95 | 0x00, 0x1a, 0x05, 0x15, 0x19, 0x10, 0x03, 0x0e, 0x10, 0x1c, 0x0a, 0x18, 0x00, 0x16, 0x0b, 0x05, | |
| 96 | 0x05, 0x15, 0x11, 0x0a, 0x1c, 0x00, 0x1e, 0x1f, 0x17, 0x12, 0x0a, 0x1c, 0x07, 0x04, 0x1f, 0x1a, | |
| 97 | 97 | }; |
| 98 | 98 | |
| 99 | 99 | static const UINT16 x11_r2[256] = { |
| 100 | 0x347, 0x0f2, 0x182, 0x58f, 0x1f4, 0x42c, 0x407, 0x5f0, 0x6df, 0x2db, 0x585, 0x5fe, 0x394, 0x542, 0x3e8, 0x574, | |
| 101 | 0x4ea, 0x6d3, 0x6b7, 0x65b, 0x324, 0x143, 0x22a, 0x11d, 0x124, 0x365, 0x7ca, 0x3d6, 0x1d2, 0x7cd, 0x6b1, 0x4f1, | |
| 102 | 0x1de, 0x674, 0x685, 0x779, 0x264, 0x6d8, 0x379, 0x7ce, 0x201, 0x73b, 0x5c9, 0x025, 0x338, 0x4b2, 0x697, 0x567, | |
| 103 | 0x312, 0x04e, 0x78d, 0x492, 0x044, 0x203, 0x437, 0x04b, 0x729, 0x197, 0x6e2, 0x552, 0x517, 0x3c9, 0x09c, 0x3de, | |
| 104 | 0x2f8, 0x259, 0x1f0, 0x6ce, 0x6d6, 0x55d, 0x223, 0x65e, 0x7ca, 0x330, 0x3f7, 0x348, 0x640, 0x26d, 0x340, 0x2df, | |
| 105 | 0x752, 0x792, 0x5b0, 0x2fb, 0x398, 0x75c, 0x0a2, 0x524, 0x538, 0x74c, 0x1c5, 0x5a2, 0x522, 0x7c3, 0x6b3, 0x4f0, | |
| 106 | 0x5ac, 0x40b, 0x3e0, 0x1c8, 0x6ff, 0x291, 0x7c4, 0x47c, 0x6d9, 0x248, 0x623, 0x78d, 0x2cd, 0x356, 0x12a, 0x0bc, | |
| 107 | 0x582, 0x1d8, 0x1c6, 0x6eb, 0x7c2, 0x7f9, 0x650, 0x57d, 0x701, 0x7e5, 0x118, 0x1b4, 0x4ad, 0x2b8, 0x2bb, 0x765, | |
| 108 | 0x2d9, 0x46a, 0x020, 0x2da, 0x5e4, 0x115, 0x53c, 0x2b4, 0x16d, 0x0f7, 0x633, 0x1a6, 0x0a0, 0x3e6, 0x29d, 0x77b, | |
| 109 | 0x558, 0x185, 0x7b9, 0x0b1, 0x36e, 0x4d3, 0x7e2, 0x5f9, 0x3d2, 0x21e, 0x0e1, 0x2ac, 0x0fc, 0x0fc, 0x66d, 0x7b5, | |
| 110 | 0x4af, 0x627, 0x0f4, 0x621, 0x58f, 0x3d7, 0x1bc, 0x10a, 0x458, 0x259, 0x451, 0x770, 0x107, 0x134, 0x162, 0x32f, | |
| 111 | 0x5cf, 0x6c9, 0x670, 0x2d4, 0x0da, 0x739, 0x30c, 0x62f, 0x4af, 0x0e2, 0x3e3, 0x65c, 0x214, 0x066, 0x47d, 0x2f2, | |
| 112 | 0x729, 0x566, 0x450, 0x3f2, 0x35d, 0x593, 0x593, 0x532, 0x008, 0x270, 0x479, 0x358, 0x6f3, 0x7ed, 0x240, 0x587, | |
| 113 | 0x581, 0x00f, 0x750, 0x4d8, 0x1ab, 0x100, 0x47f, 0x34f, 0x497, 0x240, 0x769, 0x76f, 0x705, 0x375, 0x684, 0x273, | |
| 114 | 0x01f, 0x268, 0x2cc, 0x2d7, 0x5d4, 0x284, 0x40c, 0x5e8, 0x7c1, 0x281, 0x518, 0x4b0, 0x136, 0x73b, 0x3ea, 0x023, | |
| 115 | 0x1c1, 0x7de, 0x106, 0x275, 0x1e1, 0x503, 0x30a, 0x271, 0x4f8, 0x52b, 0x266, 0x375, 0x024, 0x399, 0x672, 0x6f8, | |
| 100 | 0x347, 0x0f2, 0x182, 0x58f, 0x1f4, 0x42c, 0x407, 0x5f0, 0x6df, 0x2db, 0x585, 0x5fe, 0x394, 0x542, 0x3e8, 0x574, | |
| 101 | 0x4ea, 0x6d3, 0x6b7, 0x65b, 0x324, 0x143, 0x22a, 0x11d, 0x124, 0x365, 0x7ca, 0x3d6, 0x1d2, 0x7cd, 0x6b1, 0x4f1, | |
| 102 | 0x1de, 0x674, 0x685, 0x779, 0x264, 0x6d8, 0x379, 0x7ce, 0x201, 0x73b, 0x5c9, 0x025, 0x338, 0x4b2, 0x697, 0x567, | |
| 103 | 0x312, 0x04e, 0x78d, 0x492, 0x044, 0x203, 0x437, 0x04b, 0x729, 0x197, 0x6e2, 0x552, 0x517, 0x3c9, 0x09c, 0x3de, | |
| 104 | 0x2f8, 0x259, 0x1f0, 0x6ce, 0x6d6, 0x55d, 0x223, 0x65e, 0x7ca, 0x330, 0x3f7, 0x348, 0x640, 0x26d, 0x340, 0x2df, | |
| 105 | 0x752, 0x792, 0x5b0, 0x2fb, 0x398, 0x75c, 0x0a2, 0x524, 0x538, 0x74c, 0x1c5, 0x5a2, 0x522, 0x7c3, 0x6b3, 0x4f0, | |
| 106 | 0x5ac, 0x40b, 0x3e0, 0x1c8, 0x6ff, 0x291, 0x7c4, 0x47c, 0x6d9, 0x248, 0x623, 0x78d, 0x2cd, 0x356, 0x12a, 0x0bc, | |
| 107 | 0x582, 0x1d8, 0x1c6, 0x6eb, 0x7c2, 0x7f9, 0x650, 0x57d, 0x701, 0x7e5, 0x118, 0x1b4, 0x4ad, 0x2b8, 0x2bb, 0x765, | |
| 108 | 0x2d9, 0x46a, 0x020, 0x2da, 0x5e4, 0x115, 0x53c, 0x2b4, 0x16d, 0x0f7, 0x633, 0x1a6, 0x0a0, 0x3e6, 0x29d, 0x77b, | |
| 109 | 0x558, 0x185, 0x7b9, 0x0b1, 0x36e, 0x4d3, 0x7e2, 0x5f9, 0x3d2, 0x21e, 0x0e1, 0x2ac, 0x0fc, 0x0fc, 0x66d, 0x7b5, | |
| 110 | 0x4af, 0x627, 0x0f4, 0x621, 0x58f, 0x3d7, 0x1bc, 0x10a, 0x458, 0x259, 0x451, 0x770, 0x107, 0x134, 0x162, 0x32f, | |
| 111 | 0x5cf, 0x6c9, 0x670, 0x2d4, 0x0da, 0x739, 0x30c, 0x62f, 0x4af, 0x0e2, 0x3e3, 0x65c, 0x214, 0x066, 0x47d, 0x2f2, | |
| 112 | 0x729, 0x566, 0x450, 0x3f2, 0x35d, 0x593, 0x593, 0x532, 0x008, 0x270, 0x479, 0x358, 0x6f3, 0x7ed, 0x240, 0x587, | |
| 113 | 0x581, 0x00f, 0x750, 0x4d8, 0x1ab, 0x100, 0x47f, 0x34f, 0x497, 0x240, 0x769, 0x76f, 0x705, 0x375, 0x684, 0x273, | |
| 114 | 0x01f, 0x268, 0x2cc, 0x2d7, 0x5d4, 0x284, 0x40c, 0x5e8, 0x7c1, 0x281, 0x518, 0x4b0, 0x136, 0x73b, 0x3ea, 0x023, | |
| 115 | 0x1c1, 0x7de, 0x106, 0x275, 0x1e1, 0x503, 0x30a, 0x271, 0x4f8, 0x52b, 0x266, 0x375, 0x024, 0x399, 0x672, 0x6f8, | |
| 116 | 116 | }; |
| 117 | 117 | |
| 118 | 118 | static const UINT8 rotate_zt[256] = { |
| r14998 | r14999 | |
| 135 | 135 | }; |
| 136 | 136 | |
| 137 | 137 | static const UINT8 x5_zt[256] = { |
| 138 | 0x0d, 0x14, 0x13, 0x1b, 0x1a, 0x05, 0x1a, 0x05, 0x1b, 0x17, 0x0d, 0x0f, 0x00, 0x17, 0x09, 0x04, | |
| 139 | 0x13, 0x0f, 0x14, 0x17, 0x14, 0x0f, 0x1b, 0x0a, 0x0a, 0x15, 0x07, 0x0b, 0x0e, 0x05, 0x18, 0x12, | |
| 140 | 0x1c, 0x01, 0x17, 0x02, 0x04, 0x00, 0x06, 0x12, 0x00, 0x0a, 0x1c, 0x19, 0x10, 0x1b, 0x16, 0x03, | |
| 141 | 0x1c, 0x13, 0x16, 0x13, 0x15, 0x1d, 0x04, 0x14, 0x17, 0x1d, 0x01, 0x03, 0x1f, 0x1f, 0x1a, 0x10, | |
| 142 | 0x08, 0x0c, 0x09, 0x16, 0x04, 0x19, 0x03, 0x14, 0x0c, 0x1d, 0x09, 0x08, 0x00, 0x1c, 0x0b, 0x18, | |
| 143 | 0x1b, 0x00, 0x16, 0x0f, 0x0b, 0x1c, 0x0d, 0x16, 0x09, 0x15, 0x0c, 0x01, 0x18, 0x04, 0x04, 0x03, | |
| 144 | 0x11, 0x0f, 0x03, 0x17, 0x04, 0x0a, 0x05, 0x1b, 0x08, 0x07, 0x0e, 0x08, 0x06, 0x16, 0x0f, 0x0d, | |
| 145 | 0x0a, 0x14, 0x0a, 0x11, 0x14, 0x02, 0x08, 0x1f, 0x0e, 0x13, 0x0e, 0x02, 0x08, 0x13, 0x04, 0x19, | |
| 146 | 0x0e, 0x00, 0x01, 0x1d, 0x02, 0x19, 0x08, 0x1c, 0x13, 0x09, 0x11, 0x14, 0x1e, 0x04, 0x03, 0x18, | |
| 147 | 0x1f, 0x05, 0x0f, 0x03, 0x09, 0x0d, 0x12, 0x0f, 0x0d, 0x0e, 0x15, 0x1a, 0x17, 0x1c, 0x1d, 0x10, | |
| 148 | 0x15, 0x00, 0x18, 0x18, 0x00, 0x08, 0x08, 0x01, 0x0d, 0x10, 0x14, 0x12, 0x03, 0x1c, 0x05, 0x0a, | |
| 149 | 0x0f, 0x0d, 0x15, 0x00, 0x0b, 0x1f, 0x00, 0x1d, 0x1d, 0x1a, 0x13, 0x16, 0x08, 0x1b, 0x03, 0x12, | |
| 150 | 0x02, 0x10, 0x0e, 0x10, 0x04, 0x05, 0x09, 0x07, 0x1d, 0x04, 0x05, 0x06, 0x17, 0x05, 0x1a, 0x04, | |
| 151 | 0x1f, 0x0e, 0x09, 0x13, 0x15, 0x12, 0x1c, 0x13, 0x03, 0x09, 0x12, 0x08, 0x19, 0x17, 0x00, 0x19, | |
| 152 | 0x1f, 0x06, 0x1c, 0x05, 0x18, 0x0a, 0x1f, 0x1e, 0x0d, 0x05, 0x1e, 0x1a, 0x11, 0x13, 0x15, 0x0c, | |
| 153 | 0x05, 0x16, 0x11, 0x06, 0x12, 0x0c, 0x0c, 0x0f, 0x1c, 0x18, 0x08, 0x1e, 0x1c, 0x16, 0x15, 0x03, | |
| 138 | 0x0d, 0x14, 0x13, 0x1b, 0x1a, 0x05, 0x1a, 0x05, 0x1b, 0x17, 0x0d, 0x0f, 0x00, 0x17, 0x09, 0x04, | |
| 139 | 0x13, 0x0f, 0x14, 0x17, 0x14, 0x0f, 0x1b, 0x0a, 0x0a, 0x15, 0x07, 0x0b, 0x0e, 0x05, 0x18, 0x12, | |
| 140 | 0x1c, 0x01, 0x17, 0x02, 0x04, 0x00, 0x06, 0x12, 0x00, 0x0a, 0x1c, 0x19, 0x10, 0x1b, 0x16, 0x03, | |
| 141 | 0x1c, 0x13, 0x16, 0x13, 0x15, 0x1d, 0x04, 0x14, 0x17, 0x1d, 0x01, 0x03, 0x1f, 0x1f, 0x1a, 0x10, | |
| 142 | 0x08, 0x0c, 0x09, 0x16, 0x04, 0x19, 0x03, 0x14, 0x0c, 0x1d, 0x09, 0x08, 0x00, 0x1c, 0x0b, 0x18, | |
| 143 | 0x1b, 0x00, 0x16, 0x0f, 0x0b, 0x1c, 0x0d, 0x16, 0x09, 0x15, 0x0c, 0x01, 0x18, 0x04, 0x04, 0x03, | |
| 144 | 0x11, 0x0f, 0x03, 0x17, 0x04, 0x0a, 0x05, 0x1b, 0x08, 0x07, 0x0e, 0x08, 0x06, 0x16, 0x0f, 0x0d, | |
| 145 | 0x0a, 0x14, 0x0a, 0x11, 0x14, 0x02, 0x08, 0x1f, 0x0e, 0x13, 0x0e, 0x02, 0x08, 0x13, 0x04, 0x19, | |
| 146 | 0x0e, 0x00, 0x01, 0x1d, 0x02, 0x19, 0x08, 0x1c, 0x13, 0x09, 0x11, 0x14, 0x1e, 0x04, 0x03, 0x18, | |
| 147 | 0x1f, 0x05, 0x0f, 0x03, 0x09, 0x0d, 0x12, 0x0f, 0x0d, 0x0e, 0x15, 0x1a, 0x17, 0x1c, 0x1d, 0x10, | |
| 148 | 0x15, 0x00, 0x18, 0x18, 0x00, 0x08, 0x08, 0x01, 0x0d, 0x10, 0x14, 0x12, 0x03, 0x1c, 0x05, 0x0a, | |
| 149 | 0x0f, 0x0d, 0x15, 0x00, 0x0b, 0x1f, 0x00, 0x1d, 0x1d, 0x1a, 0x13, 0x16, 0x08, 0x1b, 0x03, 0x12, | |
| 150 | 0x02, 0x10, 0x0e, 0x10, 0x04, 0x05, 0x09, 0x07, 0x1d, 0x04, 0x05, 0x06, 0x17, 0x05, 0x1a, 0x04, | |
| 151 | 0x1f, 0x0e, 0x09, 0x13, 0x15, 0x12, 0x1c, 0x13, 0x03, 0x09, 0x12, 0x08, 0x19, 0x17, 0x00, 0x19, | |
| 152 | 0x1f, 0x06, 0x1c, 0x05, 0x18, 0x0a, 0x1f, 0x1e, 0x0d, 0x05, 0x1e, 0x1a, 0x11, 0x13, 0x15, 0x0c, | |
| 153 | 0x05, 0x16, 0x11, 0x06, 0x12, 0x0c, 0x0c, 0x0f, 0x1c, 0x18, 0x08, 0x1e, 0x1c, 0x16, 0x15, 0x03, | |
| 154 | 154 | }; |
| 155 | 155 | |
| 156 | 156 | static const UINT16 x11_zt[512] = { |
| 157 | 0x7e9, 0x625, 0x625, 0x006, 0x006, 0x14a, 0x14a, 0x7e9, 0x657, 0x417, 0x417, 0x1a7, 0x1a7, 0x22f, 0x22f, 0x657, | |
| 158 | 0x37e, 0x447, 0x447, 0x117, 0x117, 0x735, 0x735, 0x37e, 0x3be, 0x487, 0x487, 0x724, 0x724, 0x6e3, 0x6e3, 0x3be, | |
| 159 | 0x646, 0x035, 0x035, 0x57e, 0x57e, 0x134, 0x134, 0x646, 0x09a, 0x4d1, 0x4d1, 0x511, 0x511, 0x5d5, 0x5d5, 0x09a, | |
| 160 | 0x3e2, 0x5c6, 0x5c6, 0x3b6, 0x3b6, 0x354, 0x354, 0x3e2, 0x6e3, 0x7d6, 0x7d6, 0x317, 0x317, 0x1f0, 0x1f0, 0x6e3, | |
| 161 | 0x115, 0x462, 0x462, 0x620, 0x620, 0x0ce, 0x0ce, 0x115, 0x715, 0x7ec, 0x7ec, 0x1e6, 0x1e6, 0x610, 0x610, 0x715, | |
| 162 | 0x34a, 0x718, 0x718, 0x7ba, 0x7ba, 0x288, 0x288, 0x34a, 0x6e7, 0x193, 0x193, 0x3d2, 0x3d2, 0x78f, 0x78f, 0x6e7, | |
| 163 | 0x57c, 0x014, 0x014, 0x6b3, 0x6b3, 0x204, 0x204, 0x57c, 0x3f4, 0x782, 0x782, 0x5b4, 0x5b4, 0x375, 0x375, 0x3f4, | |
| 164 | 0x17d, 0x660, 0x660, 0x48d, 0x48d, 0x7ff, 0x7ff, 0x17d, 0x5b1, 0x39d, 0x39d, 0x48c, 0x48c, 0x5ab, 0x5ab, 0x5b1, | |
| 165 | 0x3d3, 0x4f6, 0x4f6, 0x7b9, 0x7b9, 0x5df, 0x5df, 0x3d3, 0x349, 0x4c5, 0x4c5, 0x403, 0x403, 0x0ab, 0x0ab, 0x349, | |
| 166 | 0x46b, 0x790, 0x790, 0x59f, 0x59f, 0x2b1, 0x2b1, 0x46b, 0x6c5, 0x4e7, 0x4e7, 0x023, 0x023, 0x0b0, 0x0b0, 0x6c5, | |
| 167 | 0x2d6, 0x3e2, 0x3e2, 0x7f3, 0x7f3, 0x376, 0x376, 0x2d6, 0x2d7, 0x0bf, 0x0bf, 0x14b, 0x14b, 0x65b, 0x65b, 0x2d7, | |
| 168 | 0x68d, 0x360, 0x360, 0x434, 0x434, 0x5fa, 0x5fa, 0x68d, 0x654, 0x386, 0x386, 0x28b, 0x28b, 0x2e1, 0x2e1, 0x654, | |
| 169 | 0x1ee, 0x4e8, 0x4e8, 0x482, 0x482, 0x471, 0x471, 0x1ee, 0x221, 0x3de, 0x3de, 0x467, 0x467, 0x21b, 0x21b, 0x221, | |
| 170 | 0x7a6, 0x6b6, 0x6b6, 0x157, 0x157, 0x658, 0x658, 0x7a6, 0x1e9, 0x6e3, 0x6e3, 0x340, 0x340, 0x2cd, 0x2cd, 0x1e9, | |
| 171 | 0x045, 0x566, 0x566, 0x1f0, 0x1f0, 0x5a1, 0x5a1, 0x045, 0x559, 0x0d4, 0x0d4, 0x67c, 0x67c, 0x21a, 0x21a, 0x559, | |
| 172 | 0x187, 0x13b, 0x13b, 0x68e, 0x68e, 0x0f6, 0x0f6, 0x187, 0x2b5, 0x4c2, 0x4c2, 0x2b6, 0x2b6, 0x6a4, 0x6a4, 0x2b5, | |
| 173 | 0x56b, 0x1b2, 0x1b2, 0x15d, 0x15d, 0x3aa, 0x3aa, 0x56b, 0x506, 0x67a, 0x67a, 0x5db, 0x5db, 0x5ef, 0x5ef, 0x506, | |
| 174 | 0x5ab, 0x3ed, 0x3ed, 0x2b3, 0x2b3, 0x504, 0x504, 0x5ab, 0x137, 0x761, 0x761, 0x735, 0x735, 0x6e9, 0x6e9, 0x137, | |
| 175 | 0x35a, 0x7bb, 0x7bb, 0x190, 0x190, 0x0a8, 0x0a8, 0x35a, 0x797, 0x164, 0x164, 0x1b8, 0x1b8, 0x761, 0x761, 0x797, | |
| 176 | 0x138, 0x076, 0x076, 0x613, 0x613, 0x055, 0x055, 0x138, 0x2e2, 0x493, 0x493, 0x0c2, 0x0c2, 0x785, 0x785, 0x2e2, | |
| 177 | 0x60b, 0x41a, 0x41a, 0x22a, 0x22a, 0x2a1, 0x2a1, 0x60b, 0x5cb, 0x092, 0x092, 0x656, 0x656, 0x5db, 0x5db, 0x5cb, | |
| 178 | 0x00a, 0x490, 0x490, 0x39d, 0x39d, 0x572, 0x572, 0x00a, 0x600, 0x4cd, 0x4cd, 0x33f, 0x33f, 0x0bc, 0x0bc, 0x600, | |
| 179 | 0x047, 0x685, 0x685, 0x4b0, 0x4b0, 0x330, 0x330, 0x047, 0x7b4, 0x590, 0x590, 0x1db, 0x1db, 0x349, 0x349, 0x7b4, | |
| 180 | 0x6ae, 0x7a3, 0x7a3, 0x6fa, 0x6fa, 0x2d4, 0x2d4, 0x6ae, 0x117, 0x2fe, 0x2fe, 0x756, 0x756, 0x627, 0x627, 0x117, | |
| 181 | 0x337, 0x55e, 0x55e, 0x2ef, 0x2ef, 0x2a9, 0x2a9, 0x337, 0x382, 0x02a, 0x02a, 0x4af, 0x4af, 0x7fa, 0x7fa, 0x382, | |
| 182 | 0x73f, 0x6d8, 0x6d8, 0x7d2, 0x7d2, 0x52d, 0x52d, 0x73f, 0x385, 0x303, 0x303, 0x3eb, 0x3eb, 0x689, 0x689, 0x385, | |
| 183 | 0x6cd, 0x4c3, 0x4c3, 0x2df, 0x2df, 0x1d5, 0x1d5, 0x6cd, 0x7da, 0x44c, 0x44c, 0x764, 0x764, 0x7f6, 0x7f6, 0x7da, | |
| 184 | 0x7c1, 0x276, 0x276, 0x27f, 0x27f, 0x1c9, 0x1c9, 0x7c1, 0x58c, 0x001, 0x001, 0x07f, 0x07f, 0x62b, 0x62b, 0x58c, | |
| 185 | 0x374, 0x746, 0x746, 0x5b2, 0x5b2, 0x35e, 0x35e, 0x374, 0x64d, 0x1fd, 0x1fd, 0x2dc, 0x2dc, 0x550, 0x550, 0x64d, | |
| 186 | 0x33d, 0x40c, 0x40c, 0x3a4, 0x3a4, 0x293, 0x293, 0x33d, 0x0c0, 0x462, 0x462, 0x6fb, 0x6fb, 0x4b0, 0x4b0, 0x0c0, | |
| 187 | 0x2aa, 0x175, 0x175, 0x01e, 0x01e, 0x762, 0x762, 0x2aa, 0x216, 0x76b, 0x76b, 0x728, 0x728, 0x15f, 0x15f, 0x216, | |
| 188 | 0x30e, 0x0d8, 0x0d8, 0x55c, 0x55c, 0x31c, 0x31c, 0x30e, 0x351, 0x3dc, 0x3dc, 0x6c1, 0x6c1, 0x651, 0x651, 0x351, | |
| 157 | 0x7e9, 0x625, 0x625, 0x006, 0x006, 0x14a, 0x14a, 0x7e9, 0x657, 0x417, 0x417, 0x1a7, 0x1a7, 0x22f, 0x22f, 0x657, | |
| 158 | 0x37e, 0x447, 0x447, 0x117, 0x117, 0x735, 0x735, 0x37e, 0x3be, 0x487, 0x487, 0x724, 0x724, 0x6e3, 0x6e3, 0x3be, | |
| 159 | 0x646, 0x035, 0x035, 0x57e, 0x57e, 0x134, 0x134, 0x646, 0x09a, 0x4d1, 0x4d1, 0x511, 0x511, 0x5d5, 0x5d5, 0x09a, | |
| 160 | 0x3e2, 0x5c6, 0x5c6, 0x3b6, 0x3b6, 0x354, 0x354, 0x3e2, 0x6e3, 0x7d6, 0x7d6, 0x317, 0x317, 0x1f0, 0x1f0, 0x6e3, | |
| 161 | 0x115, 0x462, 0x462, 0x620, 0x620, 0x0ce, 0x0ce, 0x115, 0x715, 0x7ec, 0x7ec, 0x1e6, 0x1e6, 0x610, 0x610, 0x715, | |
| 162 | 0x34a, 0x718, 0x718, 0x7ba, 0x7ba, 0x288, 0x288, 0x34a, 0x6e7, 0x193, 0x193, 0x3d2, 0x3d2, 0x78f, 0x78f, 0x6e7, | |
| 163 | 0x57c, 0x014, 0x014, 0x6b3, 0x6b3, 0x204, 0x204, 0x57c, 0x3f4, 0x782, 0x782, 0x5b4, 0x5b4, 0x375, 0x375, 0x3f4, | |
| 164 | 0x17d, 0x660, 0x660, 0x48d, 0x48d, 0x7ff, 0x7ff, 0x17d, 0x5b1, 0x39d, 0x39d, 0x48c, 0x48c, 0x5ab, 0x5ab, 0x5b1, | |
| 165 | 0x3d3, 0x4f6, 0x4f6, 0x7b9, 0x7b9, 0x5df, 0x5df, 0x3d3, 0x349, 0x4c5, 0x4c5, 0x403, 0x403, 0x0ab, 0x0ab, 0x349, | |
| 166 | 0x46b, 0x790, 0x790, 0x59f, 0x59f, 0x2b1, 0x2b1, 0x46b, 0x6c5, 0x4e7, 0x4e7, 0x023, 0x023, 0x0b0, 0x0b0, 0x6c5, | |
| 167 | 0x2d6, 0x3e2, 0x3e2, 0x7f3, 0x7f3, 0x376, 0x376, 0x2d6, 0x2d7, 0x0bf, 0x0bf, 0x14b, 0x14b, 0x65b, 0x65b, 0x2d7, | |
| 168 | 0x68d, 0x360, 0x360, 0x434, 0x434, 0x5fa, 0x5fa, 0x68d, 0x654, 0x386, 0x386, 0x28b, 0x28b, 0x2e1, 0x2e1, 0x654, | |
| 169 | 0x1ee, 0x4e8, 0x4e8, 0x482, 0x482, 0x471, 0x471, 0x1ee, 0x221, 0x3de, 0x3de, 0x467, 0x467, 0x21b, 0x21b, 0x221, | |
| 170 | 0x7a6, 0x6b6, 0x6b6, 0x157, 0x157, 0x658, 0x658, 0x7a6, 0x1e9, 0x6e3, 0x6e3, 0x340, 0x340, 0x2cd, 0x2cd, 0x1e9, | |
| 171 | 0x045, 0x566, 0x566, 0x1f0, 0x1f0, 0x5a1, 0x5a1, 0x045, 0x559, 0x0d4, 0x0d4, 0x67c, 0x67c, 0x21a, 0x21a, 0x559, | |
| 172 | 0x187, 0x13b, 0x13b, 0x68e, 0x68e, 0x0f6, 0x0f6, 0x187, 0x2b5, 0x4c2, 0x4c2, 0x2b6, 0x2b6, 0x6a4, 0x6a4, 0x2b5, | |
| 173 | 0x56b, 0x1b2, 0x1b2, 0x15d, 0x15d, 0x3aa, 0x3aa, 0x56b, 0x506, 0x67a, 0x67a, 0x5db, 0x5db, 0x5ef, 0x5ef, 0x506, | |
| 174 | 0x5ab, 0x3ed, 0x3ed, 0x2b3, 0x2b3, 0x504, 0x504, 0x5ab, 0x137, 0x761, 0x761, 0x735, 0x735, 0x6e9, 0x6e9, 0x137, | |
| 175 | 0x35a, 0x7bb, 0x7bb, 0x190, 0x190, 0x0a8, 0x0a8, 0x35a, 0x797, 0x164, 0x164, 0x1b8, 0x1b8, 0x761, 0x761, 0x797, | |
| 176 | 0x138, 0x076, 0x076, 0x613, 0x613, 0x055, 0x055, 0x138, 0x2e2, 0x493, 0x493, 0x0c2, 0x0c2, 0x785, 0x785, 0x2e2, | |
| 177 | 0x60b, 0x41a, 0x41a, 0x22a, 0x22a, 0x2a1, 0x2a1, 0x60b, 0x5cb, 0x092, 0x092, 0x656, 0x656, 0x5db, 0x5db, 0x5cb, | |
| 178 | 0x00a, 0x490, 0x490, 0x39d, 0x39d, 0x572, 0x572, 0x00a, 0x600, 0x4cd, 0x4cd, 0x33f, 0x33f, 0x0bc, 0x0bc, 0x600, | |
| 179 | 0x047, 0x685, 0x685, 0x4b0, 0x4b0, 0x330, 0x330, 0x047, 0x7b4, 0x590, 0x590, 0x1db, 0x1db, 0x349, 0x349, 0x7b4, | |
| 180 | 0x6ae, 0x7a3, 0x7a3, 0x6fa, 0x6fa, 0x2d4, 0x2d4, 0x6ae, 0x117, 0x2fe, 0x2fe, 0x756, 0x756, 0x627, 0x627, 0x117, | |
| 181 | 0x337, 0x55e, 0x55e, 0x2ef, 0x2ef, 0x2a9, 0x2a9, 0x337, 0x382, 0x02a, 0x02a, 0x4af, 0x4af, 0x7fa, 0x7fa, 0x382, | |
| 182 | 0x73f, 0x6d8, 0x6d8, 0x7d2, 0x7d2, 0x52d, 0x52d, 0x73f, 0x385, 0x303, 0x303, 0x3eb, 0x3eb, 0x689, 0x689, 0x385, | |
| 183 | 0x6cd, 0x4c3, 0x4c3, 0x2df, 0x2df, 0x1d5, 0x1d5, 0x6cd, 0x7da, 0x44c, 0x44c, 0x764, 0x764, 0x7f6, 0x7f6, 0x7da, | |
| 184 | 0x7c1, 0x276, 0x276, 0x27f, 0x27f, 0x1c9, 0x1c9, 0x7c1, 0x58c, 0x001, 0x001, 0x07f, 0x07f, 0x62b, 0x62b, 0x58c, | |
| 185 | 0x374, 0x746, 0x746, 0x5b2, 0x5b2, 0x35e, 0x35e, 0x374, 0x64d, 0x1fd, 0x1fd, 0x2dc, 0x2dc, 0x550, 0x550, 0x64d, | |
| 186 | 0x33d, 0x40c, 0x40c, 0x3a4, 0x3a4, 0x293, 0x293, 0x33d, 0x0c0, 0x462, 0x462, 0x6fb, 0x6fb, 0x4b0, 0x4b0, 0x0c0, | |
| 187 | 0x2aa, 0x175, 0x175, 0x01e, 0x01e, 0x762, 0x762, 0x2aa, 0x216, 0x76b, 0x76b, 0x728, 0x728, 0x15f, 0x15f, 0x216, | |
| 188 | 0x30e, 0x0d8, 0x0d8, 0x55c, 0x55c, 0x31c, 0x31c, 0x30e, 0x351, 0x3dc, 0x3dc, 0x6c1, 0x6c1, 0x651, 0x651, 0x351, | |
| 189 | 189 | }; |
| 190 | 190 | |
| 191 | 191 | |
| r14998 | r14999 | |
| 221 | 221 | void raiden2_decrypt_sprites(running_machine &machine) |
| 222 | 222 | { |
| 223 | 223 | UINT32 *data = (UINT32 *)machine.root_device().memregion("gfx3")->base(); |
| 224 | for(int i=0; i<0x800000/4; i++) | |
| 224 | for(int i=0; i<0x800000/4; i++) | |
| 225 | 225 | { |
| 226 | 226 | data[i] = core_decrypt(data[i], |
| 227 | 227 | (i&0xff) ^ BIT(i,15) ^ (BIT(i,20)<<8), |
| r14998 | r14999 | |
| 241 | 241 | void zeroteam_decrypt_sprites(running_machine &machine) |
| 242 | 242 | { |
| 243 | 243 | UINT32 *data = (UINT32 *)machine.root_device().memregion("gfx3")->base(); |
| 244 | for(int i=0; i<0x400000/4; i++) | |
| 244 | for(int i=0; i<0x400000/4; i++) | |
| 245 | 245 | { |
| 246 | 246 | data[i] = core_decrypt(data[i], |
| 247 | 247 | i & 0xff, |
| r14998 | r14999 | |
|---|---|---|
| 287 | 287 | break; |
| 288 | 288 | case 0x01: // blank inside window |
| 289 | 289 | break; |
| 290 | ||
| 290 | ||
| 291 | 291 | case 0x02: // blank outside window |
| 292 | 292 | break; |
| 293 | 293 | |
| r14998 | r14999 | |
| 415 | 415 | bd1[id].blank_flag = 0; |
| 416 | 416 | } |
| 417 | 417 | } |
| 418 | else | |
| 418 | else | |
| 419 | 419 | { |
| 420 | ||
| 420 | ||
| 421 | 421 | if (data > 0x3F) |
| 422 | 422 | { |
| 423 | // | |
| 423 | // logerror("Undefined character %x \n", data); | |
| 424 | 424 | } |
| 425 | 425 | change = BD1_setdata(id, BD1charset[data & 0x3F], data); |
| 426 | 426 | } |
| r14998 | r14999 | |
|---|---|---|
| 21 | 21 | optional_shared_ptr<UINT16> m_nmk_txvideoram; |
| 22 | 22 | required_shared_ptr<UINT16> m_mainram; |
| 23 | 23 | optional_shared_ptr<UINT16> m_gunnail_scrollram; |
| 24 | optional_shared_ptr<UINT8> m_spriteram; | |
| 24 | optional_shared_ptr<UINT8> m_spriteram; | |
| 25 | 25 | optional_shared_ptr<UINT16> m_nmk_fgvideoram; |
| 26 | 26 | optional_shared_ptr<UINT16> m_gunnail_scrollramy; |
| 27 | 27 | optional_shared_ptr<UINT16> m_nmk_bgvideoram1; |
| r14998 | r14999 | |
|---|---|---|
| 11 | 11 | : driver_device(mconfig, type, tag) , |
| 12 | 12 | m_sysreg(*this, "sysreg"), |
| 13 | 13 | m_936_videoram(*this, "936_videoram"){ } |
| 14 | ||
| 14 | ||
| 15 | 15 | /* memory pointers */ |
| 16 | 16 | required_shared_ptr<UINT16> m_sysreg; |
| 17 | 17 | required_shared_ptr<UINT16> m_936_videoram; |
| r14998 | r14999 | |
|---|---|---|
| 41 | 41 | optional_device<williams_narc_sound_device> m_narc_sound; |
| 42 | 42 | optional_device<williams_cvsd_sound_device> m_cvsd_sound; |
| 43 | 43 | optional_device<williams_adpcm_sound_device> m_adpcm_sound; |
| 44 | ||
| 44 | ||
| 45 | 45 | UINT16 *m_cmos_ram; |
| 46 | 46 | UINT32 m_cmos_page; |
| 47 | 47 | optional_shared_ptr<UINT8> m_gfx_rom; |
| r14998 | r14999 | |
|---|---|---|
| 19 | 19 | required_shared_ptr<UINT16> m_nvram; |
| 20 | 20 | optional_device<williams_cvsd_sound_device> m_cvsd_sound; |
| 21 | 21 | optional_device<williams_adpcm_sound_device> m_adpcm_sound; |
| 22 | ||
| 22 | ||
| 23 | 23 | DECLARE_WRITE16_MEMBER(midtunit_cmos_enable_w); |
| 24 | 24 | DECLARE_WRITE16_MEMBER(midtunit_cmos_w); |
| 25 | 25 | DECLARE_READ16_MEMBER(midtunit_cmos_r); |
| r14998 | r14999 | |
|---|---|---|
| 45 | 45 | m_shrike_shared(*this, "shrike_shared"){ } |
| 46 | 46 | |
| 47 | 47 | required_device<timer_device> m_scanline_timer; |
| 48 | ||
| 48 | ||
| 49 | 49 | /* global data */ |
| 50 | 50 | UINT8 m_shooter; |
| 51 | 51 | UINT8 m_shooter_x; |
| r14998 | r14999 | |
| 124 | 124 | UINT8 *m_sprite_bank[2]; |
| 125 | 125 | |
| 126 | 126 | UINT8 m_palettebank_vis; |
| 127 | ||
| 127 | ||
| 128 | 128 | required_shared_ptr<UINT8> m_spriteram; |
| 129 | required_shared_ptr<UINT8> m_videoram; | |
| 129 | required_shared_ptr<UINT8> m_videoram; | |
| 130 | 130 | optional_shared_ptr<UINT16> m_shrike_io; |
| 131 | 131 | optional_shared_ptr<UINT16> m_shrike_shared; |
| 132 | 132 |
| r14998 | r14999 | |
|---|---|---|
| 10 | 10 | required_shared_ptr<UINT16> m_spriteram; |
| 11 | 11 | required_shared_ptr<UINT16> m_amazon_videoram; |
| 12 | 12 | required_shared_ptr<UINT16> m_videoram; |
| 13 | ||
| 13 | ||
| 14 | 14 | const UINT16 *m_mpProtData; |
| 15 | 15 | UINT8 m_mAmazonProtCmd; |
| 16 | 16 | UINT8 m_mAmazonProtReg[6]; |
| r14998 | r14999 | |
|---|---|---|
| 427 | 427 | UINT16 m_aga_sprdatb[8][4]; |
| 428 | 428 | int m_aga_sprite_fetched_words; |
| 429 | 429 | int m_aga_sprite_dma_used_words[8]; |
| 430 | ||
| 430 | ||
| 431 | 431 | DECLARE_CUSTOM_INPUT_MEMBER( amiga_joystick_convert ); |
| 432 | 432 | }; |
| 433 | 433 |
| r14998 | r14999 | |
|---|---|---|
| 20 | 20 | required_shared_ptr<UINT8> m_paletteram; |
| 21 | 21 | optional_shared_ptr<UINT8> m_txram; |
| 22 | 22 | optional_shared_ptr<UINT8> m_bg1ram; |
| 23 | required_shared_ptr<UINT8> m_spriteram; | |
| 23 | required_shared_ptr<UINT8> m_spriteram; | |
| 24 | 24 | optional_shared_ptr<UINT8> m_butasan_bg1ram; |
| 25 | ||
| 25 | ||
| 26 | 26 | UINT8 *m_dummy_bg0ram; |
| 27 | 27 | UINT8 *m_butasan_txram; |
| 28 | 28 | UINT8 *m_butasan_bg0ram; |
| r14998 | r14999 | |
|---|---|---|
| 16 | 16 | required_shared_ptr<UINT8> m_videoram; |
| 17 | 17 | optional_shared_ptr<UINT8> m_spriteram; |
| 18 | 18 | optional_shared_ptr<UINT8> m_colorram; |
| 19 | ||
| 19 | ||
| 20 | 20 | UINT8 m_int_enabled; |
| 21 | 21 | UINT8 m_coin_status[3]; |
| 22 | 22 | UINT8 m_coin_enable[3]; |
| r14998 | r14999 | |
|---|---|---|
| 28 | 28 | optional_shared_ptr<UINT8> m_swimmer_background_color; |
| 29 | 29 | optional_shared_ptr<UINT8> m_toprollr_bg_videoram; |
| 30 | 30 | optional_shared_ptr<UINT8> m_toprollr_bg_coloram; |
| 31 | ||
| 31 | ||
| 32 | 32 | UINT8 m_yamato_p0; |
| 33 | 33 | UINT8 m_yamato_p1; |
| 34 | 34 | UINT8 m_toprollr_rombank; |
| r14998 | r14999 | |
|---|---|---|
| 99 | 99 | optional_shared_ptr<UINT16> m_layers_1_regs; |
| 100 | 100 | optional_shared_ptr<UINT16> m_mcu_ram; |
| 101 | 101 | optional_shared_ptr<UINT16> m_mainram; |
| 102 | ||
| 102 | ||
| 103 | 103 | UINT8 m_nvram_save[128]; |
| 104 | 104 | int m_sprite_type; |
| 105 | 105 | int m_sprite_fliptype; |
| r14998 | r14999 | |
| 110 | 110 | struct tempsprite *m_first_sprite; |
| 111 | 111 | kaneko16_priority_t m_priority; |
| 112 | 112 | optional_shared_ptr<UINT16> m_galsnew_bg_pixram; |
| 113 | optional_shared_ptr<UINT16> m_galsnew_fg_pixram; | |
| 113 | optional_shared_ptr<UINT16> m_galsnew_fg_pixram; | |
| 114 | 114 | calc1_hit_t m_hit; |
| 115 | 115 | calc3_hit_t m_hit3; |
| 116 | 116 | calc3_t m_calc3; |
| r14998 | r14999 | |
|---|---|---|
| 23 | 23 | optional_shared_ptr<UINT8> m_zoar_scrollram; |
| 24 | 24 | optional_shared_ptr<UINT8> m_lnc_charbank; |
| 25 | 25 | optional_shared_ptr<UINT8> m_deco_charram; |
| 26 | optional_shared_ptr<UINT8> m_spriteram; | |
| 26 | optional_shared_ptr<UINT8> m_spriteram; | |
| 27 | 27 | // UINT8 * m_decrypted; |
| 28 | 28 | optional_shared_ptr<UINT8> m_audio_rambase; |
| 29 | 29 |
| r14998 | r14999 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | required_shared_ptr<UINT8> m_spriteram; |
| 44 | 44 | required_shared_ptr<UINT8> m_videoram; |
| 45 | ||
| 45 | ||
| 46 | 46 | int m_bullets_base; |
| 47 | 47 | int m_numspritegens; |
| 48 | 48 | int m_counter_74ls161[2]; |
| r14998 | r14999 | |
|---|---|---|
| 31 | 31 | required_shared_ptr<UINT32> m_lumaram; |
| 32 | 32 | optional_shared_ptr<UINT16> m_soundram; |
| 33 | 33 | optional_shared_ptr<UINT32> m_tgp_program; |
| 34 | ||
| 34 | ||
| 35 | 35 | UINT32 m_intreq; |
| 36 | 36 | UINT32 m_intena; |
| 37 | 37 | UINT32 m_coproctl; |
| r14998 | r14999 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | int mux_port; |
| 11 | 11 | UINT32 m_st0016_rom_bank; |
| 12 | ||
| 12 | ||
| 13 | 13 | required_device<cpu_device> m_maincpu; |
| 14 | 14 | DECLARE_READ8_MEMBER(mux_r); |
| 15 | 15 | DECLARE_WRITE8_MEMBER(mux_select_w); |
| r14998 | r14999 | |
|---|---|---|
| 30 | 30 | gp9001vdp_device* m_vdp1; |
| 31 | 31 | |
| 32 | 32 | optional_shared_ptr<UINT8> m_shared_ram; // 8 bit RAM shared between 68K and sound CPU |
| 33 | optional_shared_ptr<UINT16> m_shared_ram16; | |
| 33 | optional_shared_ptr<UINT16> m_shared_ram16; | |
| 34 | 34 | |
| 35 | 35 | device_t *m_main_cpu; |
| 36 | 36 | device_t *m_sub_cpu; |
| r14998 | r14999 | |
|---|---|---|
| 122 | 122 | UINT8 *m_dirtypal; |
| 123 | 123 | bitmap_ind16 *m_mix_bitmap; |
| 124 | 124 | tilemap_t *m_bgtilemap; |
| 125 | ||
| 125 | ||
| 126 | 126 | DECLARE_READ32_MEMBER(namcos22_gamma_r); |
| 127 | 127 | DECLARE_WRITE32_MEMBER(namcos22_gamma_w); |
| 128 | 128 | DECLARE_WRITE32_MEMBER(namcos22s_czram_w); |
| r14998 | r14999 | |
|---|---|---|
| 28 | 28 | UINT8 * m_buckrog_bitmap_ram; |
| 29 | 29 | |
| 30 | 30 | /* machine states */ |
| 31 | UINT8 | |
| 31 | UINT8 | |
| 32 | 32 | |
| 33 | 33 | /* sound state */ |
| 34 | 34 | UINT8 m_turbo_osel; |
| r14998 | r14999 | |
| 72 | 72 | UINT8 m_buckrog_command; |
| 73 | 73 | UINT8 m_buckrog_myship; |
| 74 | 74 | int m_last_sound_a; |
| 75 | ||
| 75 | ||
| 76 | 76 | DECLARE_WRITE8_MEMBER(scanlines_w); |
| 77 | 77 | DECLARE_WRITE8_MEMBER(digit_w); |
| 78 | 78 | DECLARE_READ8_MEMBER(turbo_collision_r); |
| r14998 | r14999 | |
|---|---|---|
| 30 | 30 | UINT8 vfd_ser_value; |
| 31 | 31 | int vfd_ser_count; |
| 32 | 32 | |
| 33 | const stepper_interface **m_reel_setup; | |
| 33 | const stepper_interface **m_reel_setup; | |
| 34 | 34 | int m_reel_changed; |
| 35 | 35 | int m_reels; |
| 36 | 36 | int m_reel12_latch; |
| r14998 | r14999 | |
|---|---|---|
| 17 | 17 | optional_shared_ptr<UINT8> m_galaga_ram1; |
| 18 | 18 | optional_shared_ptr<UINT8> m_galaga_ram2; |
| 19 | 19 | optional_shared_ptr<UINT8> m_galaga_ram3; |
| 20 | optional_shared_ptr<UINT8> m_galaga_starcontrol; | |
| 20 | optional_shared_ptr<UINT8> m_galaga_starcontrol; | |
| 21 | 21 | emu_timer *m_cpu3_interrupt_timer; |
| 22 | 22 | UINT8 m_custom_mod; |
| 23 | 23 |
| r14998 | r14999 | |
|---|---|---|
| 24 | 24 | required_shared_ptr<UINT8> m_spriteram; |
| 25 | 25 | required_shared_ptr<UINT8> m_back_color; |
| 26 | 26 | optional_shared_ptr<UINT8> m_chip_data; |
| 27 | optional_shared_ptr<UINT8> m_bitmap_ram; | |
| 27 | optional_shared_ptr<UINT8> m_bitmap_ram; | |
| 28 | 28 | optional_shared_ptr<UINT8> m_last_colors; |
| 29 | 29 | optional_shared_ptr<UINT8> m_track_scroll; |
| 30 | 30 |
| r14998 | r14999 | |
|---|---|---|
| 16 | 16 | required_shared_ptr<UINT16> m_spriteram; |
| 17 | 17 | optional_shared_ptr<UINT16> m_protdata; |
| 18 | 18 | optional_shared_ptr<UINT16> m_bitmap_mode; |
| 19 | ||
| 19 | ||
| 20 | 20 | int m_bitmap_type; |
| 21 | 21 | int m_sprite_attr2_shift; |
| 22 | 22 | tilemap_t *m_bg_tilemap[2]; |
| r14998 | r14999 | |
| 34 | 34 | int m_msm_source; |
| 35 | 35 | int m_snd_interrupt_enable1; |
| 36 | 36 | int m_snd_interrupt_enable2; |
| 37 | ||
| 37 | ||
| 38 | 38 | DECLARE_WRITE16_MEMBER(splash_sh_irqtrigger_w); |
| 39 | 39 | DECLARE_WRITE16_MEMBER(roldf_sh_irqtrigger_w); |
| 40 | 40 | DECLARE_WRITE16_MEMBER(splash_coin_w); |
| r14998 | r14999 | |
|---|---|---|
| 22 | 22 | required_device<adsp2105_device> m_adsp; |
| 23 | 23 | required_device<dsp32c_device> m_dsp32c_1; |
| 24 | 24 | required_device<dsp32c_device> m_dsp32c_2; |
| 25 | ||
| 25 | ||
| 26 | 26 | required_shared_ptr<UINT32> m_adsp_internal_program_ram; |
| 27 | 27 | required_shared_ptr<UINT16> m_gsp_dram; |
| 28 | 28 | required_shared_ptr<UINT16> m_gsp_vram; |
| r14998 | r14999 | |
|---|---|---|
| 21 | 21 | required_shared_ptr<UINT16> m_spriteram; |
| 22 | 22 | optional_shared_ptr<UINT16> m_workram; |
| 23 | 23 | optional_shared_ptr<UINT16> m_spriteram_2; |
| 24 | required_shared_ptr<UINT8> m_mcu_ram; | |
| 24 | required_shared_ptr<UINT8> m_mcu_ram; | |
| 25 | 25 | // UINT16 * m_nvram; // currently this uses generic nvram handling |
| 26 | 26 | |
| 27 | 27 | /* video-related */ |
| r14998 | r14999 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | required_shared_ptr<UINT16> m_vidreg1; |
| 23 | 23 | required_shared_ptr<UINT16> m_vidreg2; |
| 24 | ||
| 24 | ||
| 25 | 25 | DECLARE_WRITE16_MEMBER(bsb_videoram_w); |
| 26 | 26 | DECLARE_WRITE16_MEMBER(bsb_videoram2_w); |
| 27 | 27 | DECLARE_WRITE16_MEMBER(bsb_videoram3_w); |
| r14998 | r14999 | |
|---|---|---|
| 25 | 25 | required_shared_ptr<UINT16> m_spriteram; |
| 26 | 26 | UINT16 * m_spriteram_buffered; |
| 27 | 27 | UINT16 * m_spriteram_delayed; |
| 28 | optional_shared_ptr<UINT16> m_cchip2_ram; | |
| 28 | optional_shared_ptr<UINT16> m_cchip2_ram; | |
| 29 | 29 | // UINT16 * m_paletteram; // currently this uses generic palette handling |
| 30 | 30 | |
| 31 | 31 |
| r14998 | r14999 | |
|---|---|---|
| 194 | 194 | int (*m_dpix_n[8][16])(taito_f3_state *state, UINT32 s_pix); |
| 195 | 195 | int (**m_dpix_lp[5])(taito_f3_state *state, UINT32 s_pix); |
| 196 | 196 | int (**m_dpix_sp[9])(taito_f3_state *state, UINT32 s_pix); |
| 197 | ||
| 197 | ||
| 198 | 198 | DECLARE_READ32_MEMBER(f3_control_r); |
| 199 | 199 | DECLARE_WRITE32_MEMBER(f3_control_w); |
| 200 | 200 | DECLARE_WRITE32_MEMBER(f3_sound_reset_0_w); |
| r14998 | r14999 | |
|---|---|---|
| 34 | 34 | optional_device<z80_device> m_maincpu; |
| 35 | 35 | optional_shared_ptr<UINT8> m_spriteram; |
| 36 | 36 | optional_shared_ptr<UINT8> m_videoram; |
| 37 | ||
| 37 | ||
| 38 | 38 | optional_device<midway_ssio_device> m_ssio; |
| 39 | 39 | optional_device<midway_chip_squeak_deluxe_device> m_chip_squeak_deluxe; |
| 40 | 40 | optional_device<midway_sounds_good_device> m_sounds_good; |
| 41 | 41 | optional_device<midway_turbo_chip_squeak_device> m_turbo_chip_squeak; |
| 42 | 42 | optional_device<midway_squawk_n_talk_device> m_squawk_n_talk; |
| 43 | ||
| 43 | ||
| 44 | 44 | DECLARE_WRITE8_MEMBER(mcr_control_port_w); |
| 45 | 45 | DECLARE_WRITE8_MEMBER(mcr_ipu_laserdisk_w); |
| 46 | 46 | DECLARE_READ8_MEMBER(mcr_ipu_watchdog_r); |
| r14998 | r14999 | |
|---|---|---|
| 16 | 16 | required_shared_ptr<UINT16> m_videoram; |
| 17 | 17 | optional_shared_ptr<UINT16> m_tile_gfx_ram; |
| 18 | 18 | optional_shared_ptr<UINT16> m_sprite_gfx_ram; |
| 19 | ||
| 19 | ||
| 20 | 20 | UINT16 m_CPUA_register; |
| 21 | 21 | UINT16 m_CPUB_register; |
| 22 | 22 | UINT16 m_sound_command; |
| r14998 | r14999 | |
|---|---|---|
| 25 | 25 | { |
| 26 | 26 | public: |
| 27 | 27 | cave_state(const machine_config &mconfig, device_type type, const char *tag) |
| 28 | : driver_device(mconfig, type, tag), | |
| 28 | : driver_device(mconfig, type, tag), | |
| 29 | 29 | m_videoregs(*this, "videoregs"), |
| 30 | 30 | m_vram(*this, "vram"), |
| 31 | 31 | m_vctrl(*this, "vctrl"), |
| r14998 | r14999 | |
|---|---|---|
| 23 | 23 | return state->m_sharedram[0x299] ? state->m_sharedram[0x298] : 0; |
| 24 | 24 | else |
| 25 | 25 | return 0; |
| 26 | ||
| 27 | return 0; | |
| 26 | 28 | } |
| 27 | 29 | |
| 28 | 30 | WRITE8_MEMBER(nycaptor_state::nycaptor_spriteram_w) |
| r14998 | r14999 | |
| 263 | 265 | draw_sprites(screen.machine(), bitmap, cliprect, 7); |
| 264 | 266 | } |
| 265 | 267 | else |
| 266 | ||
| 268 | ||
| 267 | 269 | switch (nycaptor_spot(screen.machine()) & 3) |
| 268 | 270 | { |
| 269 | 271 | case 0: |
| r14998 | r14999 | |
|---|---|---|
| 31 | 31 | #define MCFG_TIA_VIDEO_ADD(_tag, _config) \ |
| 32 | 32 | MCFG_DEVICE_ADD(_tag, TIA_VIDEO, 0) \ |
| 33 | 33 | MCFG_DEVICE_CONFIG(_config) |
| 34 | ||
| 34 | ||
| 35 | 35 | //************************************************************************** |
| 36 | 36 | // TYPE DEFINITIONS |
| 37 | 37 | //************************************************************************** |
| r14998 | r14999 | |
| 39 | 39 | |
| 40 | 40 | // ======================> tia_interface |
| 41 | 41 | |
| 42 | ||
| 42 | ||
| 43 | 43 | struct tia_interface { |
| 44 | 44 | devcb_read16 m_read_input_port_cb; |
| 45 | 45 | devcb_read8 m_databus_contents_cb; |
| r14998 | r14999 | |
| 112 | 112 | devcb_resolved_read16 m_read_input_port_func; |
| 113 | 113 | devcb_resolved_read8 m_databus_contents_func; |
| 114 | 114 | devcb_resolved_write16 m_vsync_callback_func; |
| 115 | ||
| 115 | ||
| 116 | 116 | struct player_gfx p0gfx; |
| 117 | 117 | struct player_gfx p1gfx; |
| 118 | ||
| 118 | ||
| 119 | 119 | UINT64 frame_cycles; |
| 120 | 120 | UINT64 paddle_cycles; |
| 121 | ||
| 121 | ||
| 122 | 122 | int horzP0; |
| 123 | 123 | int horzP1; |
| 124 | 124 | int horzM0; |
| r14998 | r14999 | |
| 137 | 137 | int skipclipP1; |
| 138 | 138 | int skipM0delay; |
| 139 | 139 | int skipM1delay; |
| 140 | ||
| 140 | ||
| 141 | 141 | int current_bitmap; |
| 142 | ||
| 142 | ||
| 143 | 143 | int prev_x; |
| 144 | 144 | int prev_y; |
| 145 | ||
| 145 | ||
| 146 | 146 | UINT8 VSYNC; |
| 147 | 147 | UINT8 VBLANK; |
| 148 | 148 | UINT8 COLUP0; |
| r14998 | r14999 | |
| 182 | 182 | UINT8 PF2; |
| 183 | 183 | UINT8 INPT4; |
| 184 | 184 | UINT8 INPT5; |
| 185 | ||
| 185 | ||
| 186 | 186 | UINT8 prevGRP0; |
| 187 | 187 | UINT8 prevGRP1; |
| 188 | 188 | UINT8 prevENABL; |
| 189 | ||
| 189 | ||
| 190 | 190 | int HMOVE_started; |
| 191 | 191 | int HMOVE_started_previous; |
| 192 | 192 | UINT8 HMP0_latch; |
| r14998 | r14999 | |
| 196 | 196 | UINT8 HMBL_latch; |
| 197 | 197 | UINT8 REFLECT; /* Should playfield be reflected or not */ |
| 198 | 198 | UINT8 NUSIZx_changed; |
| 199 | ||
| 199 | ||
| 200 | 200 | bitmap_ind16 *helper[3]; |
| 201 | ||
| 201 | ||
| 202 | 202 | UINT16 screen_height; |
| 203 | ||
| 203 | ||
| 204 | 204 | }; |
| 205 | 205 | |
| 206 | 206 |
| r14998 | r14999 | |
|---|---|---|
| 839 | 839 | // scrambled palettes? |
| 840 | 840 | static inline int mypal(int x) |
| 841 | 841 | { |
| 842 | // | |
| 842 | // return pal5bit(x >> 3); | |
| 843 | 843 | return pal5bit((x^0xff) >> 3); |
| 844 | // return (((x - 0x80) >= 0) ? (x - 0x80) : 0) ^ 0x7f; | |
| 845 | // return (x - 0x80); | |
| 844 | // return (((x - 0x80) >= 0) ? (x - 0x80) : 0) ^ 0x7f; | |
| 845 | // return (x - 0x80); | |
| 846 | 846 | } |
| 847 | 847 | |
| 848 | 848 | WRITE16_MEMBER(stepstag_state::stepstag_palette_w) |
| 849 | 849 | { |
| 850 | 850 | data = COMBINE_DATA(&m_generic_paletteram_16[offset]); |
| 851 | // | |
| 851 | // if ((offset & 1) == 0) | |
| 852 | 852 | palette_set_color_rgb(machine(),offset/4, |
| 853 | 853 | mypal(m_generic_paletteram_16[offset/4*4+0] & 0xff), |
| 854 | 854 | mypal(m_generic_paletteram_16[offset/4*4+1] & 0xff), |
| r14998 | r14999 | |
|---|---|---|
| 31 | 31 | <color red="1.0" green="0.3" blue="0.0" /> |
| 32 | 32 | </led7seg> |
| 33 | 33 | </element> |
| 34 | ||
| 34 | ||
| 35 | 35 | <view name="AWP Simulated Video (No Artwork)"> |
| 36 | 36 | <backdrop name="vfd0" element="vfd0" state="0"> |
| 37 | 37 | <bounds x="210" y="200" width="9" height="17"/> |
| r14998 | r14999 | |
| 99 | 99 | <backdrop name="reel6" element="Steppers" state="0"> |
| 100 | 100 | <bounds x="310" y="360" width="50" height="50"/> |
| 101 | 101 | </backdrop> |
| 102 | ||
| 103 | ||
| 104 | ||
| 105 | ||
| 102 | ||
| 103 | ||
| 104 | ||
| 105 | ||
| 106 | 106 | <backdrop name="lamp0" element="matrixlamp" state="0"> |
| 107 | 107 | <bounds x="0" y="0" width="7" height="7"/> |
| 108 | 108 | </backdrop> |
| r14998 | r14999 | |
| 996 | 996 | <backdrop name="matrix39" element="matrixlamp" state="0"> |
| 997 | 997 | <bounds y="28" x="196" width="3" height="3"/> |
| 998 | 998 | </backdrop> |
| 999 | ||
| 1000 | ||
| 999 | ||
| 1000 | ||
| 1001 | 1001 | <backdrop name="matrix40" element="matrixlamp" state="0"> |
| 1002 | 1002 | <bounds y="0" x="202" width="3" height="3"/> |
| 1003 | 1003 | </backdrop> |
| r14998 | r14999 | |
| 1118 | 1118 | <backdrop name="matrix79" element="matrixlamp" state="0"> |
| 1119 | 1119 | <bounds y="28" x="218" width="3" height="3"/> |
| 1120 | 1120 | </backdrop> |
| 1121 | ||
| 1122 | ||
| 1121 | ||
| 1122 | ||
| 1123 | 1123 | <backdrop name="matrix80" element="matrixlamp" state="0"> |
| 1124 | 1124 | <bounds y="0" x="224" width="3" height="3"/> |
| 1125 | 1125 | </backdrop> |
| r14998 | r14999 | |
| 1240 | 1240 | <backdrop name="matrix119" element="matrixlamp" state="0"> |
| 1241 | 1241 | <bounds y="28" x="240" width="3" height="3"/> |
| 1242 | 1242 | </backdrop> |
| 1243 | ||
| 1244 | ||
| 1243 | ||
| 1244 | ||
| 1245 | 1245 | <backdrop name="matrix120" element="matrixlamp" state="0"> |
| 1246 | 1246 | <bounds y="0" x="246" width="3" height="3"/> |
| 1247 | 1247 | </backdrop> |
| r14998 | r14999 | |
| 1362 | 1362 | <backdrop name="matrix159" element="matrixlamp" state="0"> |
| 1363 | 1363 | <bounds y="28" x="262" width="3" height="3"/> |
| 1364 | 1364 | </backdrop> |
| 1365 | ||
| 1366 | <!-- the rest of the elements tend to be used for 7-segs | |
| 1365 | ||
| 1366 | <!-- the rest of the elements tend to be used for 7-segs | |
| 1367 | 1367 | so render them as both --> |
| 1368 | 1368 | <backdrop name="matrix160" element="matrixlamp" state="0"> |
| 1369 | 1369 | <bounds y="0" x="280" width="3" height="3"/> |
| r14998 | r14999 | |
| 1678 | 1678 | <backdrop name="digit7" element="digit" state="0"> |
| 1679 | 1679 | <bounds x="250" y="64" width="9" height="19"/> |
| 1680 | 1680 | </backdrop> |
| 1681 | ||
| 1681 | ||
| 1682 | 1682 | <backdrop name="digit8" element="digit" state="0"> |
| 1683 | 1683 | <bounds x="180" y="84" width="9" height="19"/> |
| 1684 | 1684 | </backdrop> |
| r14998 | r14999 | |
|---|---|---|
| 29 | 29 | AM_RANGE(0x20000018, 0x2000001b) AM_WRITENOP // large data upload like astra/pluto? |
| 30 | 30 | AM_RANGE(0x50000000, 0x50001fff) AM_RAM |
| 31 | 31 | |
| 32 | // | |
| 32 | // AM_RANGE(0xf0000000, 0xf0000fff) AM_RAM | |
| 33 | 33 | |
| 34 | 34 | ADDRESS_MAP_END |
| 35 | 35 |
| r14998 | r14999 | |
|---|---|---|
| 461 | 461 | else if((m_disp_ctrl_reg[DC_GENERAL_CFG] & 0x00f00000) == 0x00000000) |
| 462 | 462 | { |
| 463 | 463 | m_pal_index = data; |
| 464 | ramdac->index_w( | |
| 464 | ramdac->index_w( | |
| 465 | 465 | } |
| 466 | 466 | else if((m_disp_ctrl_reg[DC_GENERAL_CFG] & 0x00f00000) == 0x00100000) |
| 467 | 467 | { |
| r14998 | r14999 | |
| 471 | 471 | { |
| 472 | 472 | m_pal_index = 0; |
| 473 | 473 | } |
| 474 | ramdac->pal_w( | |
| 474 | ramdac->pal_w( | |
| 475 | 475 | } |
| 476 | 476 | } |
| 477 | 477 | else |
| r14998 | r14999 | |
|---|---|---|
| 405 | 405 | } |
| 406 | 406 | if (ACCESSING_BITS_8_15) |
| 407 | 407 | { |
| 408 | machine().device<ticket_dispenser_device>("ticket")->write( | |
| 408 | machine().device<ticket_dispenser_device>("ticket")->write( | |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | // popmessage("LED %04X", data); |
| r14998 | r14999 | |
|---|---|---|
| 699 | 699 | |
| 700 | 700 | WRITE32_MEMBER(zn_state::zn_qsound_w) |
| 701 | 701 | { |
| 702 | soundlatch_byte_w( | |
| 702 | soundlatch_byte_w( | |
| 703 | 703 | cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE); |
| 704 | 704 | } |
| 705 | 705 | |
| r14998 | r14999 | |
| 1678 | 1678 | if (offset) |
| 1679 | 1679 | cputag_set_input_line(machine(), "audiocpu", 2, HOLD_LINE); // irq 2 on the 68k |
| 1680 | 1680 | else |
| 1681 | soundlatch_byte_w( | |
| 1681 | soundlatch_byte_w( | |
| 1682 | 1682 | } |
| 1683 | 1683 | |
| 1684 | 1684 | static DRIVER_INIT( coh1002e ) |
| r14998 | r14999 | |
| 2557 | 2557 | |
| 2558 | 2558 | ready = m_cbaj_to_r3k; |
| 2559 | 2559 | m_cbaj_to_r3k &= ~2; |
| 2560 | return soundlatch2_byte_r( | |
| 2560 | return soundlatch2_byte_r( | |
| 2561 | 2561 | } |
| 2562 | 2562 | |
| 2563 | 2563 | WRITE32_MEMBER(zn_state::cbaj_z80_w) |
| r14998 | r14999 | |
| 2595 | 2595 | { |
| 2596 | 2596 | |
| 2597 | 2597 | m_cbaj_to_r3k |= 2; |
| 2598 | soundlatch2_byte_w( | |
| 2598 | soundlatch2_byte_w( | |
| 2599 | 2599 | } |
| 2600 | 2600 | |
| 2601 | 2601 | READ8_MEMBER(zn_state::cbaj_z80_ready_r) |
| r14998 | r14999 | |
|---|---|---|
| 261 | 261 | ---- -x-- Bet pulse. |
| 262 | 262 | ---- x--- Manual Keyout pulse (only mdrawpkra) |
| 263 | 263 | xxxx ---- Seems unused... |
| 264 | ||
| 264 | ||
| 265 | 265 | */ |
| 266 | 266 | coin_counter_w(machine(), 0, ~data & 0x01); /* Coin1 */ |
| 267 | 267 | coin_counter_w(machine(), 1, ~data & 0x04); /* Bets */ |
| r14998 | r14999 | |
| 323 | 323 | AM_RANGE(0x4000, 0x5fff) AM_RAM AM_SHARE("vram0") |
| 324 | 324 | AM_RANGE(0x6000, 0x7fff) AM_RAM AM_SHARE("vram1") |
| 325 | 325 | AM_RANGE(0x8000, 0x9fff) AM_RAM AM_SHARE("vram2") |
| 326 | // | |
| 326 | // AM_RANGE(0xa000, 0xa0ff) AM_RAM // unknown... filled with 00's at boot time or when entering the service mode. | |
| 327 | 327 | AM_RANGE(0xcd00, 0xcdff) AM_RAM AM_SHARE("nvram") |
| 328 | 328 | AM_RANGE(0xf000, 0xf000) AM_READ_PORT("BSW") AM_DEVWRITE_LEGACY("dac", meyc8080_dac_1_w) |
| 329 | 329 | AM_RANGE(0xf004, 0xf004) AM_READ_PORT("IN1") AM_WRITE(lights_1_w) |
| r14998 | r14999 | |
|---|---|---|
| 3352 | 3352 | |
| 3353 | 3353 | deco156_decrypt(machine); |
| 3354 | 3354 | |
| 3355 | ||
| 3355 | ||
| 3356 | 3356 | state->soundlatch_setclearedvalue(0xff); |
| 3357 | 3357 | |
| 3358 | 3358 | /* The board for Night Slashers is very close to the Fighter's History and |
| r14998 | r14999 | |
|---|---|---|
| 2090 | 2090 | WRITE8_MEMBER(dynax_state::mmpanic_soundlatch_w) |
| 2091 | 2091 | { |
| 2092 | 2092 | |
| 2093 | soundlatch_byte_w( | |
| 2093 | soundlatch_byte_w( | |
| 2094 | 2094 | device_set_input_line(m_soundcpu, INPUT_LINE_NMI, PULSE_LINE); |
| 2095 | 2095 | } |
| 2096 | 2096 |
| r14998 | r14999 | |
|---|---|---|
| 1089 | 1089 | MCFG_MACHINE_START(mcr) |
| 1090 | 1090 | MCFG_MACHINE_RESET(mcr) |
| 1091 | 1091 | MCFG_NVRAM_ADD_0FILL("nvram") |
| 1092 | ||
| 1092 | ||
| 1093 | 1093 | // sound hardware |
| 1094 | 1094 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 1095 | 1095 |
| r14998 | r14999 | |
|---|---|---|
| 1115 | 1115 | /* |
| 1116 | 1116 | READ64_MEMBER(viper_state::epic_64be_r) |
| 1117 | 1117 | { |
| 1118 | ||
| 1118 | return read64be_with_32le_handler(epic_r, &space, offset, mem_mask); | |
| 1119 | 1119 | } |
| 1120 | 1120 | WRITE64_MEMBER(viper_state::epic_64be_w) |
| 1121 | 1121 | { |
| 1122 | ||
| 1122 | write64be_with_32le_handler(epic_w, &space, offset, data, mem_mask); | |
| 1123 | 1123 | } |
| 1124 | 1124 | */ |
| 1125 | 1125 |
| r14998 | r14999 | |
|---|---|---|
| 778 | 778 | { |
| 779 | 779 | int aux = address & 0xfff; |
| 780 | 780 | aux = aux ^ (aux>>6); |
| 781 | aux = ((aux<<6) | (aux>>6)) & 0xfff; | |
| 781 | aux = ((aux<<6) | (aux>>6)) & 0xfff; | |
| 782 | 782 | UINT8 aux2 = BITSWAP8(aux, 9,10,4,1,6,0,7,3); |
| 783 | 783 | aux2 ^= aux2>>4; |
| 784 | 784 | aux2 = (aux2<<4) | (aux2>>4); |
| r14998 | r14999 | |
| 792 | 792 | { |
| 793 | 793 | UINT8 plaintext; |
| 794 | 794 | int newaddress; |
| 795 | ||
| 795 | ||
| 796 | 796 | UINT8 *src = machine.root_device().memregion("mainprg")->base(); |
| 797 | 797 | UINT8 *dest = machine.root_device().memregion("maincpu")->base(); |
| 798 | 798 | int len = machine.root_device().memregion("mainprg")->bytes(); |
| 799 | ||
| 799 | ||
| 800 | 800 | for (int i = 0; i < len; i++) |
| 801 | 801 | { |
| 802 | 802 | encf(src[i], i, plaintext, newaddress); |
| r14998 | r14999 | |
|---|---|---|
| 392 | 392 | MCFG_DEVICE_PERIODIC_INT_DRIVER(driver_device,irq0_line_hold,4*60) |
| 393 | 393 | |
| 394 | 394 | MCFG_ER2055_ADD("earom") |
| 395 | ||
| 395 | ||
| 396 | 396 | /* video hardware */ |
| 397 | 397 | MCFG_SCREEN_ADD("screen", RASTER) |
| 398 | 398 | MCFG_SCREEN_REFRESH_RATE(60) |
| r14998 | r14999 | |
|---|---|---|
| 416 | 416 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| 417 | 417 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| 418 | 418 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) |
| 419 | // | |
| 419 | // PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) /* duplicate setting */ | |
| 420 | 420 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) |
| 421 | 421 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 422 | 422 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) |
| r14998 | r14999 | |
| 443 | 443 | PORT_DIPUNUSED( 0x20, IP_ACTIVE_LOW ) |
| 444 | 444 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) |
| 445 | 445 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) |
| 446 | ||
| 446 | ||
| 447 | 447 | PORT_START("COIN") |
| 448 | 448 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 449 | 449 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| r14998 | r14999 | |
| 459 | 459 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| 460 | 460 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| 461 | 461 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) |
| 462 | // | |
| 462 | // PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) /* duplicate setting */ | |
| 463 | 463 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) |
| 464 | 464 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 465 | 465 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) |
| r14998 | r14999 | |
| 503 | 503 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| 504 | 504 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| 505 | 505 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) |
| 506 | // | |
| 506 | // PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) /* duplicate setting */ | |
| 507 | 507 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) |
| 508 | 508 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 509 | 509 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) |
| r14998 | r14999 | |
| 511 | 511 | PORT_DIPSETTING( 0x18, DEF_STR( Easy ) ) |
| 512 | 512 | PORT_DIPSETTING( 0x10, DEF_STR( Normal ) ) |
| 513 | 513 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 514 | // | |
| 514 | // PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) /* duplicate setting */ | |
| 515 | 515 | PORT_DIPUNUSED( 0x20, IP_ACTIVE_LOW ) |
| 516 | 516 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) |
| 517 | 517 | PORT_DIPNAME( 0x80, 0x00, "Mode" ) |
| r14998 | r14999 | |
| 548 | 548 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) |
| 549 | 549 | PORT_DIPSETTING( 0x03, DEF_STR( 2C_1C ) ) |
| 550 | 550 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_1C ) ) |
| 551 | // | |
| 551 | // PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) /* duplicate setting */ | |
| 552 | 552 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) |
| 553 | 553 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_3C ) ) |
| 554 | 554 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_4C ) ) |
| r14998 | r14999 | |
|---|---|---|
| 3 | 3 | Star Trek Voyager (c) 2002 Team Play, Inc. / Game Refuge / Monaco Entertainment |
| 4 | 4 | |
| 5 | 5 | skeleton driver by R. Belmont |
| 6 | ||
| 6 | ||
| 7 | 7 | Motherboard is FIC AZIIEA with AMD Duron processor of unknown speed |
| 8 | 8 | Chipset: VIA KT133a with VT8363A Northbridge and VT82C686B Southbridge |
| 9 | 9 | Video: Jaton 3DForce2MX-32, based on Nvidia GeForce 2MX chipset w/32 MB of VRAM |
| 10 | ||
| 11 | TODO: VIA KT133a chipset support, GeForce 2MX video support, lots of things ;-) | |
| 12 | ||
| 10 | ||
| 11 | TODO: VIA KT133a chipset support, GeForce 2MX video support, lots of things ;-) | |
| 12 | ||
| 13 | 13 | *************************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "emu.h" |
| r14998 | r14999 | |
| 801 | 801 | |
| 802 | 802 | ROM_START( voyager ) |
| 803 | 803 | ROM_REGION( 0x40000, "bios", 0 ) |
| 804 | ROM_LOAD( "stv.u23", 0x000000, 0x040000, CRC(0bed28b6) SHA1(8e7f17af65ca9d17c5c7ddedb2313507d0ea8181) ) | |
| 804 | ROM_LOAD( "stv.u23", 0x000000, 0x040000, CRC(0bed28b6) SHA1(8e7f17af65ca9d17c5c7ddedb2313507d0ea8181) ) | |
| 805 | 805 | |
| 806 | ROM_REGION( 0x8000, "video_bios", 0 ) // incorrect, | |
| 806 | ROM_REGION( 0x8000, "video_bios", 0 ) // incorrect, | |
| 807 | 807 | ROM_LOAD16_BYTE( "trident_tgui9680_bios.bin", 0x0000, 0x4000, CRC(1eebde64) SHA1(67896a854d43a575037613b3506aea6dae5d6a19) ) |
| 808 | 808 | ROM_CONTINUE( 0x0001, 0x4000 ) |
| 809 | 809 | |
| 810 | 810 | ROM_REGION( 0x800, "nvram", ROMREGION_ERASE00 ) |
| 811 | 811 | |
| 812 | 812 | DISK_REGION( "drive_0" ) |
| 813 | DISK_IMAGE_READONLY( "voyager", 0, SHA1(8b94f2420f6abb40148e4ba6eed8819d8e85dbde)) | |
| 813 | DISK_IMAGE_READONLY( "voyager", 0, SHA1(8b94f2420f6abb40148e4ba6eed8819d8e85dbde)) | |
| 814 | 814 | ROM_END |
| 815 | 815 | |
| 816 | 816 | GAME( 2002, voyager, 0, voyager, voyager, voyager, ROT0, "Team Play/Game Refuge/Monaco Entertainment", "Star Trek: Voyager", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| r14998 | r14999 | |
|---|---|---|
| 397 | 397 | AM_RANGE(0x000000, 0x0bffff) AM_ROM |
| 398 | 398 | AM_RANGE(0x0c0000, 0x0cffff) AM_RAM AM_SHARE("m68000_mainram") |
| 399 | 399 | AM_RANGE(0x140000, 0x140001) AM_WRITE(system_control_w) /* Pause the TMS32025 */ |
| 400 | AM_RANGE(0x180000, 0x187fff) AM_RAM_WRITE(airsys_gradram_w) AM_SHARE("gradram") | |
| 400 | AM_RANGE(0x180000, 0x187fff) AM_RAM_WRITE(airsys_gradram_w) AM_SHARE("gradram") | |
| 401 | 401 | AM_RANGE(0x188000, 0x189fff) AM_MIRROR(0x2000) AM_RAM_WRITE(airsys_paletteram16_w) AM_SHARE("paletteram") |
| 402 | 402 | AM_RANGE(0x800000, 0x820fff) AM_DEVREADWRITE_LEGACY("tc0080vco", tc0080vco_word_r, tc0080vco_word_w) /* tilemaps, sprites */ |
| 403 | 403 | AM_RANGE(0x906000, 0x906007) AM_RAM // DMA? |
| r14998 | r14999 | |
|---|---|---|
| 165 | 165 | { |
| 166 | 166 | gal3_state *state = machine.driver_data<gal3_state>(); |
| 167 | 167 | state->m_generic_paletteram_16.allocate(0x10000); |
| 168 | ||
| 168 | ||
| 169 | 169 | namco_obj_init(machine, |
| 170 | 170 | 0, /* gfx bank */ |
| 171 | 171 | 0xf, /* reverse palette mapping */ |
| r14998 | r14999 | |
|---|---|---|
| 1503 | 1503 | break; |
| 1504 | 1504 | |
| 1505 | 1505 | case 4/2: // not sure |
| 1506 | if (ACCESSING_BITS_0_7) soundlatch_byte_w( | |
| 1506 | if (ACCESSING_BITS_0_7) soundlatch_byte_w( | |
| 1507 | 1507 | break; |
| 1508 | 1508 | |
| 1509 | 1509 | case 6/2: // not sure |
| 1510 | if (ACCESSING_BITS_0_7) soundlatch2_byte_w( | |
| 1510 | if (ACCESSING_BITS_0_7) soundlatch2_byte_w( | |
| 1511 | 1511 | break; |
| 1512 | 1512 | } |
| 1513 | 1513 | |
| r14998 | r14999 | |
| 1653 | 1653 | { |
| 1654 | 1654 | if (ACCESSING_BITS_0_7) |
| 1655 | 1655 | { |
| 1656 | soundlatch_word_w( | |
| 1656 | soundlatch_word_w( | |
| 1657 | 1657 | cputag_set_input_line(machine(), "sub", INPUT_LINE_NMI, PULSE_LINE); |
| 1658 | 1658 | device_spin_until_time(&space.device(), attotime::from_usec(50)); // Allow the other cpu to reply |
| 1659 | 1659 | } |
| r14998 | r14999 | |
| 2448 | 2448 | case 1: offset = 2; break; |
| 2449 | 2449 | case 2: offset = 1; break; |
| 2450 | 2450 | } |
| 2451 | seta_vregs_w( | |
| 2451 | seta_vregs_w( | |
| 2452 | 2452 | } |
| 2453 | 2453 | |
| 2454 | 2454 | /* Mirror RAM is necessary or startup, to clear Work RAM after the test */ |
| r14998 | r14999 | |
| 2738 | 2738 | if (ACCESSING_BITS_0_7) |
| 2739 | 2739 | { |
| 2740 | 2740 | cputag_set_input_line(machine(), "audiocpu", 0, HOLD_LINE); |
| 2741 | soundlatch_byte_w( | |
| 2741 | soundlatch_byte_w( | |
| 2742 | 2742 | } |
| 2743 | 2743 | } |
| 2744 | 2744 |
| r14998 | r14999 | |
|---|---|---|
| 5523 | 5523 | NAOMI_DEFAULT_EEPROM |
| 5524 | 5524 | |
| 5525 | 5525 | ROM_REGION( 0xb000000, "rom_board", ROMREGION_ERASEFF) |
| 5526 | ROM_LOAD( "nja3vera_fl1.2d", 0x0800000, 0x0800000, CRC(442cb858) SHA1(8244871bdb0b49e14ea400d63fe759754a530410) ) | |
| 5527 | ROM_LOAD( "nja3vera_fl2.2c", 0x1000000, 0x0800000, CRC(1f81f46b) SHA1(7677f881b84233f3f95a792f9be6f618cba6d586) ) | |
| 5528 | ROM_LOAD( "nja3vera_fl3.2b", 0x1800000, 0x0800000, CRC(24974c3d) SHA1(cd64dec682688e26fca91873e5e7b6e0d931d1ce) ) | |
| 5529 | ROM_LOAD( "nja1ma2.4l", 0x2000000, 0x1000000, CRC(5af34ea0) SHA1(b49a50e995cb6682782b0643d40001b9bffe0118) ) | |
| 5530 | ROM_LOAD( "nja1ma3.4k", 0x3000000, 0x1000000, CRC(504a89b3) SHA1(e0b90542f80527e998db7ee3bb75e36c375cacba) ) | |
| 5531 | ROM_LOAD( "nja1ma4.4j", 0x4000000, 0x1000000, CRC(d5c2799a) SHA1(ce46c1aa38479d9e5e350573bc6b214979b88dbc) ) | |
| 5532 | ROM_LOAD( "nja1ma5.4h", 0x5000000, 0x1000000, CRC(cf5df4d3) SHA1(220bc51979d2c5f753fc6b544bb38c0c306bbcb8) ) | |
| 5533 | ROM_LOAD( "nja1ma6.4f", 0x6000000, 0x1000000, CRC(5daa6ed4) SHA1(139a68ea0cb5c071beeffb893533302fa80bc3f8) ) | |
| 5534 | ROM_LOAD( "nja1ma7.4e", 0x7000000, 0x1000000, CRC(d866cfa8) SHA1(a57a761cef0eaaada088a6091ec2324c112253fc) ) | |
| 5535 | ROM_LOAD( "nja1ma8.4d", 0x8000000, 0x1000000, CRC(1c959b74) SHA1(f1ff82c26df6250e1d8c23214f7827278cd572db) ) | |
| 5536 | ROM_LOAD( "nja1ma9.4c", 0x9000000, 0x1000000, CRC(8abed815) SHA1(5e1b208d23a17ba743d0507d963be42e7828755f) ) | |
| 5537 | ROM_LOAD( "nja1ma10.4b", 0xa000000, 0x1000000, CRC(f14d2073) SHA1(b4a8cd585794be149b616119df3f75c0fb30e2f0) ) | |
| 5526 | ROM_LOAD( "nja3vera_fl1.2d", 0x0800000, 0x0800000, CRC(442cb858) SHA1(8244871bdb0b49e14ea400d63fe759754a530410) ) | |
| 5527 | ROM_LOAD( "nja3vera_fl2.2c", 0x1000000, 0x0800000, CRC(1f81f46b) SHA1(7677f881b84233f3f95a792f9be6f618cba6d586) ) | |
| 5528 | ROM_LOAD( "nja3vera_fl3.2b", 0x1800000, 0x0800000, CRC(24974c3d) SHA1(cd64dec682688e26fca91873e5e7b6e0d931d1ce) ) | |
| 5529 | ROM_LOAD( "nja1ma2.4l", 0x2000000, 0x1000000, CRC(5af34ea0) SHA1(b49a50e995cb6682782b0643d40001b9bffe0118) ) | |
| 5530 | ROM_LOAD( "nja1ma3.4k", 0x3000000, 0x1000000, CRC(504a89b3) SHA1(e0b90542f80527e998db7ee3bb75e36c375cacba) ) | |
| 5531 | ROM_LOAD( "nja1ma4.4j", 0x4000000, 0x1000000, CRC(d5c2799a) SHA1(ce46c1aa38479d9e5e350573bc6b214979b88dbc) ) | |
| 5532 | ROM_LOAD( "nja1ma5.4h", 0x5000000, 0x1000000, CRC(cf5df4d3) SHA1(220bc51979d2c5f753fc6b544bb38c0c306bbcb8) ) | |
| 5533 | ROM_LOAD( "nja1ma6.4f", 0x6000000, 0x1000000, CRC(5daa6ed4) SHA1(139a68ea0cb5c071beeffb893533302fa80bc3f8) ) | |
| 5534 | ROM_LOAD( "nja1ma7.4e", 0x7000000, 0x1000000, CRC(d866cfa8) SHA1(a57a761cef0eaaada088a6091ec2324c112253fc) ) | |
| 5535 | ROM_LOAD( "nja1ma8.4d", 0x8000000, 0x1000000, CRC(1c959b74) SHA1(f1ff82c26df6250e1d8c23214f7827278cd572db) ) | |
| 5536 | ROM_LOAD( "nja1ma9.4c", 0x9000000, 0x1000000, CRC(8abed815) SHA1(5e1b208d23a17ba743d0507d963be42e7828755f) ) | |
| 5537 | ROM_LOAD( "nja1ma10.4b", 0xa000000, 0x1000000, CRC(f14d2073) SHA1(b4a8cd585794be149b616119df3f75c0fb30e2f0) ) | |
| 5538 | 5538 | |
| 5539 | 5539 | // this is a hack because we don't support the 8MB shift feature in naomibd yet (this also causes IC1 to show BAD |
| 5540 | 5540 | // in the ROM test - it is not bad and does not need a redump) |
| 5541 | 5541 | ROM_COPY( "rom_board", 0x800000, 0x000000, 0x800000 ) |
| 5542 | 5542 | |
| 5543 | 5543 | ROM_REGION( 4, "rom_key", 0 ) |
| 5544 | ROM_LOAD( "nja3-key.bin", 0x000000, 0x000004, CRC(e6997eb0) SHA1(c866a5069e28939be5a8fc867bc14791decac3c8) ) | |
| 5544 | ROM_LOAD( "nja3-key.bin", 0x000000, 0x000004, CRC(e6997eb0) SHA1(c866a5069e28939be5a8fc867bc14791decac3c8) ) | |
| 5545 | 5545 | ROM_END |
| 5546 | 5546 | |
| 5547 | 5547 | // this one's weird: the rom test checksum for IC 1 matches a screenshot from h/w, but on h/w it says ---- instead of BAD. |
| r14998 | r14999 | |
| 7932 | 7932 | /* Cart games on Namco custom ROM board */ |
| 7933 | 7933 | /* 25209801 */ GAME( 2000, wldkicks, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "World Kicks (WK1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS ) |
| 7934 | 7934 | /* 25349801 */ GAME( 2000, toukon4, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "Shin Nihon Pro Wrestling Toukon Retsuden 4 Arcade Edition (TRF1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS ) |
| 7935 | /* 25469801 */ GAME( 2000, ninjaslt, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "Ninja Assault (NJA3 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS ) | |
| 7935 | /* 25469801 */ GAME( 2000, ninjaslt, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "Ninja Assault (NJA3 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS ) | |
| 7936 | 7936 | /* 25709801 */ GAME( 2001, gunsur2, naomi, naomi, naomi, naomi, ROT0, "Capcom / Namco", "Gun Survivor 2 Biohazard Code: Veronica (BHF1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS ) |
| 7937 | 7937 | /* 25869812 */ GAME( 2002, mazan, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "Mazan: Flash of the Blade (MAZ1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS ) |
| 7938 | 7938 |
| r14998 | r14999 | |
|---|---|---|
| 84 | 84 | { |
| 85 | 85 | // machine().primary_screen->update_partial(machine().primary_screen->vpos()); |
| 86 | 86 | m_bg_tilemap->mark_tile_dirty(offset); |
| 87 | cvs_video_or_color_ram_w( | |
| 87 | cvs_video_or_color_ram_w( | |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | WRITE8_MEMBER(galaxia_state::galaxia_scroll_w) |
| r14998 | r14999 | |
|---|---|---|
| 122 | 122 | AM_RANGE(0xa103, 0xa103) AM_READ_PORT("IN1CPU0") |
| 123 | 123 | AM_RANGE(0xa400, 0xa400) AM_WRITE(sound_command_w) |
| 124 | 124 | AM_RANGE(0xc000, 0xddff) AM_RAM |
| 125 | AM_RANGE(0xde00, 0xdfff) AM_RAM AM_SHARE("spriteram") | |
| 125 | AM_RANGE(0xde00, 0xdfff) AM_RAM AM_SHARE("spriteram") | |
| 126 | 126 | AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(flower_textram_w) AM_SHARE("textram") |
| 127 | 127 | AM_RANGE(0xe000, 0xefff) AM_RAM // only cleared? |
| 128 | 128 | AM_RANGE(0xf000, 0xf1ff) AM_RAM_WRITE(flower_bg0ram_w) AM_SHARE("bg0ram") |
| r14998 | r14999 | |
|---|---|---|
| 4 | 4 | |
| 5 | 5 | i8088 CPU @ 5MHz (15MHz XTAL + i8284A clock generator), |
| 6 | 6 | 3 x 8KB EPROM (max 4), 3 x 8KB RAM (max 4), 2KB battery RAM, |
| 7 | 2 x i8155, optional i8251A for factory debug | |
| 7 | 2 x i8155, optional i8251A + RS232 for factory debug | |
| 8 | 8 | |
| 9 | driver by MAME team | |
| 10 | also thanks to Darrell Hal Smith, Kevin Mullins | |
| 9 | 11 | |
| 12 | ||
| 10 | 13 | ****************************************************************/ |
| 11 | 14 | |
| 12 | 15 | #include "emu.h" |
| r14998 | r14999 | |
| 25 | 28 | |
| 26 | 29 | required_device<cpu_device> m_maincpu; |
| 27 | 30 | required_shared_ptr<UINT8> m_vram; |
| 28 | ||
| 31 | ||
| 29 | 32 | UINT8 m_status; |
| 30 | 33 | UINT8 m_common; |
| 31 | ||
| 34 | ||
| 35 | DECLARE_WRITE8_MEMBER(drive_w); | |
| 32 | 36 | DECLARE_WRITE8_MEMBER(video5_flip_w); |
| 33 | 37 | DECLARE_READ8_MEMBER(video5_flip_r); |
| 34 | 38 | DECLARE_WRITE8_MEMBER(screen_flip_w); |
| r14998 | r14999 | |
| 69 | 73 | |
| 70 | 74 | ***************************************************************************/ |
| 71 | 75 | |
| 76 | WRITE8_MEMBER(meyc8088_state::drive_w) | |
| 77 | { | |
| 78 | m_status &= ~0x20; | |
| 79 | ||
| 80 | // d0-d3: DC counter drivers | |
| 81 | // d4-d7: AC motor drivers | |
| 82 | } | |
| 83 | ||
| 72 | 84 | // switch screen on/off on $b4000 access |
| 73 | 85 | READ8_MEMBER(meyc8088_state::screen_flip_r) |
| 74 | 86 | { |
| r14998 | r14999 | |
| 101 | 113 | AM_RANGE(0xb0800, 0xb0807) AM_DEVREADWRITE("i8155_2", i8155_device, io_r, io_w) |
| 102 | 114 | AM_RANGE(0xb1000, 0xb10ff) AM_DEVREADWRITE("i8155_1", i8155_device, memory_r, memory_w) |
| 103 | 115 | AM_RANGE(0xb1800, 0xb1807) AM_DEVREADWRITE("i8155_1", i8155_device, io_r, io_w) |
| 104 | // AM_RANGE(0xb2000, 0xb2000) AM_NOP // drive motor? | |
| 105 | // AM_RANGE(0xb3000, 0xb3000) AM_RAM // 8251A, debug related | |
| 106 | // AM_RANGE(0xb3800, 0xb3800) AM_RAM // " | |
| 116 | AM_RANGE(0xb2000, 0xb2000) AM_WRITE(drive_w) | |
| 117 | // AM_RANGE(0xb3000, 0xb3000) AM_NOP // 8251A, debug related | |
| 118 | // AM_RANGE(0xb3800, 0xb3800) AM_NOP // " | |
| 107 | 119 | AM_RANGE(0xb4000, 0xb4000) AM_READWRITE(screen_flip_r, screen_flip_w) |
| 108 | 120 | AM_RANGE(0xb5000, 0xb5000) AM_READWRITE(video5_flip_r, video5_flip_w) |
| 109 | 121 | AM_RANGE(0xf8000, 0xfffff) AM_ROM |
| r14998 | r14999 | |
| 130 | 142 | |
| 131 | 143 | // d0: /CR2 |
| 132 | 144 | state->m_status = (state->m_status & ~1) | (data & 1); |
| 133 | ||
| 145 | ||
| 134 | 146 | // d1: battery on |
| 135 | ||
| 147 | state->m_status = (state->m_status & ~0x10) | (data << 3 & 0x10); | |
| 148 | ||
| 136 | 149 | // d2-d5: /common |
| 137 | 150 | state->m_common = data >> 2 & 0xf; |
| 138 | 151 | |
| r14998 | r14999 | |
| 155 | 168 | static READ8_DEVICE_HANDLER(meyc8088_status_r) |
| 156 | 169 | { |
| 157 | 170 | meyc8088_state *state = device->machine().driver_data<meyc8088_state>(); |
| 158 | ||
| 171 | ||
| 159 | 172 | // d0: /CR2 |
| 160 | 173 | // d1: screen on |
| 161 | 174 | // d2: video5 |
| 162 | 175 | // d3: N/C |
| 163 | 176 | // d4: battery ok |
| 164 | 177 | // d5: /drive on |
| 165 | return (state->m_status & 7) | 0x | |
| 178 | return (state->m_status & 7) | 0x18; | |
| 166 | 179 | } |
| 167 | 180 | |
| 168 | 181 | static const i8155_interface i8155_intf[2] = |
| r14998 | r14999 | |
|---|---|---|
| 23 | 23 | This file contains the hardware emulation, for the supported sets |
| 24 | 24 | see bfm_sc4.c |
| 25 | 25 | |
| 26 | --- | |
| 27 | note, if game says 'read meters' simply press CTRL then 'B' | |
| 28 | I think we're stuck in some king of free play test mode so Start 1 will spin and give you credit | |
| 26 | --- | |
| 27 | note, if game says 'read meters' simply press CTRL then 'B' | |
| 28 | I think we're stuck in some king of free play test mode so Start 1 will spin and give you credit | |
| 29 | 29 | |
| 30 | 30 | */ |
| 31 | 31 | |
| r14998 | r14999 | |
| 78 | 78 | UINT32 r_A0 = cpu_get_reg(&space.device(), M68K_A0); |
| 79 | 79 | UINT32 r_A1 = cpu_get_reg(&space.device(), M68K_A1); |
| 80 | 80 | UINT32 r_D1 = cpu_get_reg(&space.device(), M68K_D1); |
| 81 | ||
| 81 | ||
| 82 | 82 | if (r_D1 == 0x7) |
| 83 | 83 | { |
| 84 | 84 | bool valid = true; |
| r14998 | r14999 | |
| 108 | 108 | |
| 109 | 109 | |
| 110 | 110 | return m_cpuregion[offset]; |
| 111 | ||
| 111 | ||
| 112 | 112 | } |
| 113 | 113 | else |
| 114 | 114 | logerror("%08x maincpu read access offset %08x mem_mask %04x cs %d\n", pc, offset*2, mem_mask, cs); |
| r14998 | r14999 | |
| 153 | 153 | { |
| 154 | 154 | case 0x0240: |
| 155 | 155 | retvalue = 0x00ff; |
| 156 | ||
| 156 | ||
| 157 | 157 | if (mem_mask&0xff00) |
| 158 | 158 | { |
| 159 | 159 | retvalue |= (sec.read_data_line() << (6+8)); |
| r14998 | r14999 | |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | // others drive 7-segs with it.. so rendering it there as well in our debug layouts |
| 256 | ||
| 256 | ||
| 257 | 257 | // todo: reorder properly! |
| 258 | 258 | UINT8 bf7segdata = BITSWAP8(data,7,6,5,4,3,2,1,0); |
| 259 | 259 | output_set_digit_value(offset, bf7segdata); |
| r14998 | r14999 | |
| 293 | 293 | |
| 294 | 294 | if (addr < 0x0200) |
| 295 | 295 | { |
| 296 | ||
| 296 | ||
| 297 | 297 | if (mem_mask&0xff00) |
| 298 | 298 | { |
| 299 | 299 | logerror("lamp write mem_mask&0xff00 unhandled\n"); |
| r14998 | r14999 | |
| 303 | 303 | { // lamps |
| 304 | 304 | mux_output_w(space, (addr & 0x01f0)>>4, data); |
| 305 | 305 | } |
| 306 | ||
| 306 | ||
| 307 | 307 | } |
| 308 | 308 | else if ((addr >= 0x1000) && (addr < 0x1200)) |
| 309 | 309 | { |
| r14998 | r14999 | |
| 324 | 324 | case 0x0330: |
| 325 | 325 | logerror("%08x meter write %04x\n",pc, data); |
| 326 | 326 | //m_meterstatus = (m_meterstatus&0xc0) | (data & 0x3f); |
| 327 | sec.write_clock_line(~data&0x20); | |
| 327 | sec.write_clock_line(~data&0x20); | |
| 328 | 328 | break; |
| 329 | 329 | |
| 330 | 330 | case 0x1248: |
| r14998 | r14999 | |
| 491 | 491 | |
| 492 | 492 | void bfm_sc4_68307_portb_w(address_space *space, bool dedicated, UINT16 data, UINT16 line_mask) |
| 493 | 493 | { |
| 494 | // | |
| 494 | // if (dedicated == false) | |
| 495 | 495 | { |
| 496 | 496 | int pc = cpu_get_pc(&space->device()); |
| 497 | 497 | //m68ki_cpu_core *m68k = m68k_get_safe_token(&space->device()); |
| r14998 | r14999 | |
| 621 | 621 | UINT8 bfm_sc4_duart_input_r(device_t *device) |
| 622 | 622 | { |
| 623 | 623 | sc4_state *state = device->machine().driver_data<sc4_state>(); |
| 624 | // | |
| 624 | // printf("bfm_sc4_duart_input_r\n"); | |
| 625 | 625 | return state->m_optic_pattern; |
| 626 | 626 | } |
| 627 | 627 | |
| 628 | 628 | void bfm_sc4_duart_output_w(device_t *device, UINT8 data) |
| 629 | 629 | { |
| 630 | // | |
| 630 | // logerror("bfm_sc4_duart_output_w\n"); | |
| 631 | 631 | sc4_state *state = device->machine().driver_data<sc4_state>(); |
| 632 | 632 | |
| 633 | 633 | state->m_reel56_latch = data; |
| r14998 | r14999 | |
|---|---|---|
| 4048 | 4048 | segas32_state *state = machine.driver_data<segas32_state>(); |
| 4049 | 4049 | segas32_common_init(machine, read16_delegate(FUNC(segas32_state::extra_custom_io_r),state), write16_delegate()); |
| 4050 | 4050 | |
| 4051 | /* install protection handlers */ | |
| 4051 | /* install protection handlers */ | |
| 4052 | 4052 | machine.device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0xa00100, 0xa0011f, read16_delegate(FUNC(segas32_state::arf_wakeup_protection_r),state)); |
| 4053 | 4053 | machine.device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa00000, 0xa00fff, read16_delegate(FUNC(segas32_state::arabfgt_protection_r),state), write16_delegate(FUNC(segas32_state::arabfgt_protection_w),state)); |
| 4054 | 4054 | } |
| r14998 | r14999 | |
| 4120 | 4120 | segas32_state *state = machine.driver_data<segas32_state>(); |
| 4121 | 4121 | segas32_common_init(machine, read16_delegate(FUNC(segas32_state::extra_custom_io_r),state), write16_delegate()); |
| 4122 | 4122 | |
| 4123 | decrypt_ga2_protrom(machine); | |
| 4123 | decrypt_ga2_protrom(machine); | |
| 4124 | 4124 | machine.device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa00000, 0xa00fff, read16_delegate(FUNC(segas32_state::ga2_dpram_r),state), write16_delegate(FUNC(segas32_state::ga2_dpram_w),state)); |
| 4125 | 4125 | } |
| 4126 | 4126 |
| r14998 | r14999 | |
|---|---|---|
| 310 | 310 | break; |
| 311 | 311 | |
| 312 | 312 | case 3: /* 380e - SND irq */ |
| 313 | soundlatch_byte_w( | |
| 313 | soundlatch_byte_w( | |
| 314 | 314 | device_set_input_line(m_snd_cpu, m_sound_irq, (m_sound_irq == INPUT_LINE_NMI) ? PULSE_LINE : HOLD_LINE); |
| 315 | 315 | break; |
| 316 | 316 |
| r14998 | r14999 | |
|---|---|---|
| 117 | 117 | DECLARE_WRITE64_MEMBER(v1_fb_w); |
| 118 | 118 | DECLARE_WRITE16_MEMBER(crtc_w); |
| 119 | 119 | DECLARE_DIRECT_UPDATE_MEMBER(vcombat_vid_0_direct_handler); |
| 120 | DECLARE_DIRECT_UPDATE_MEMBER(vcombat_vid_1_direct_handler); | |
| 120 | DECLARE_DIRECT_UPDATE_MEMBER(vcombat_vid_1_direct_handler); | |
| 121 | 121 | }; |
| 122 | 122 | |
| 123 | 123 | static UINT32 update_screen(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect, int index) |
| r14998 | r14999 | |
|---|---|---|
| 2528 | 2528 | |
| 2529 | 2529 | state_save_register_global(machine, input_mux); |
| 2530 | 2530 | state_save_register_global(machine, last_op4); |
| 2531 | ||
| 2531 | ||
| 2532 | 2532 | midway_ssio_device *ssio = machine.device<midway_ssio_device>("ssio"); |
| 2533 | 2533 | if (ssio != NULL) |
| 2534 | 2534 | { |
| r14998 | r14999 | |
|---|---|---|
| 30 | 30 | : driver_device(mconfig, type, tag), |
| 31 | 31 | m_bg_videoram(*this, "bg_videoram"), |
| 32 | 32 | m_fg_videoram(*this, "fg_videoram"), |
| 33 | m_spriteram(*this, "spriteram") { | |
| 34 | ||
| 33 | m_spriteram(*this, "spriteram") { | |
| 35 | 34 | |
| 35 | ||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /* memory pointers */ |
| r14998 | r14999 | |
| 50 | 50 | { |
| 51 | 51 | m_silvmil_tilebank[m_whichbank] = (data>>8) & 0x1f; |
| 52 | 52 | |
| 53 | // | |
| 53 | // printf("%08x tilebank_w %04x (which = %04x)\n",pc, data, m_whichbank); | |
| 54 | 54 | m_fg_layer->mark_all_dirty(); |
| 55 | 55 | m_bg_layer->mark_all_dirty(); |
| 56 | 56 | } |
| r14998 | r14999 | |
| 102 | 102 | |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | ||
| 106 | 105 | |
| 106 | ||
| 107 | 107 | }; |
| 108 | 108 | |
| 109 | 109 |
| r14998 | r14999 | |
|---|---|---|
| 287 | 287 | UINT16 m_hCellCount; |
| 288 | 288 | UINT16 m_vPosition; |
| 289 | 289 | UINT16 m_hPosition; |
| 290 | ||
| 290 | ||
| 291 | 291 | required_device<cpu_device> m_maincpu; |
| 292 | 292 | required_device<cpu_device> m_subcpu; |
| 293 | 293 | required_device<cpu_device> m_soundcpu; |
| r14998 | r14999 | |
|---|---|---|
| 1048 | 1048 | MCFG_SCREEN_ADD("screen", RASTER) |
| 1049 | 1049 | MCFG_SCREEN_RAW_PARAMS(STDRES_PIXEL_CLOCK*2, 505, 0, 399, 289, 0, 253) |
| 1050 | 1050 | MCFG_SCREEN_UPDATE_STATIC(tms340x0_ind16) |
| 1051 | ||
| 1051 | ||
| 1052 | 1052 | /* sound hardware */ |
| 1053 | 1053 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 1054 | 1054 | MACHINE_CONFIG_END |
| r14998 | r14999 | |
| 1071 | 1071 | /* basic machine hardware */ |
| 1072 | 1072 | MCFG_CPU_MODIFY("maincpu") |
| 1073 | 1073 | MCFG_CPU_CLOCK(FAST_MASTER_CLOCK) |
| 1074 | ||
| 1074 | ||
| 1075 | 1075 | MCFG_WILLIAMS_CVSD_SOUND_ADD("cvsd") |
| 1076 | 1076 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1077 | 1077 | |
| r14998 | r14999 | |
| 1098 | 1098 | /* basic machine hardware */ |
| 1099 | 1099 | MCFG_CPU_MODIFY("maincpu") |
| 1100 | 1100 | MCFG_CPU_CLOCK(FAST_MASTER_CLOCK) |
| 1101 | ||
| 1101 | ||
| 1102 | 1102 | MCFG_WILLIAMS_ADPCM_SOUND_ADD("adpcm") |
| 1103 | 1103 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1104 | 1104 | |
| r14998 | r14999 | |
| 1113 | 1113 | /* basic machine hardware */ |
| 1114 | 1114 | MCFG_CPU_MODIFY("maincpu") |
| 1115 | 1115 | MCFG_CPU_CLOCK(FASTER_MASTER_CLOCK) |
| 1116 | ||
| 1116 | ||
| 1117 | 1117 | MCFG_WILLIAMS_ADPCM_SOUND_ADD("adpcm") |
| 1118 | 1118 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1119 | 1119 |
| r14998 | r14999 | |
|---|---|---|
| 20 | 20 | public: |
| 21 | 21 | astrafr_state(const machine_config &mconfig, device_type type, const char *tag) |
| 22 | 22 | : driver_device(mconfig, type, tag) |
| 23 | { | |
| 23 | { | |
| 24 | 24 | fgpa_first_read_addr = 0xffff; |
| 25 | 25 | fgpa_rom_write_addr = 0xffff; |
| 26 | 26 | fgpa_after_rom_write_addr = 0xffff; |
| r14998 | r14999 | |
| 34 | 34 | DECLARE_READ8_MEMBER( astra_fgpa_r ) |
| 35 | 35 | { |
| 36 | 36 | int pc = cpu_get_pc(&space.device()); |
| 37 | ||
| 37 | ||
| 38 | 38 | if (offset==fgpa_first_read_addr) |
| 39 | 39 | { |
| 40 | 40 | return 0xff; |
| r14998 | r14999 | |
| 45 | 45 | return 0xff; |
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | ||
| 48 | ||
| 49 | 49 | DECLARE_WRITE8_MEMBER( astra_fgpa_w ) |
| 50 | 50 | { |
| 51 | 51 | int pc = cpu_get_pc(&space.device()); |
| 52 | ||
| 52 | ||
| 53 | 53 | if (offset==fgpa_rom_write_addr) |
| 54 | 54 | { |
| 55 | 55 | // the games write most of the ROM data to a port |
| r14998 | r14999 | |
| 65 | 65 | DECLARE_READ8_MEMBER( astra_fgpa_slave_r ) |
| 66 | 66 | { |
| 67 | 67 | int pc = cpu_get_pc(&space.device()); |
| 68 | ||
| 68 | ||
| 69 | 69 | if (offset==fgpa_first_read_addr) |
| 70 | 70 | { |
| 71 | 71 | return 0xff; |
| r14998 | r14999 | |
| 76 | 76 | return 0xff; |
| 77 | 77 | } |
| 78 | 78 | } |
| 79 | ||
| 79 | ||
| 80 | 80 | DECLARE_WRITE8_MEMBER( astra_fgpa_slave_w ) |
| 81 | 81 | { |
| 82 | 82 | int pc = cpu_get_pc(&space.device()); |
| 83 | ||
| 83 | ||
| 84 | 84 | if (offset==fgpa_rom_write_addr) |
| 85 | 85 | { |
| 86 | 86 | // the games write most of the ROM data to a port |
| r14998 | r14999 | |
| 197 | 197 | static MACHINE_START( astra_57 ) |
| 198 | 198 | { |
| 199 | 199 | astrafr_state *state = machine.driver_data<astrafr_state>(); |
| 200 | // state->fgpa_after_rom_write_addr = 0x20; | |
| 201 | // state->fgpa_first_read_addr = 0x23; | |
| 200 | // state->fgpa_after_rom_write_addr = 0x20; | |
| 201 | // state->fgpa_first_read_addr = 0x23; | |
| 202 | 202 | state->fgpa_rom_write_addr = 0x57; |
| 203 | 203 | } |
| 204 | 204 | |
| r14998 | r14999 | |
| 2133 | 2133 | GAME( 200?, as_rtrg, as_rtr , astra_single, astrafr, astradec, ROT0, "Astra", "Ready To Roll (Astra, V200, alt)" , GAME_IS_SKELETON_MECHANICAL) |
| 2134 | 2134 | GAME( 200?, as_rtrh, as_rtr , astra_single_2e, astrafr, astradec, ROT0, "Astra", "Ready To Roll (Astra, V202)" , GAME_IS_SKELETON_MECHANICAL) |
| 2135 | 2135 | |
| 2136 | GAME( 200?, as_rab, 0 , astra_single_2e, astrafr, 0, | |
| 2136 | GAME( 200?, as_rab, 0 , astra_single_2e, astrafr, 0, | |
| 2137 | 2137 | GAME( 200?, as_raba, as_rab , astra_single, astrafr, 0, ROT0, "Astra", "Ring A Bell (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) |
| 2138 | 2138 | GAME( 200?, as_rabb, as_rab , astra_single, astrafr, 0, ROT0, "Astra", "Ring A Bell (Astra, V107)" , GAME_IS_SKELETON_MECHANICAL) |
| 2139 | 2139 | GAME( 200?, as_rabc, as_rab , astra_single, astrafr, 0, ROT0, "Astra", "Ring A Bell (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) |
| 2140 | GAME( 200?, as_rbg, 0 , astra_single_2e, astrafr, 0, | |
| 2140 | GAME( 200?, as_rbg, 0 , astra_single_2e, astrafr, 0, | |
| 2141 | 2141 | GAME( 200?, as_rbga, as_rab , astra_single, astrafr, 0, ROT0, "Astra", "River Boat Gambler (Astra, V303)" , GAME_IS_SKELETON_MECHANICAL) |
| 2142 | 2142 | GAME( 200?, as_rbgb, as_rab , astra_single, astrafr, 0, ROT0, "Astra", "River Boat Gambler (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) |
| 2143 | 2143 | GAME( 200?, as_rbgc, as_rab , astra_single, astrafr, 0, ROT0, "Astra", "River Boat Gambler (Astra, V102)" , GAME_IS_SKELETON_MECHANICAL) |
| 2144 | 2144 | GAME( 200?, as_rbgd, as_rab , astra_single, astrafr, 0, ROT0, "Astra", "River Boat Gambler (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) |
| 2145 | 2145 | GAME( 200?, as_rbge, as_rab , astra_single, astrafr, 0, ROT0, "Astra", "River Boat Gambler (Astra, V008)" , GAME_IS_SKELETON_MECHANICAL) |
| 2146 | GAME( 200?, as_rbglo, 0 , astrafr_dual_37, astrafr, astradec_sml_dual, | |
| 2146 | GAME( 200?, as_rbglo, 0 , astrafr_dual_37, astrafr, astradec_sml_dual, | |
| 2147 | 2147 | GAME( 200?, as_rox, 0 , astra_single, astrafr, 0, ROT0, "Astra", "Roll X (Astra, V006)" , GAME_IS_SKELETON_MECHANICAL) |
| 2148 | GAME( 200?, as_csv, 0 , astra_single_37, astrafr, 0, | |
| 2148 | GAME( 200?, as_csv, 0 , astra_single_37, astrafr, 0, | |
| 2149 | 2149 | GAME( 200?, as_sltcl, 0 , astra_single, astrafr, 0, ROT0, "Astra", "Slots Classic (?) (Astra)" , GAME_IS_SKELETON_MECHANICAL) |
| 2150 | 2150 | GAME( 200?, as_stp, 0 , astra_single_2e, astrafr, astradec, ROT0, "Astra", "Stampede (Astra, V103)" , GAME_IS_SKELETON_MECHANICAL) |
| 2151 | 2151 | GAME( 200?, as_stpa, as_stp , astra_single, astrafr, astradec, ROT0, "Astra", "Stampede (Astra, V102)" , GAME_IS_SKELETON_MECHANICAL) |
| r14998 | r14999 | |
| 2160 | 2160 | GAME( 200?, as_slde, as_sld , astra_single, astrafr, 0, ROT0, "Astra", "Super Little Devil (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) |
| 2161 | 2161 | GAME( 200?, as_tem, 0 , astra_single_alt_37, astrafr, astradec, ROT0, "Astra", "Temptation (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) |
| 2162 | 2162 | GAME( 200?, as_tema, as_tem , astra_single_alt_37, astrafr, astradec, ROT0, "Astra", "Temptation (Astra, V006)" , GAME_IS_SKELETON_MECHANICAL) |
| 2163 | GAME( 200?, as_tbl, 0 , astra_single_2e, astrafr, 0, | |
| 2163 | GAME( 200?, as_tbl, 0 , astra_single_2e, astrafr, 0, | |
| 2164 | 2164 | GAME( 200?, as_tbla, as_tbl , astra_single, astrafr, 0, ROT0, "Astra", "Triple Bells (Astra, V105)" , GAME_IS_SKELETON_MECHANICAL) |
| 2165 | 2165 | GAME( 200?, as_tblb, as_tbl , astra_single, astrafr, 0, ROT0, "Astra", "Triple Bells (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) |
| 2166 | 2166 | GAME( 200?, as_tblc, as_tbl , astra_single, astrafr, 0, ROT0, "Astra", "Triple Bells (Astra, V103)" , GAME_IS_SKELETON_MECHANICAL) |
| r14998 | r14999 | |
| 2171 | 2171 | |
| 2172 | 2172 | GAME( 200?, as_twp, 0 , astra_single, astrafr, 0, ROT0, "Astra", "Twin Pots (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) |
| 2173 | 2173 | GAME( 200?, as_twpa, as_twp , astra_single, astrafr, 0, ROT0, "Astra", "Twin Pots (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) |
| 2174 | GAME( 200?, as_vn, 0 , astrafr_dual_alt_37, astrafr, astradec_dual, | |
| 2174 | GAME( 200?, as_vn, 0 , astrafr_dual_alt_37, astrafr, astradec_dual, | |
| 2175 | 2175 | GAME( 200?, as_vcv, 0 , astra_single, astrafr, astradec, ROT0, "Astra", "Viva Cash Vegas (Astra, V005)" , GAME_IS_SKELETON_MECHANICAL) |
| 2176 | 2176 | GAME( 200?, as_vcva, as_vcv , astra_single, astrafr, astradec, ROT0, "Astra", "Viva Cash Vegas (Astra, V107)" , GAME_IS_SKELETON_MECHANICAL) |
| 2177 | 2177 | GAME( 200?, as_vcvb, as_vcv , astra_single, astrafr, astradec, ROT0, "Astra", "Viva Cash Vegas (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) |
| r14998 | r14999 | |
|---|---|---|
| 12 | 12 | emulation see bfm_sc4h.c |
| 13 | 13 | |
| 14 | 14 | |
| 15 | note: default Jackpot keys are set to whatever value the game | |
| 16 | mentions it should be using with none present, many | |
| 17 | games accept multiple keys | |
| 15 | note: default Jackpot keys are set to whatever value the game | |
| 16 | mentions it should be using with none present, many | |
| 17 | games accept multiple keys | |
| 18 | 18 | |
| 19 | 19 | */ |
| 20 | 20 | |
| r14998 | r14999 | |
| 31 | 31 | |
| 32 | 32 | if (rom[3] != 0x6612) |
| 33 | 33 | return false; |
| 34 | ||
| 34 | ||
| 35 | 35 | if (rom[7] != 0x0c81) |
| 36 | 36 | return false; |
| 37 | ||
| 37 | ||
| 38 | 38 | if (rom[10] != 0x66ea) |
| 39 | 39 | return false; |
| 40 | 40 | } |
| r14998 | r14999 | |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /* default reels */ |
| 175 | const stepper_interface* default_reel_configs[6] = | |
| 175 | const stepper_interface* default_reel_configs[6] = | |
| 176 | 176 | { |
| 177 | 177 | &starpoint_interface_48step, |
| 178 | 178 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 222 | 222 | if (!found) |
| 223 | 223 | printf("No suitable string found\n"); |
| 224 | 224 | |
| 225 | ||
| 225 | ||
| 226 | 226 | sc4_state *state = machine.driver_data<sc4_state>(); |
| 227 | 227 | |
| 228 | 228 | state->m_reel_setup = default_reel_configs; |
| r14998 | r14999 | |
| 22752 | 22752 | GAME( 200?, sc4pstato ,sc4pstat, sc4, sc4, sc4, ROT0, "QPS","Paystation (V042) (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL ) |
| 22753 | 22753 | GAME( 200?, sc4pstatq ,sc4pstat, sc4, sc4, sc4, ROT0, "QPS","Paystation (V042) (Qps) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL ) |
| 22754 | 22754 | |
| 22755 | const stepper_interface* sc4cvani_reel_configs[6] = | |
| 22755 | const stepper_interface* sc4cvani_reel_configs[6] = | |
| 22756 | 22756 | { |
| 22757 | 22757 | &starpoint_interface_48step, |
| 22758 | 22758 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 22781 | 22781 | GAME( 200?, sc4cvanih ,sc4cvani, sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL ) |
| 22782 | 22782 | GAME( 200?, sc4cvanii ,sc4cvani, sc4, sc4, sc4cvani, ROT0, "QPS","Cashvania (Qps) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL ) |
| 22783 | 22783 | |
| 22784 | const stepper_interface* sc4cvclb_reel_configs[6] = | |
| 22784 | const stepper_interface* sc4cvclb_reel_configs[6] = | |
| 22785 | 22785 | { |
| 22786 | 22786 | &starpoint_interface_48step, |
| 22787 | 22787 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 22893 | 22893 | GAME( 200?, sc4bluee ,sc4blue, sc4, sc4, sc4, ROT0, "Mazooma","Blue Rinse (Mazooma) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL ) |
| 22894 | 22894 | |
| 22895 | 22895 | |
| 22896 | const stepper_interface* sc4bonbx_reel_configs[6] = | |
| 22896 | const stepper_interface* sc4bonbx_reel_configs[6] = | |
| 22897 | 22897 | { |
| 22898 | 22898 | &starpoint_interface_200step_reel, |
| 22899 | 22899 | &starpoint_interface_200step_reel, |
| r14998 | r14999 | |
| 24088 | 24088 | // PR2085 LUCKY SEVENS LUCKY SEVENS ARCADE LUCKY SOUNDS LUCKY SEVENS |
| 24089 | 24089 | GAME( 200?, sc4luck7d ,sc4luck7, sc4, sc4, sc4, ROT0, "Mazooma","Lucky 7s (Mazooma) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL ) |
| 24090 | 24090 | |
| 24091 | const stepper_interface* sc4luckb_reel_configs[6] = | |
| 24091 | const stepper_interface* sc4luckb_reel_configs[6] = | |
| 24092 | 24092 | { |
| 24093 | 24093 | &starpoint_interface_48step, |
| 24094 | 24094 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 24425 | 24425 | // PR1205 PAY TIME 95004224 PAYTIME PR7156 PAY TIME |
| 24426 | 24426 | GAME( 200?, sc4paytm ,0, sc4, sc4, sc4, ROT0, "BFM","Pay Time (Bellfruit) (Scorpion 4)", GAME_IS_SKELETON_MECHANICAL ) // Not English |
| 24427 | 24427 | |
| 24428 | const stepper_interface* sc4pgold_reel_configs[6] = | |
| 24428 | const stepper_interface* sc4pgold_reel_configs[6] = | |
| 24429 | 24429 | { |
| 24430 | 24430 | &starpoint_interface_48step, |
| 24431 | 24431 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 24734 | 24734 | GAME( 200?, sc4rbankc ,sc4rbank, sc4, sc4, sc4, ROT0, "BFM","Royle Banker (Bellfruit) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL ) |
| 24735 | 24735 | |
| 24736 | 24736 | |
| 24737 | const stepper_interface* sc4royle_reel_configs[6] = | |
| 24737 | const stepper_interface* sc4royle_reel_configs[6] = | |
| 24738 | 24738 | { |
| 24739 | 24739 | &starpoint_interface_48step, |
| 24740 | 24740 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 25557 | 25557 | GAME( 200?, sc4bobh ,sc4bob, sc4, sc4, sc4, ROT0, "Mazooma","Bobby Dazzler (Mazooma) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL ) |
| 25558 | 25558 | GAME( 200?, sc4bobi ,sc4bob, sc4, sc4, sc4, ROT0, "Mazooma","Bobby Dazzler (Mazooma) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL ) |
| 25559 | 25559 | |
| 25560 | const stepper_interface* sc4bull_reel_configs[6] = | |
| 25560 | const stepper_interface* sc4bull_reel_configs[6] = | |
| 25561 | 25561 | { |
| 25562 | 25562 | &starpoint_interface_48step, |
| 25563 | 25563 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 25741 | 25741 | GAME( 200?, sc4crnjw ,0, sc4, sc4, sc4, ROT0, "BFM","Crown Jewels (Bellfruit) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL ) |
| 25742 | 25742 | GAME( 200?, sc4crnjwa ,sc4crnjw, sc4, sc4, sc4, ROT0, "BFM","Crown Jewels (Bellfruit) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL ) |
| 25743 | 25743 | |
| 25744 | const stepper_interface* sc4dnd_reel_configs[6] = | |
| 25744 | const stepper_interface* sc4dnd_reel_configs[6] = | |
| 25745 | 25745 | { |
| 25746 | 25746 | &starpoint_interface_48step, |
| 25747 | 25747 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 25790 | 25790 | GAME( 200?, sc4dndk ,sc4dnd, sc4, sc4dnd35, sc4dnd, ROT0, "BFM","Deal Or No Deal (Bellfruit) (Scorpion 4) (DONL428, set 1)", GAME_IS_SKELETON_MECHANICAL )// DONL 428 |
| 25791 | 25791 | GAME( 200?, sc4dndm ,sc4dnd, sc4, sc4dnd35, sc4dnd, ROT0, "BFM","Deal Or No Deal (Bellfruit) (Scorpion 4) (DONL428, set 2)", GAME_IS_SKELETON_MECHANICAL )// DONL 428 |
| 25792 | 25792 | |
| 25793 | const stepper_interface* sc4dndcs_reel_configs[6] = | |
| 25793 | const stepper_interface* sc4dndcs_reel_configs[6] = | |
| 25794 | 25794 | { |
| 25795 | 25795 | &starpoint_interface_48step, |
| 25796 | 25796 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 25820 | 25820 | GAME( 200?, sc4dndcsa ,sc4dndcs, sc4, sc4dndcs5, sc4dndcs, ROT0, "BFM","Deal Or No Deal Classic (Bellfruit) (Scorpion 4) (CLDD212, set 1)", GAME_IS_SKELETON_MECHANICAL ) // CLDD 212 |
| 25821 | 25821 | GAME( 200?, sc4dndcsc ,sc4dndcs, sc4, sc4dndcs5, sc4dndcs, ROT0, "BFM","Deal Or No Deal Classic (Bellfruit) (Scorpion 4) (CLDD212, set 2)", GAME_IS_SKELETON_MECHANICAL ) // CLDD 212 |
| 25822 | 25822 | |
| 25823 | const stepper_interface* sc4dndbb_reel_configs[6] = | |
| 25823 | const stepper_interface* sc4dndbb_reel_configs[6] = | |
| 25824 | 25824 | { |
| 25825 | 25825 | &starpoint_interface_48step, |
| 25826 | 25826 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 25864 | 25864 | GAME( 200?, sc4dndbbf ,sc4dndbb, sc4, sc4dndbb70, sc4dndbb, ROT0, "BFM","Deal Or No Deal Break The Bank (Bellfruit) (Scorpion 4) (CRBE572, set 1)", GAME_IS_SKELETON_MECHANICAL ) // CRBE 572 |
| 25865 | 25865 | GAME( 200?, sc4dndbbi ,sc4dndbb, sc4, sc4dndbb70, sc4dndbb, ROT0, "BFM","Deal Or No Deal Break The Bank (Bellfruit) (Scorpion 4) (CRBE572, set 2)", GAME_IS_SKELETON_MECHANICAL )// CRBE 572 |
| 25866 | 25866 | |
| 25867 | const stepper_interface* sc4dndcl_reel_configs[6] = | |
| 25867 | const stepper_interface* sc4dndcl_reel_configs[6] = | |
| 25868 | 25868 | { |
| 25869 | 25869 | &starpoint_interface_48step, |
| 25870 | 25870 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 25898 | 25898 | // PR1949 CLUB DEAL OR NO DEAL DEAL OR NO DEAL CLUB PR1949 DEAL O N D SOUNDS11 |
| 25899 | 25899 | GAME( 200?, sc4dndclc ,sc4dndcl, sc4, sc4, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL181, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 181 CLUB $500 (no key req?) |
| 25900 | 25900 | GAME( 200?, sc4dndclg ,sc4dndcl, sc4, sc4, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL181, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 181 CLUB $500 (no key req?) |
| 25901 | GAME( 200?, sc4dndcla ,sc4dndcl, sc4, sc4dndcl500, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL212, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 212 CLUB £500 | |
| 25902 | GAME( 200?, sc4dndcle ,sc4dndcl, sc4, sc4dndcl500, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL212, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 212 CLUB £500 | |
| 25903 | GAME( 200?, sc4dndcl ,0, sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL313, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 313 CLUB £250 | |
| 25904 | GAME( 200?, sc4dndcld ,sc4dndcl, sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL313, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 313 CLUB £250 | |
| 25905 | GAME( 200?, sc4dndclb ,sc4dndcl, sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL391, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 391 CLUB £250 | |
| 25906 | GAME( 200?, sc4dndclf ,sc4dndcl, sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL391, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 391 CLUB £250 | |
| 25901 | GAME( 200?, sc4dndcla ,sc4dndcl, sc4, sc4dndcl500, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL212, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 212 CLUB ?500 | |
| 25902 | GAME( 200?, sc4dndcle ,sc4dndcl, sc4, sc4dndcl500, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL212, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 212 CLUB ?500 | |
| 25903 | GAME( 200?, sc4dndcl ,0, sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL313, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 313 CLUB ?250 | |
| 25904 | GAME( 200?, sc4dndcld ,sc4dndcl, sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL313, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 313 CLUB ?250 | |
| 25905 | GAME( 200?, sc4dndclb ,sc4dndcl, sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL391, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 391 CLUB ?250 | |
| 25906 | GAME( 200?, sc4dndclf ,sc4dndcl, sc4, sc4dndcl250, sc4dndcl, ROT0, "BFM","Deal Or No Deal Club (Bellfruit) (Scorpion 4) (DNDL391, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNDL 391 CLUB ?250 | |
| 25907 | 25907 | |
| 25908 | const stepper_interface* sc4dnddd_reel_configs[6] = | |
| 25908 | const stepper_interface* sc4dnddd_reel_configs[6] = | |
| 25909 | 25909 | { |
| 25910 | 25910 | &starpoint_interface_48step, |
| 25911 | 25911 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 25947 | 25947 | GAME( 200?, sc4dndddc ,sc4dnddd, sc4, sc4dnddd70, sc4dnddd, ROT0, "BFM","Deal Or No Deal Double Deal Or No Deal (Bellfruit) (Scorpion 4) (DDNO573, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DDNO 573 |
| 25948 | 25948 | GAME( 200?, sc4dndddg ,sc4dnddd, sc4, sc4dnddd70, sc4dnddd, ROT0, "BFM","Deal Or No Deal Double Deal Or No Deal (Bellfruit) (Scorpion 4) (DDNO573, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DDNO 573 |
| 25949 | 25949 | |
| 25950 | const stepper_interface* sc4dndhf_reel_configs[6] = | |
| 25950 | const stepper_interface* sc4dndhf_reel_configs[6] = | |
| 25951 | 25951 | { |
| 25952 | 25952 | &starpoint_interface_48step, |
| 25953 | 25953 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 25990 | 25990 | GAME( 200?, sc4dndhfc ,sc4dndhf, sc4, sc4dndhf70, sc4dndhf, ROT0, "BFM","Deal Or No Deal Hall Of Fame (Bellfruit) (Scorpion 4) (DNHA571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DNHA 571 |
| 25991 | 25991 | GAME( 200?, sc4dndhfe ,sc4dndhf, sc4, sc4dndhf70, sc4dndhf, ROT0, "BFM","Deal Or No Deal Hall Of Fame (Bellfruit) (Scorpion 4) (DNHA571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DNHA 571 |
| 25992 | 25992 | |
| 25993 | const stepper_interface* sc4dndys_reel_configs[6] = | |
| 25993 | const stepper_interface* sc4dndys_reel_configs[6] = | |
| 25994 | 25994 | { |
| 25995 | 25995 | &starpoint_interface_48step, |
| 25996 | 25996 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26028 | 26028 | GAME( 200?, sc4dndysb ,sc4dndys, sc4, sc4dndys70, sc4dndys, ROT0, "BFM","Deal Or No Deal It's Your Show (Bellfruit) (Scorpion 4) (DOBO571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DOBO 571 |
| 26029 | 26029 | GAME( 200?, sc4dndysa ,sc4dndys, sc4, sc4dndys35, sc4dndys, ROT0, "BFM","Deal Or No Deal It's Your Show (Bellfruit) (Scorpion 4) (DOBO474)", GAME_IS_SKELETON_MECHANICAL ) // DOBO 474 |
| 26030 | 26030 | |
| 26031 | const stepper_interface* sc4dndlp_reel_configs[6] = | |
| 26031 | const stepper_interface* sc4dndlp_reel_configs[6] = | |
| 26032 | 26032 | { |
| 26033 | 26033 | &starpoint_interface_48step, |
| 26034 | 26034 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26062 | 26062 | GAME( 200?, sc4dndlpb ,sc4dndlp, sc4, sc4dndlp70, sc4dndlp, ROT0, "BFM","Deal Or No Deal Let's Play Deal Or No Deal (Bellfruit) (Scorpion 4) (LPDN573, set 1)", GAME_IS_SKELETON_MECHANICAL )// LPDN 573 |
| 26063 | 26063 | GAME( 200?, sc4dndlpe ,sc4dndlp, sc4, sc4dndlp70, sc4dndlp, ROT0, "BFM","Deal Or No Deal Let's Play Deal Or No Deal (Bellfruit) (Scorpion 4) (LPDN573, set 2)", GAME_IS_SKELETON_MECHANICAL )// LPDN 573 |
| 26064 | 26064 | |
| 26065 | const stepper_interface* sc4dndra_reel_configs[6] = | |
| 26065 | const stepper_interface* sc4dndra_reel_configs[6] = | |
| 26066 | 26066 | { |
| 26067 | 26067 | &starpoint_interface_48step, |
| 26068 | 26068 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26101 | 26101 | GAME( 200?, sc4dndrac ,sc4dndra, sc4, sc4dndra70, sc4dndra, ROT0, "BFM","Deal Or No Deal Red Alert (Bellfruit) (Scorpion 4) (REDT572, set 1)", GAME_IS_SKELETON_MECHANICAL ) // REDT 572 |
| 26102 | 26102 | GAME( 200?, sc4dndrae ,sc4dndra, sc4, sc4dndra70, sc4dndra, ROT0, "BFM","Deal Or No Deal Red Alert (Bellfruit) (Scorpion 4) (REDT572, set 2)", GAME_IS_SKELETON_MECHANICAL ) // REDT 572 |
| 26103 | 26103 | |
| 26104 | const stepper_interface* sc4dndbd_reel_configs[6] = | |
| 26104 | const stepper_interface* sc4dndbd_reel_configs[6] = | |
| 26105 | 26105 | { |
| 26106 | 26106 | &starpoint_interface_48step, |
| 26107 | 26107 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26141 | 26141 | GAME( 200?, sc4dndbdc ,sc4dndbd, sc4, sc4dndbd70, sc4dndbd, ROT0, "BFM","Deal Or No Deal The Big Deal (Bellfruit) (Scorpion 4) (BGDA571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // BGDA 571 |
| 26142 | 26142 | GAME( 200?, sc4dndbde ,sc4dndbd, sc4, sc4dndbd70, sc4dndbd, ROT0, "BFM","Deal Or No Deal The Big Deal (Bellfruit) (Scorpion 4) (BGDA571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // BGDA 571 |
| 26143 | 26143 | |
| 26144 | const stepper_interface* sc4dndbr_reel_configs[6] = | |
| 26144 | const stepper_interface* sc4dndbr_reel_configs[6] = | |
| 26145 | 26145 | { |
| 26146 | 26146 | &starpoint_interface_48step, |
| 26147 | 26147 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26183 | 26183 | GAME( 200?, sc4dndbre ,sc4dndbr, sc4, sc4dndbr70, sc4dndbr, ROT0, "BFM","Deal Or No Deal The Big Reds (Bellfruit) (Scorpion 4) (BIGD571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // BIGD 571 |
| 26184 | 26184 | GAME( 200?, sc4dndbrg ,sc4dndbr, sc4, sc4dndbr70, sc4dndbr, ROT0, "BFM","Deal Or No Deal The Big Reds (Bellfruit) (Scorpion 4) (BIGD571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // BIGD 571 |
| 26185 | 26185 | |
| 26186 | const stepper_interface* sc4dndcc_reel_configs[6] = | |
| 26186 | const stepper_interface* sc4dndcc_reel_configs[6] = | |
| 26187 | 26187 | { |
| 26188 | 26188 | &starpoint_interface_48step, |
| 26189 | 26189 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26224 | 26224 | GAME( 200?, sc4dndccd ,sc4dndcc, sc4, sc4dndcc70, sc4dndcc, ROT0, "BFM","Deal Or No Deal The Crazy Chair (Bellfruit) (Scorpion 4) (CRZR571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // CRZR 571 |
| 26225 | 26225 | GAME( 200?, sc4dndccf ,sc4dndcc, sc4, sc4dndcc70, sc4dndcc, ROT0, "BFM","Deal Or No Deal The Crazy Chair (Bellfruit) (Scorpion 4) (CRZR571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // CRZR 571 |
| 26226 | 26226 | |
| 26227 | const stepper_interface* sc4dnddw_reel_configs[6] = | |
| 26227 | const stepper_interface* sc4dnddw_reel_configs[6] = | |
| 26228 | 26228 | { |
| 26229 | 26229 | &starpoint_interface_48step, |
| 26230 | 26230 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26265 | 26265 | GAME( 200?, sc4dnddwe ,sc4dnddw, sc4, sc4dnddw70, sc4dnddw, ROT0, "BFM","Deal Or No Deal The Deal Wheel (Bellfruit) (Scorpion 4) (DOFN572, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DOFN 572 |
| 26266 | 26266 | GAME( 200?, sc4dnddwg ,sc4dnddw, sc4, sc4dnddw70, sc4dnddw, ROT0, "BFM","Deal Or No Deal The Deal Wheel (Bellfruit) (Scorpion 4) (DOFN572, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DOFN 572 |
| 26267 | 26267 | |
| 26268 | const stepper_interface* sc4dnddf_reel_configs[6] = | |
| 26268 | const stepper_interface* sc4dnddf_reel_configs[6] = | |
| 26269 | 26269 | { |
| 26270 | 26270 | &starpoint_interface_48step, |
| 26271 | 26271 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26304 | 26304 | GAME( 200?, sc4dnddfc ,sc4dnddf, sc4, sc4dnddf70, sc4dnddf, ROT0, "BFM","Deal Or No Deal The Dream Factory (Bellfruit) (Scorpion 4) (TDFC571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // TDFC 571 |
| 26305 | 26305 | GAME( 200?, sc4dnddfe ,sc4dnddf, sc4, sc4dnddf70, sc4dnddf, ROT0, "BFM","Deal Or No Deal The Dream Factory (Bellfruit) (Scorpion 4) (TDFC571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // TDFC 571 |
| 26306 | 26306 | |
| 26307 | const stepper_interface* sc4dndpg_reel_configs[6] = | |
| 26307 | const stepper_interface* sc4dndpg_reel_configs[6] = | |
| 26308 | 26308 | { |
| 26309 | 26309 | &starpoint_interface_48step, |
| 26310 | 26310 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26344 | 26344 | GAME( 200?, sc4dndpgb ,sc4dndpg, sc4, sc4dndpg70, sc4dndpg, ROT0, "BFM","Deal Or No Deal The Perfect Game (Bellfruit) (Scorpion 4) (TPBG572, set 1)", GAME_IS_SKELETON_MECHANICAL ) // TPGB 572 |
| 26345 | 26345 | GAME( 200?, sc4dndpge ,sc4dndpg, sc4, sc4dndpg70, sc4dndpg, ROT0, "BFM","Deal Or No Deal The Perfect Game (Bellfruit) (Scorpion 4) (TPGB572, set 2)", GAME_IS_SKELETON_MECHANICAL ) // TPGB 572 |
| 26346 | 26346 | |
| 26347 | const stepper_interface* sc4dndtp_reel_configs[6] = | |
| 26347 | const stepper_interface* sc4dndtp_reel_configs[6] = | |
| 26348 | 26348 | { |
| 26349 | 26349 | &starpoint_interface_48step, |
| 26350 | 26350 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26385 | 26385 | GAME( 200?, sc4dndtpk ,sc4dndtp, sc4, sc4dndtp35, sc4dndtp, ROT0, "BFM","Deal Or No Deal The Power 5 (Bellfruit) (Scorpion 4) (TPRV41A, set 2)", GAME_IS_SKELETON_MECHANICAL )// TPRV 41A |
| 26386 | 26386 | |
| 26387 | 26387 | |
| 26388 | const stepper_interface* sc4dndww_reel_configs[6] = | |
| 26388 | const stepper_interface* sc4dndww_reel_configs[6] = | |
| 26389 | 26389 | { |
| 26390 | 26390 | &starpoint_interface_48step, |
| 26391 | 26391 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26418 | 26418 | GAME( 200?, sc4dndwwc ,sc4dndww, sc4, sc4dndww35, sc4dndww, ROT0, "BFM","Deal Or No Deal The Walk Of Wealth (Bellfruit) (Scorpion 4) (TWOH415, set 1)", GAME_IS_SKELETON_MECHANICAL ) // TWOH 415 |
| 26419 | 26419 | GAME( 200?, sc4dndwwd ,sc4dndww, sc4, sc4dndww35, sc4dndww, ROT0, "BFM","Deal Or No Deal The Walk Of Wealth (Bellfruit) (Scorpion 4) (TWOH415, set 2)", GAME_IS_SKELETON_MECHANICAL ) // TWOH 415 |
| 26420 | 26420 | |
| 26421 | const stepper_interface* sc4dndcw_reel_configs[6] = | |
| 26421 | const stepper_interface* sc4dndcw_reel_configs[6] = | |
| 26422 | 26422 | { |
| 26423 | 26423 | &starpoint_interface_48step, |
| 26424 | 26424 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26449 | 26449 | GAME( 200?, sc4dndcwa ,sc4dndcw, sc4, sc4dndcw5, sc4dndcw, ROT0, "BFM","Deal Or No Deal The Walk Of Wealth Classic (Bellfruit) (Scorpion 4) (CWOH272, set 1)", GAME_IS_SKELETON_MECHANICAL ) // CWOH 272 |
| 26450 | 26450 | GAME( 200?, sc4dndcwc ,sc4dndcw, sc4, sc4dndcw5, sc4dndcw, ROT0, "BFM","Deal Or No Deal The Walk Of Wealth Classic (Bellfruit) (Scorpion 4) (CWOH272, set 2)", GAME_IS_SKELETON_MECHANICAL ) // CWOH 272 |
| 26451 | 26451 | |
| 26452 | const stepper_interface* sc4dndtr_reel_configs[6] = | |
| 26452 | const stepper_interface* sc4dndtr_reel_configs[6] = | |
| 26453 | 26453 | { |
| 26454 | 26454 | &starpoint_interface_48step, |
| 26455 | 26455 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26478 | 26478 | GAME( 200?, sc4dndtr ,0, sc4, sc4dndtr70, sc4dndtr, ROT0, "BFM","Deal Or No Deal Think Red (Bellfruit) (Scorpion 4) (THRE571, set 1)", GAME_IS_SKELETON_MECHANICAL ) // THRE 571 |
| 26479 | 26479 | GAME( 200?, sc4dndtra ,sc4dndtr, sc4, sc4dndtr70, sc4dndtr, ROT0, "BFM","Deal Or No Deal Think Red (Bellfruit) (Scorpion 4) (THRE571, set 2)", GAME_IS_SKELETON_MECHANICAL ) // THRE 571 |
| 26480 | 26480 | |
| 26481 | const stepper_interface* sc4dndwb_reel_configs[6] = | |
| 26481 | const stepper_interface* sc4dndwb_reel_configs[6] = | |
| 26482 | 26482 | { |
| 26483 | 26483 | &starpoint_interface_48step, |
| 26484 | 26484 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26512 | 26512 | GAME( 200?, sc4dndwbf ,sc4dndwb, sc4, sc4dndwb35, sc4dndwb, ROT0, "BFM","Deal Or No Deal What's In Your Box (Bellfruit) (Scorpion 4) (WIYX419, set 1)", GAME_IS_SKELETON_MECHANICAL ) // WIYX 419 |
| 26513 | 26513 | GAME( 200?, sc4dndwbg ,sc4dndwb, sc4, sc4dndwb35, sc4dndwb, ROT0, "BFM","Deal Or No Deal What's In Your Box (Bellfruit) (Scorpion 4) (WIYX419, set 2)", GAME_IS_SKELETON_MECHANICAL ) // WIYX 419 |
| 26514 | 26514 | |
| 26515 | const stepper_interface* sc4dndbe_reel_configs[6] = | |
| 26515 | const stepper_interface* sc4dndbe_reel_configs[6] = | |
| 26516 | 26516 | { |
| 26517 | 26517 | &starpoint_interface_48step, |
| 26518 | 26518 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26559 | 26559 | GAME( 200?, sc4dndbem ,sc4dndbe, sc4, sc4dndbe35, sc4dndbe, ROT0, "BFM","Deal Or No Deal Beat The Banker (Bellfruit) (Scorpion 4) (DBTK426, set 1)", GAME_IS_SKELETON_MECHANICAL ) // DBTK 426 |
| 26560 | 26560 | GAME( 200?, sc4dndben ,sc4dndbe, sc4, sc4dndbe35, sc4dndbe, ROT0, "BFM","Deal Or No Deal Beat The Banker (Bellfruit) (Scorpion 4) (DBTK426, set 2)", GAME_IS_SKELETON_MECHANICAL ) // DBTK 426 |
| 26561 | 26561 | |
| 26562 | const stepper_interface* sc4dndbc_reel_configs[6] = | |
| 26562 | const stepper_interface* sc4dndbc_reel_configs[6] = | |
| 26563 | 26563 | { |
| 26564 | 26564 | &starpoint_interface_48step, |
| 26565 | 26565 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26653 | 26653 | GAME( 200?, sc4evolf ,sc4evol, sc4, sc4, sc4, ROT0, "Qps","Evolution (Qps) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL ) |
| 26654 | 26654 | GAME( 200?, sc4evolg ,sc4evol, sc4, sc4, sc4, ROT0, "Qps","Evolution (Qps) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL ) |
| 26655 | 26655 | |
| 26656 | const stepper_interface* sc4fguy_reel_configs[6] = | |
| 26656 | const stepper_interface* sc4fguy_reel_configs[6] = | |
| 26657 | 26657 | { |
| 26658 | 26658 | &starpoint_interface_48step, |
| 26659 | 26659 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26712 | 26712 | GAME( 200?, sc4gladf ,sc4glad, sc4, sc4, sc4, ROT0, "Mazooma","Gladiator (Mazooma) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL ) |
| 26713 | 26713 | GAME( 200?, sc4gladg ,sc4glad, sc4, sc4, sc4, ROT0, "Mazooma","Gladiator (Mazooma) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL ) |
| 26714 | 26714 | |
| 26715 | const stepper_interface* sc4gd_reel_configs[6] = | |
| 26715 | const stepper_interface* sc4gd_reel_configs[6] = | |
| 26716 | 26716 | { |
| 26717 | 26717 | &starpoint_interface_48step, |
| 26718 | 26718 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26743 | 26743 | GAME( 200?, sc4gdmz ,0, sc4, sc4, sc4, ROT0, "Mazooma","Gold Diggers? / Golden X Game (Mazooma) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL ) |
| 26744 | 26744 | GAME( 200?, sc4gdmza ,sc4gdmz, sc4, sc4, sc4, ROT0, "Mazooma","Gold Diggers? / Golden X Game (Mazooma) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL ) |
| 26745 | 26745 | |
| 26746 | const stepper_interface* sc4gdclb_reel_configs[6] = | |
| 26746 | const stepper_interface* sc4gdclb_reel_configs[6] = | |
| 26747 | 26747 | { |
| 26748 | 26748 | &starpoint_interface_48step, |
| 26749 | 26749 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26775 | 26775 | GAME( 200?, sc4gdclbj ,sc4gdclb, sc4, sc4, sc4gdclb, ROT0, "BFM","Gold Digger Club (Bellfruit) (Scorpion 4) (set 11)", GAME_IS_SKELETON_MECHANICAL ) |
| 26776 | 26776 | GAME( 200?, sc4gdclbk ,sc4gdclb, sc4, sc4, sc4gdclb, ROT0, "BFM","Gold Digger Club (Bellfruit) (Scorpion 4) (set 12)", GAME_IS_SKELETON_MECHANICAL ) |
| 26777 | 26777 | |
| 26778 | const stepper_interface* sc4gbcas_reel_configs[6] = | |
| 26778 | const stepper_interface* sc4gbcas_reel_configs[6] = | |
| 26779 | 26779 | { |
| 26780 | 26780 | &starpoint_interface_48step, |
| 26781 | 26781 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26800 | 26800 | GAME( 200?, sc4gbcasc ,sc4gbcas, sc4, sc4, sc4gbcas, ROT0, "BFM","Golden Balls Casino (Bellfruit) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL ) |
| 26801 | 26801 | |
| 26802 | 26802 | |
| 26803 | const stepper_interface* sc4gball_reel_configs[6] = | |
| 26803 | const stepper_interface* sc4gball_reel_configs[6] = | |
| 26804 | 26804 | { |
| 26805 | 26805 | &starpoint_interface_48step, |
| 26806 | 26806 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26824 | 26824 | GAME( 200?, sc4gballb ,sc4gball, sc4, sc4, sc4gball, ROT0, "BFM","Golden Balls (Bellfruit) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL ) |
| 26825 | 26825 | GAME( 200?, sc4gballc ,sc4gball, sc4, sc4, sc4gball, ROT0, "BFM","Golden Balls (Bellfruit) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL ) |
| 26826 | 26826 | |
| 26827 | const stepper_interface* sc4gunp_reel_configs[6] = | |
| 26827 | const stepper_interface* sc4gunp_reel_configs[6] = | |
| 26828 | 26828 | { |
| 26829 | 26829 | &starpoint_interface_48step, |
| 26830 | 26830 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26851 | 26851 | GAME( 200?, sc4gunpf ,sc4gunp, sc4, sc4, sc4gunp, ROT0, "BFM","Gunpowder Slot (Bellfruit) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL ) |
| 26852 | 26852 | GAME( 200?, sc4gunpg ,sc4gunp, sc4, sc4, sc4gunp, ROT0, "BFM","Gunpowder Slot (Bellfruit) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL ) |
| 26853 | 26853 | |
| 26854 | const stepper_interface* sc4hapnt_reel_configs[6] = | |
| 26854 | const stepper_interface* sc4hapnt_reel_configs[6] = | |
| 26855 | 26855 | { |
| 26856 | 26856 | &starpoint_interface_48step, |
| 26857 | 26857 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26876 | 26876 | GAME( 200?, sc4hapntd ,sc4hapnt, sc4, sc4, sc4hapnt, ROT0, "BFM","Happy Notes (Bellfruit) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL ) |
| 26877 | 26877 | GAME( 200?, sc4hapnte ,sc4hapnt, sc4, sc4, sc4hapnt, ROT0, "BFM","Happy Notes (Bellfruit) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL ) |
| 26878 | 26878 | |
| 26879 | const stepper_interface* sc4hntcs_reel_configs[6] = | |
| 26879 | const stepper_interface* sc4hntcs_reel_configs[6] = | |
| 26880 | 26880 | { |
| 26881 | 26881 | &starpoint_interface_48step, |
| 26882 | 26882 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 26938 | 26938 | GAME( 200?, sc4hellbi ,sc4hellb, sc4, sc4, sc4mbus, ROT0, "BFM","Hells Bells (PR1419) (Bellfruit) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL ) |
| 26939 | 26939 | GAME( 200?, sc4hellbj ,sc4hellb, sc4, sc4, sc4mbus, ROT0, "BFM","Hells Bells (PR1419) (Bellfruit) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL ) |
| 26940 | 26940 | |
| 26941 | const stepper_interface* sc4hill_reel_configs[6] = | |
| 26941 | const stepper_interface* sc4hill_reel_configs[6] = | |
| 26942 | 26942 | { |
| 26943 | 26943 | &starpoint_interface_48step, |
| 26944 | 26944 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 27562 | 27562 | GAME( 200?, sc4mowowb ,sc4mowow, sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2118) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL ) // ^^ |
| 27563 | 27563 | GAME( 200?, sc4mowowc ,sc4mowow, sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2118) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL ) // ^^ |
| 27564 | 27564 | |
| 27565 | GAME( 200?, sc4mwwtb ,0, | |
| 27565 | GAME( 200?, sc4mwwtb ,0, | |
| 27566 | 27566 | GAME( 200?, sc4mwwtba ,sc4mwwtb, sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL ) // ^^ |
| 27567 | 27567 | GAME( 200?, sc4mwwtbb ,sc4mwwtb, sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL ) // ^^ |
| 27568 | 27568 | GAME( 200?, sc4mwwtbc ,sc4mwwtb, sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| 27569 | 27569 | GAME( 200?, sc4mwwtbd ,sc4mwwtb, sc4, sc4, sc4, ROT0, "Mazooma","Monopoly Wheel Of Wealth (Mazooma) (PR2389, Top Box) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| 27570 | 27570 | |
| 27571 | 27571 | |
| 27572 | const stepper_interface* sc4bwow_reel_configs[6] = | |
| 27572 | const stepper_interface* sc4bwow_reel_configs[6] = | |
| 27573 | 27573 | { |
| 27574 | 27574 | &starpoint_interface_48step, |
| 27575 | 27575 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 27625 | 27625 | GAME( 200?, sc4ggtba ,sc4ggtb, sc4, sc4, sc4, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, Top Box) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL ) // ^^ |
| 27626 | 27626 | GAME( 200?, sc4ggtbb ,sc4ggtb, sc4, sc4, sc4, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, Top Box) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| 27627 | 27627 | |
| 27628 | const stepper_interface* sc4ggame_reel_configs[6] = | |
| 27628 | const stepper_interface* sc4ggame_reel_configs[6] = | |
| 27629 | 27629 | { |
| 27630 | 27630 | &starpoint_interface_200step_reel, |
| 27631 | 27631 | &starpoint_interface_200step_reel, |
| r14998 | r14999 | |
| 27651 | 27651 | |
| 27652 | 27652 | // 25GBP sets |
| 27653 | 27653 | // PR2056 GOLDEN X GOLDEN GAME ARCADE BARX SOUNDS GOLDEN X |
| 27654 | GAME( 200?, sc4ggame ,0, sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 1)", GAME_IS_SKELETON_MECHANICAL ) | |
| 27654 | GAME( 200?, sc4ggame ,0, sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 1)", GAME_IS_SKELETON_MECHANICAL ) | |
| 27655 | 27655 | GAME( 200?, sc4ggamei ,sc4ggame, sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 2)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| 27656 | 27656 | GAME( 200?, sc4ggamep ,sc4ggame, sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 3)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| 27657 | 27657 | GAME( 200?, sc4ggameq ,sc4ggame, sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (GLDX, 25GBP, set 4)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| r14998 | r14999 | |
| 27676 | 27676 | GAME( 200?, sc4ggame2 ,sc4ggame, sc4, sc4, sc4ggamem, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056, newer?) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| 27677 | 27677 | // 25GBP, no 41 check |
| 27678 | 27678 | // PR2056 GOLDEN X BARX SOUNDS GOLDEN X |
| 27679 | GAME( 200?, sc4ggamea ,sc4ggame, sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 1)", GAME_IS_SKELETON_MECHANICAL ) | |
| 27679 | GAME( 200?, sc4ggamea ,sc4ggame, sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 1)", GAME_IS_SKELETON_MECHANICAL ) | |
| 27680 | 27680 | GAME( 200?, sc4ggameb ,sc4ggame, sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 2)", GAME_IS_SKELETON_MECHANICAL ) // ^^ |
| 27681 | 27681 | GAME( 200?, sc4ggamec ,sc4ggame, sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 3)", GAME_IS_SKELETON_MECHANICAL ) // ^^ |
| 27682 | 27682 | GAME( 200?, sc4ggamed ,sc4ggame, sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game (Mazooma) (PR2056) (Scorpion 4) (GLDX, 25GBP, set 4)", GAME_IS_SKELETON_MECHANICAL ) // ^^ |
| r14998 | r14999 | |
| 27711 | 27711 | GAME( 200?, sc4ggdlxf ,sc4ggdlx, sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game Deluxe (Mazooma) (PR2201) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL ) |
| 27712 | 27712 | GAME( 200?, sc4ggdlxg ,sc4ggdlx, sc4, sc4, sc4ggame, ROT0, "Mazooma","Golden Game Deluxe (Mazooma) (PR2201) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| 27713 | 27713 | |
| 27714 | const stepper_interface* sc4gggtb_reel_configs[6] = | |
| 27714 | const stepper_interface* sc4gggtb_reel_configs[6] = | |
| 27715 | 27715 | { |
| 27716 | 27716 | &starpoint_interface_48step, |
| 27717 | 27717 | &starpoint_interface_48step, |
| r14998 | r14999 | |
| 27733 | 27733 | GAME( 200?, sc4gggtba ,sc4ggg, sc4, sc4, sc4gggtb, ROT0, "Mazooma","Grand Golden Game (Mazooma) (PR2056, Top Box) (Scorpion 4) (GGGT, set 2)", GAME_IS_SKELETON_MECHANICAL )// ^^ |
| 27734 | 27734 | |
| 27735 | 27735 | |
| 27736 | const stepper_interface* sc4ggg_reel_configs[6] = | |
| 27736 | const stepper_interface* sc4ggg_reel_configs[6] = | |
| 27737 | 27737 | { |
| 27738 | 27738 | &starpoint_interface_200step_reel, |
| 27739 | 27739 | &starpoint_interface_200step_reel, |
| r14998 | r14999 | |
|---|---|---|
| 1196 | 1196 | WRITE8_MEMBER(galaxian_state::kingball_sound2_w) |
| 1197 | 1197 | { |
| 1198 | 1198 | m_kingball_sound = (m_kingball_sound & ~0x02) | (data << 1); |
| 1199 | soundlatch_byte_w( | |
| 1199 | soundlatch_byte_w( | |
| 1200 | 1200 | } |
| 1201 | 1201 | |
| 1202 | 1202 | |
| r14998 | r14999 | |
| 1272 | 1272 | |
| 1273 | 1273 | WRITE8_MEMBER(galaxian_state::checkman_sound_command_w) |
| 1274 | 1274 | { |
| 1275 | soundlatch_byte_w( | |
| 1275 | soundlatch_byte_w( | |
| 1276 | 1276 | cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE); |
| 1277 | 1277 | } |
| 1278 | 1278 |
| r14998 | r14999 | |
|---|---|---|
| 607 | 607 | |
| 608 | 608 | static ADDRESS_MAP_START( frenzy_map, AS_PROGRAM, 8, berzerk_state ) |
| 609 | 609 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 610 | AM_RANGE(0x4000, 0x5fff) AM_RAM AM_SHARE("videoram") | |
| 610 | AM_RANGE(0x4000, 0x5fff) AM_RAM AM_SHARE("videoram") | |
| 611 | 611 | AM_RANGE(0x6000, 0x7fff) AM_RAM_WRITE(magicram_w) AM_SHARE("videoram") |
| 612 | 612 | AM_RANGE(0x8000, 0x87ff) AM_MIRROR(0x3800) AM_RAM AM_SHARE("colorram") |
| 613 | 613 | AM_RANGE(0xc000, 0xcfff) AM_ROM |
| r14998 | r14999 | |
|---|---|---|
| 1016 | 1016 | static MACHINE_START( psikyo ) |
| 1017 | 1017 | { |
| 1018 | 1018 | psikyo_state *state = machine.driver_data<psikyo_state>(); |
| 1019 | ||
| 1019 | ||
| 1020 | 1020 | state->m_audiocpu = machine.device("audiocpu"); |
| 1021 | 1021 | |
| 1022 | 1022 | state->save_item(NAME(state->m_soundlatch)); |
| r14998 | r14999 | |
|---|---|---|
| 1609 | 1609 | { |
| 1610 | 1610 | UINT64 r = 0; |
| 1611 | 1611 | if(ACCESSING_BITS_56_63) { |
| 1612 | r |= (UINT64)rtc72421_r( | |
| 1612 | r |= (UINT64)rtc72421_r( | |
| 1613 | 1613 | } |
| 1614 | 1614 | if(ACCESSING_BITS_24_31) { |
| 1615 | r |= (UINT64)rtc72421_r( | |
| 1615 | r |= (UINT64)rtc72421_r( | |
| 1616 | 1616 | } |
| 1617 | 1617 | return r; |
| 1618 | 1618 | } |
| r14998 | r14999 | |
| 1620 | 1620 | WRITE64_MEMBER(model3_state::model3_rtc_w) |
| 1621 | 1621 | { |
| 1622 | 1622 | if(ACCESSING_BITS_56_63) { |
| 1623 | rtc72421_w( | |
| 1623 | rtc72421_w( | |
| 1624 | 1624 | } |
| 1625 | 1625 | if(ACCESSING_BITS_24_31) { |
| 1626 | rtc72421_w( | |
| 1626 | rtc72421_w( | |
| 1627 | 1627 | } |
| 1628 | 1628 | } |
| 1629 | 1629 |
| r14998 | r14999 | |
|---|---|---|
| 26 | 26 | { } |
| 27 | 27 | |
| 28 | 28 | required_device<cpu_device> m_maincpu; |
| 29 | ||
| 29 | ||
| 30 | 30 | // serial vfd |
| 31 | 31 | bool vfd_old_clock; |
| 32 | 32 | |
| r14998 | r14999 | |
| 40 | 40 | |
| 41 | 41 | int clock = (data & 0x40); |
| 42 | 42 | int datline = (data & 0x80); |
| 43 | ||
| 43 | ||
| 44 | 44 | //Unlike MPU4, this uses positive transitions on both lines, so this may be a similar, but not identical component |
| 45 | 45 | // if the clock line changes |
| 46 | 46 | if ( clock != state->vfd_old_clock ) |
| r14998 | r14999 | |
|---|---|---|
| 574 | 574 | |
| 575 | 575 | WRITE16_MEMBER(stepstag_state::stepstag_leds_w) |
| 576 | 576 | { |
| 577 | // | |
| 577 | // data = COMBINE_DATA() | |
| 578 | 578 | if (ACCESSING_BITS_0_7) |
| 579 | 579 | { |
| 580 | 580 | set_led_status(machine(), 0, data & 0x0001); // P2 Front-Left |
| r14998 | r14999 | |
| 594 | 594 | set_led_status(machine(), 11, data & 0x2000); // P1 Back-Right |
| 595 | 595 | } |
| 596 | 596 | |
| 597 | // | |
| 597 | // popmessage("FEET %02x",data); | |
| 598 | 598 | } |
| 599 | 599 | |
| 600 | 600 | // Main CPU |
| r14998 | r14999 | |
| 606 | 606 | AM_RANGE(0x300000, 0x31ffff) AM_RAM // Palette |
| 607 | 607 | AM_RANGE(0x400000, 0x403fff) AM_RAM_WRITE(tetrisp2_vram_fg_w) AM_SHARE("vram_fg") // Foreground |
| 608 | 608 | AM_RANGE(0x404000, 0x407fff) AM_RAM_WRITE(tetrisp2_vram_bg_w) AM_SHARE("vram_bg") // Background |
| 609 | // | |
| 609 | // AM_RANGE(0x408000, 0x409fff) AM_RAM // ??? | |
| 610 | 610 | AM_RANGE(0x500000, 0x50ffff) AM_RAM // Line |
| 611 | 611 | AM_RANGE(0x600000, 0x60ffff) AM_RAM_WRITE(tetrisp2_vram_rot_w) AM_SHARE("vram_rot") // Rotation |
| 612 | 612 | AM_RANGE(0x900000, 0x903fff) AM_READWRITE(tetrisp2_nvram_r, tetrisp2_nvram_w) AM_SHARE("nvram") // NVRAM |
| 613 | 613 | AM_RANGE(0x904000, 0x907fff) AM_READWRITE(tetrisp2_nvram_r, tetrisp2_nvram_w) // NVRAM (mirror) |
| 614 | 614 | |
| 615 | 615 | AM_RANGE(0xa10000, 0xa10001) AM_READ_PORT("FEET") AM_WRITE(stepstag_leds_w) // I/O |
| 616 | // | |
| 616 | // AM_RANGE(0xa30000, 0xa30001) AM_NOP // PC? | |
| 617 | 617 | AM_RANGE(0xa42000, 0xa42001) AM_READ( unk_a42000_r ) // visual ready flag + ??? |
| 618 | 618 | AM_RANGE(0xa44000, 0xa44001) AM_READNOP // watchdog |
| 619 | // AM_RANGE(0xa48000, 0xa48001) AM_WRITENOP // PC? | |
| 620 | // AM_RANGE(0xa4c000, 0xa4c001) AM_WRITENOP // PC? | |
| 619 | // AM_RANGE(0xa48000, 0xa48001) AM_WRITENOP // PC? | |
| 620 | // AM_RANGE(0xa4c000, 0xa4c001) AM_WRITENOP // PC? | |
| 621 | 621 | AM_RANGE(0xa50000, 0xa50001) AM_READWRITE( soundlatch_word_r, stepstag_soundlatch_word_w ) |
| 622 | 622 | AM_RANGE(0xa60000, 0xa60003) AM_DEVWRITE8_LEGACY("ymz", ymz280b_w, 0x00ff) // Sound |
| 623 | 623 | |
| r14998 | r14999 | |
| 652 | 652 | |
| 653 | 653 | // rgb brightness? |
| 654 | 654 | AM_RANGE(0x700000, 0x700001) AM_WRITENOP // 0-f |
| 655 | AM_RANGE(0x700002, 0x700003) AM_WRITENOP // | |
| 655 | AM_RANGE(0x700002, 0x700003) AM_WRITENOP // 0-f | |
| 656 | 656 | AM_RANGE(0x700004, 0x700005) AM_WRITENOP // 0-f |
| 657 | 657 | AM_RANGE(0x700006, 0x700007) AM_WRITENOP // 0-3f (high bits?) |
| 658 | 658 | |
| r14998 | r14999 | |
| 660 | 660 | AM_RANGE(0x800000, 0x803fff) AM_RAM AM_SHARE("spriteram") // Object RAM |
| 661 | 661 | AM_RANGE(0x800000, 0x87ffff) AM_RAM |
| 662 | 662 | AM_RANGE(0x880000, 0x880001) AM_WRITENOP // cleared after writing this sprite list |
| 663 | // | |
| 663 | // AM_RANGE(0x8c0000, 0x8c0001) AM_WRITENOP // cleared at boot | |
| 664 | 664 | |
| 665 | 665 | // middle screen sprites |
| 666 | 666 | AM_RANGE(0x900000, 0x903fff) AM_RAM AM_SHARE("spriteram2") // Object RAM |
| 667 | 667 | AM_RANGE(0x900000, 0x97ffff) AM_RAM |
| 668 | 668 | AM_RANGE(0x980000, 0x980001) AM_WRITENOP // cleared after writing this sprite list |
| 669 | // | |
| 669 | // AM_RANGE(0x9c0000, 0x9c0001) AM_WRITENOP // cleared at boot | |
| 670 | 670 | |
| 671 | 671 | // right screen sprites |
| 672 | 672 | AM_RANGE(0xa00000, 0xa03fff) AM_RAM AM_SHARE("spriteram3") // Object RAM |
| 673 | 673 | AM_RANGE(0xa00000, 0xa7ffff) AM_RAM |
| 674 | 674 | AM_RANGE(0xa80000, 0xa80001) AM_WRITENOP // cleared after writing this sprite list |
| 675 | // | |
| 675 | // AM_RANGE(0xac0000, 0xac0001) AM_WRITENOP // cleared at boot | |
| 676 | 676 | |
| 677 | 677 | AM_RANGE(0xb00000, 0xb00001) AM_READWRITE( soundlatch_word_r, soundlatch_word_w ) |
| 678 | 678 | |
| r14998 | r14999 | |
| 1117 | 1117 | static INPUT_PORTS_START( stepstag ) |
| 1118 | 1118 | PORT_START("BUTTONS") // $be0002.w |
| 1119 | 1119 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) // P2 start (middle) |
| 1120 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) // P2 start (left) | |
| 1120 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) // P2 start (left) | |
| 1121 | 1121 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) // P2 start (right) |
| 1122 | 1122 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1123 | 1123 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r14998 | r14999 | |
| 1125 | 1125 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1126 | 1126 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1127 | 1127 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) // P1 start (middle) |
| 1128 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // P1 start (left) | |
| 1128 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // P1 start (left) | |
| 1129 | 1129 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // P1 start (right) |
| 1130 | 1130 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1131 | 1131 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r14998 | r14999 | |
|---|---|---|
| 412 | 412 | AM_RANGE(0x160000, 0x17ffff) AM_RAM /* */ \ |
| 413 | 413 | AM_RANGE(0x1c0000, 0x1c0001) AM_READ(ssv_vblank_r ) /* Vblank? */ \ |
| 414 | 414 | /**/AM_RANGE(0x1c0002, 0x1c007f) AM_READONLY /* Scroll */ \ |
| 415 | AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE(ssv_scroll_w) AM_SHARE("scroll") | |
| 415 | AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE(ssv_scroll_w) AM_SHARE("scroll") | |
| 416 | 416 | AM_RANGE(0x210002, 0x210003) AM_READ_PORT("DSW1") \ |
| 417 | 417 | AM_RANGE(0x210004, 0x210005) AM_READ_PORT("DSW2") \ |
| 418 | 418 | AM_RANGE(0x210008, 0x210009) AM_READ_PORT("P1") \ |
| r14998 | r14999 | |
|---|---|---|
| 193 | 193 | |
| 194 | 194 | /* bit 3 is the watchdog */ |
| 195 | 195 | if ((olddata ^ m_control_data) & 0x0008) |
| 196 | watchdog_reset_w( | |
| 196 | watchdog_reset_w( | |
| 197 | 197 | |
| 198 | 198 | /* bit 1 is the DCS sound reset */ |
| 199 | 199 | dcs_reset_w(machine(), (~m_control_data >> 1) & 1); |
| r14998 | r14999 | |
| 214 | 214 | |
| 215 | 215 | /* bit 9 is the watchdog */ |
| 216 | 216 | if ((olddata ^ m_control_data) & 0x0200) |
| 217 | watchdog_reset_w( | |
| 217 | watchdog_reset_w( | |
| 218 | 218 | |
| 219 | 219 | /* bit 8 is the LED */ |
| 220 | 220 | |
| r14998 | r14999 | |
| 420 | 420 | /* bit 0x10 resets watchdog */ |
| 421 | 421 | if ((olddata ^ m_midvplus_misc[offset]) & 0x0010) |
| 422 | 422 | { |
| 423 | watchdog_reset_w( | |
| 423 | watchdog_reset_w( | |
| 424 | 424 | logit = 0; |
| 425 | 425 | } |
| 426 | 426 | break; |
| r14998 | r14999 | |
|---|---|---|
| 361 | 361 | |
| 362 | 362 | static ADDRESS_MAP_START( bestbest_pcm_1_iomap, AS_IO, 8, suna16_state ) |
| 363 | 363 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 364 | AM_RANGE(0x00, 0x00) AM_READ (soundlatch2_byte_r | |
| 364 | AM_RANGE(0x00, 0x00) AM_READ (soundlatch2_byte_r | |
| 365 | 365 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x02) AM_DEVWRITE_LEGACY("dac1", bssoccer_DAC_w) // 2 x DAC |
| 366 | 366 | AM_RANGE(0x01, 0x01) AM_MIRROR(0x02) AM_DEVWRITE_LEGACY("dac2", bssoccer_DAC_w) // 2 x DAC |
| 367 | 367 | ADDRESS_MAP_END |
| r14998 | r14999 | |
|---|---|---|
| 134 | 134 | // the mapping of the devices is rather ugly with address bits 8-9 providing the usual address bits 0-1 or 'offset' |
| 135 | 135 | // r0/r1/r2/r3 and w0/w1/w2/w3 might still be in the wrong order at the moment. |
| 136 | 136 | static ADDRESS_MAP_START( proconn_portmap, AS_IO, 8, proconn_state ) |
| 137 | // | |
| 137 | // ADDRESS_MAP_GLOBAL_MASK(0x3ff) | |
| 138 | 138 | |
| 139 | 139 | // sio (vfd should be connected to it?) |
| 140 | 140 | AM_RANGE(0x00ff, 0x00ff) AM_READWRITE(sio_r0, sio_w0) |
| r14998 | r14999 | |
| 149 | 149 | AM_RANGE(0x03fe, 0x03fe) AM_READWRITE(ctc_r3, ctc_w3) |
| 150 | 150 | |
| 151 | 151 | // ay (meters connected to it?) |
| 152 | AM_RANGE(0x00fd, 0x00fd) AM_READWRITE(ay_r0, ay_w0) | |
| 153 | AM_RANGE(0x00fc, 0x00fc) AM_WRITE(ay_w1) | |
| 152 | AM_RANGE(0x00fd, 0x00fd) AM_READWRITE(ay_r0, ay_w0) | |
| 153 | AM_RANGE(0x00fc, 0x00fc) AM_WRITE(ay_w1) | |
| 154 | 154 | |
| 155 | 155 | // ?? |
| 156 | 156 | AM_RANGE(0xfbf9, 0xfbf9) AM_WRITENOP |
| 157 | 157 | AM_RANGE(0xfff9, 0xfff9) AM_WRITENOP |
| 158 | ||
| 158 | ||
| 159 | 159 | // pio5 (lamps?) |
| 160 | 160 | AM_RANGE(0x00f0, 0x00f0) AM_READWRITE(pio5_r0, pio5_w0) |
| 161 | 161 | AM_RANGE(0x01f0, 0x01f0) AM_READWRITE(pio5_r1, pio5_w1) |
| r14998 | r14999 | |
| 258 | 258 | |
| 259 | 259 | static WRITE8_DEVICE_HANDLER( serial_transmit ) |
| 260 | 260 | { |
| 261 | // | |
| 261 | // if (offset == 0) | |
| 262 | 262 | { |
| 263 | 263 | ROC10937_newdata(0, data); |
| 264 | 264 | ROC10937_draw_16seg(0); |
| r14998 | r14999 | |
|---|---|---|
| 94 | 94 | // lower nibble = command to I8035 |
| 95 | 95 | // not necessarily like this, but it seems to work better than direct mapping |
| 96 | 96 | // (although schematics has it as direct - but then the schematics are wrong elsewhere to!) |
| 97 | soundlatch_byte_w( | |
| 97 | soundlatch_byte_w( | |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | READ8_MEMBER(quasar_state::quasar_sh_command_r) |
| 101 | 101 | { |
| 102 | return soundlatch_byte_r( | |
| 102 | return soundlatch_byte_r( | |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | READ8_MEMBER(quasar_state::audio_t1_r) |
| 106 | 106 | { |
| 107 | return (soundlatch_byte_r( | |
| 107 | return (soundlatch_byte_r( | |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | // memory map taken from the manual |
| r14998 | r14999 | |
|---|---|---|
| 325 | 325 | |
| 326 | 326 | WRITE8_MEMBER(gsword_state::adpcm_soundcommand_w) |
| 327 | 327 | { |
| 328 | soundlatch_byte_w( | |
| 328 | soundlatch_byte_w( | |
| 329 | 329 | cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, PULSE_LINE); |
| 330 | 330 | } |
| 331 | 331 |
| r14998 | r14999 | |
|---|---|---|
| 75 | 75 | m_jclub2_tileram(*this, "jclub2_tileram"), |
| 76 | 76 | m_spriteram(*this, "spriteram"), |
| 77 | 77 | m_maincpu(*this, "maincpu") { } |
| 78 | ||
| 78 | ||
| 79 | 79 | virtual void machine_start() |
| 80 | 80 | { |
| 81 | 81 | m_generic_paletteram_16.allocate(0x10000); |
| r14998 | r14999 | |
| 963 | 963 | static DRIVER_INIT( darkhors ) |
| 964 | 964 | { |
| 965 | 965 | UINT32 *rom = (UINT32 *) machine.root_device().memregion("maincpu")->base(); |
| 966 | // UINT8 *eeprom = (UINT8 *) machine.root_device().memregion("eeprom")->base(); | |
| 967 | // int i; | |
| 966 | // UINT8 *eeprom = (UINT8 *) machine.root_device().memregion("eeprom")->base(); | |
| 967 | // int i; | |
| 968 | 968 | |
| 969 | 969 | #if 1 |
| 970 | 970 | // eeprom error patch |
| r14998 | r14999 | |
| 975 | 975 | rom[0x04600/4] = 0x4e714eb9; |
| 976 | 976 | #endif |
| 977 | 977 | |
| 978 | // if (eeprom != NULL) | |
| 979 | // for (i = 0; i < (1<<7); i++) | |
| 980 | // eeprom[i] = eeprom[i*2]; | |
| 978 | // if (eeprom != NULL) | |
| 979 | // for (i = 0; i < (1<<7); i++) | |
| 980 | // eeprom[i] = eeprom[i*2]; | |
| 981 | 981 | } |
| 982 | 982 | |
| 983 | 983 | GAME( 199?, jclub2, 0, jclub2, darkhors, 0, ROT0, "Seta", "Jockey Club II (newer hardware)", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| r14998 | r14999 | |
|---|---|---|
| 33 | 33 | public: |
| 34 | 34 | splus_state(const machine_config &mconfig, device_type type, const char *tag) |
| 35 | 35 | : driver_device(mconfig, type, tag), |
| 36 | m_cmosl_ram(*this, "cmosl"), | |
| 37 | m_cmosh_ram(*this, "cmosh"), | |
| 38 | m_program_ram(*this, "program_ram"), | |
| 39 | m_reel_ram(*this, "reel_ram"), | |
| 36 | m_cmosl_ram(*this, "cmosl"), | |
| 37 | m_cmosh_ram(*this, "cmosh"), | |
| 38 | m_program_ram(*this, "program_ram"), | |
| 39 | m_reel_ram(*this, "reel_ram"), | |
| 40 | 40 | m_io_port(*this, "io_port") |
| 41 | 41 | { |
| 42 | 42 | m_sda_dir = 0; |
| r14998 | r14999 | |
|---|---|---|
| 64 | 64 | static WRITE8_DEVICE_HANDLER( ppi8255_intf_e_write_a ) |
| 65 | 65 | { |
| 66 | 66 | // writes the 'PYRAMID' string from RAM (copied from ROM) here... |
| 67 | // along with port 40/41/42 accesses | |
| 67 | // along with port 40/41/42 accesses | |
| 68 | 68 | // also error messages? (well it looks like it should, but code is strange and skips them) I guess it's a debug port or the vfd? |
| 69 | 69 | // watch ram around e3e0 |
| 70 | 70 | |
| 71 | 71 | // Pyramid - Writes PYRAMID V6, and 10MS INIT ERROR |
| 72 | 72 | // Labyrinth - Same behavior as Pyramid |
| 73 | 73 | // Secret Castle - Same behavior as Pyramid |
| 74 | ||
| 74 | ||
| 75 | 75 | // Sphinx - Writes "No % Key" -- depends on port 0x51, writes "SPHINX V- 1" if it's happy with that .. after that you get COIN TAMPER, a count down with COINS TRIM and a reboot |
| 76 | 76 | // Pennies from Heaven - same behavior as Sphinx |
| 77 | 77 | static int count = 0; |
| 78 | 78 | |
| 79 | 79 | if ((data>=0x20) && (data<0x5b)) |
| 80 | 80 | { |
| 81 | if (count%80 == 0) printf("\n"); | |
| 81 | if (count%80 == 0) printf("\n"); | |
| 82 | 82 | |
| 83 | 83 | printf("%c", data); |
| 84 | 84 | count++; |
| r14998 | r14999 | |
| 87 | 87 | |
| 88 | 88 | static WRITE8_DEVICE_HANDLER( ppi8255_intf_e_write_b ) |
| 89 | 89 | { |
| 90 | // | |
| 90 | // printf("\nwrite b %02x\n", data); | |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | static WRITE8_DEVICE_HANDLER( ppi8255_intf_e_write_c ) |
| 94 | 94 | { |
| 95 | // | |
| 95 | // printf("\nwrite c %02x\n", data); | |
| 96 | 96 | |
| 97 | 97 | } |
| 98 | 98 |
| r14998 | r14999 | |
|---|---|---|
| 291 | 291 | |
| 292 | 292 | WRITE8_MEMBER(gladiatr_state::glad_cpu_sound_command_w) |
| 293 | 293 | { |
| 294 | soundlatch_byte_w( | |
| 294 | soundlatch_byte_w( | |
| 295 | 295 | cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, ASSERT_LINE); |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | READ8_MEMBER(gladiatr_state::glad_cpu_sound_command_r) |
| 299 | 299 | { |
| 300 | 300 | cputag_set_input_line(machine(), "audiocpu", INPUT_LINE_NMI, CLEAR_LINE); |
| 301 | return soundlatch_byte_r( | |
| 301 | return soundlatch_byte_r( | |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | WRITE8_MEMBER(gladiatr_state::gladiatr_flipscreen_w) |
| r14998 | r14999 | |
|---|---|---|
| 365 | 365 | DEFS += -DMACOSX_USE_LIBSDL |
| 366 | 366 | endif # MACOSX_USE_LIBSDL |
| 367 | 367 | |
| 368 | else # ifeq ($(TARGETOS),macosx) | |
| 368 | else # ifeq ($(TARGETOS),macosx) | |
| 369 | 369 | |
| 370 | 370 | DEFS += -DSDLMAME_UNIX |
| 371 | 371 | DEBUGOBJS = $(SDLOBJ)/debugwin.o $(SDLOBJ)/dview.o $(SDLOBJ)/debug-sup.o $(SDLOBJ)/debug-intf.o |
| r14998 | r14999 | |
|---|---|---|
| 162 | 162 | |
| 163 | 163 | # disable side effects warning in STL headers |
| 164 | 164 | CPPONLYFLAGS += /wd4548 |
| 165 | ||
| 165 | ||
| 166 | 166 | # disable macro redefinition warning |
| 167 | 167 | CCOMFLAGS += /wd4005 |
| 168 | 168 |
| r14998 | r14999 | |
|---|---|---|
| 35 | 35 | logerror("%08x m68307_internal_mbus_r %08x (MBSR - M-Bus Status Register)\n", pc, offset); |
| 36 | 36 | retval = 0; |
| 37 | 37 | if (mbus->m_busy) retval |= 0x20; |
| 38 | if (mbus->m_intpend) retval |= 0x02; | |
| 39 | ||
| 38 | if (mbus->m_intpend) retval |= 0x02; | |
| 39 | ||
| 40 | 40 | return retval; |
| 41 | 41 | |
| 42 | 42 | case m68307BUS_MBDR: |
| r14998 | r14999 | |
| 75 | 75 | |
| 76 | 76 | case m68307BUS_MBCR: |
| 77 | 77 | logerror("%08x m68307_internal_mbus_w %08x, %02x (MFCR - M-Bus Control Register)\n", pc, offset,data); |
| 78 | ||
| 78 | ||
| 79 | 79 | mbus->m_MFCR = data; |
| 80 | 80 | if (data & 0x80) |
| 81 | 81 | { |
| r14998 | r14999 | |
| 83 | 83 | mbus->m_intpend = false; |
| 84 | 84 | } |
| 85 | 85 | if (data & 0x20) mbus->m_busy = true; |
| 86 | ||
| 86 | ||
| 87 | 87 | break; |
| 88 | 88 | |
| 89 | 89 | case m68307BUS_MBSR: |
| 90 | 90 | logerror("%08x m68307_internal_mbus_w %08x, %02x (MBSR - M-Bus Status Register)\n", pc, offset,data); |
| 91 | 91 | break; |
| 92 | ||
| 92 | ||
| 93 | 93 | case m68307BUS_MBDR: |
| 94 | 94 | logerror("%08x m68307_internal_mbus_w %08x, %02x (MBDR - M-Bus Data I/O Register)\n", pc, offset,data); |
| 95 | 95 |
| r14998 | r14999 | |
|---|---|---|
| 36 | 36 | case m68307SER_UMR1_UMR2: |
| 37 | 37 | logerror("%08x m68307_internal_serial_r %08x (UMR1, UMR2 - UART Mode Register)\n", pc, offset); |
| 38 | 38 | return space->machine().rand(); |
| 39 | ||
| 39 | ||
| 40 | 40 | case m68307SER_USR_UCSR: |
| 41 | 41 | logerror("%08x m68307_internal_serial_r %08x (USR, UCSR - UART Status/Clock Select Register)\n", pc, offset); |
| 42 | 42 | return space->machine().rand(); |
| r14998 | r14999 | |
|---|---|---|
| 1 | 1 | #define m68340SIM_MCR (0x00) |
| 2 | // | |
| 2 | // (0x02) | |
| 3 | 3 | #define m68340SIM_SYNCR (0x04) |
| 4 | 4 | #define m68340SIM_AVR_RSR (0x06) |
| 5 | // (0x08) | |
| 6 | // (0x0a) | |
| 7 | // (0x0c) | |
| 8 | // (0x0e) | |
| 5 | // (0x08) | |
| 6 | // (0x0a) | |
| 7 | // (0x0c) | |
| 8 | // (0x0e) | |
| 9 | 9 | #define m68340SIM_PORTA (0x11) |
| 10 | 10 | #define m68340SIM_DDRA (0x13) |
| 11 | 11 | #define m68340SIM_PPRA1 (0x15) |
| r14998 | r14999 | |
| 18 | 18 | #define m68340SIM_PICR (0x22) |
| 19 | 19 | #define m68340SIM_PITR (0x24) |
| 20 | 20 | #define m68340SIM_SWSR (0x26) |
| 21 | // (0x28) | |
| 22 | // (0x2a) | |
| 23 | // (0x2c) | |
| 24 | // (0x2e) | |
| 25 | // (0x30) | |
| 26 | // (0x32) | |
| 27 | // (0x34) | |
| 28 | // (0x36) | |
| 29 | // (0x38) | |
| 30 | // (0x3a) | |
| 31 | // (0x3c) | |
| 32 | // (0x3e) | |
| 21 | // (0x28) | |
| 22 | // (0x2a) | |
| 23 | // (0x2c) | |
| 24 | // (0x2e) | |
| 25 | // (0x30) | |
| 26 | // (0x32) | |
| 27 | // (0x34) | |
| 28 | // (0x36) | |
| 29 | // (0x38) | |
| 30 | // (0x3a) | |
| 31 | // (0x3c) | |
| 32 | // (0x3e) | |
| 33 | 33 | #define m68340SIM_AM_CS0 (0x40) |
| 34 | 34 | #define m68340SIM_BA_CS0 (0x44) |
| 35 | 35 | #define m68340SIM_AM_CS1 (0x48) |
| r14998 | r14999 | |
|---|---|---|
| 10 | 10 | class m68307_mbus |
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | ||
| 13 | ||
| 14 | 14 | UINT16 m_MFCR; |
| 15 | 15 | |
| 16 | 16 | bool m_busy; |
| r14998 | r14999 | |
|---|---|---|
| 8 | 8 | #define m68307SER_UISR_UIMR (0x0b) |
| 9 | 9 | #define m68307SER_UBG1 (0x0d) |
| 10 | 10 | #define m68307SER_UBG2 (0x0f) |
| 11 | // | |
| 11 | // (0x11) | |
| 12 | 12 | // (0x13) |
| 13 | 13 | // (0x15) |
| 14 | 14 | // (0x17) |
| r14998 | r14999 | |
|---|---|---|
| 746 | 746 | if (m_end_update != NULL) |
| 747 | 747 | m_end_update(this, bitmap, cliprect, param); |
| 748 | 748 | } |
| 749 | // else | |
| 750 | // popmessage("Invalid MC6845 screen parameters - display disabled!!!"); | |
| 749 | else | |
| 750 | popmessage("Invalid MC6845 screen parameters - display disabled!!!"); | |
| 751 | 751 | return 0; |
| 752 | 752 | } |
| 753 | 753 |
| r14998 | r14999 | |
|---|---|---|
| 78 | 78 | static inline UINT32 dest_b(_PixelType pixel) { return (pixel >> _DstShiftB) & (0xff >> _SrcShiftB); } |
| 79 | 79 | |
| 80 | 80 | // generic conversion with special optimization for destinations in the standard format |
| 81 | static inline _PixelType source32_to_dest(rgb_t pixel) | |
| 81 | static inline _PixelType source32_to_dest(rgb_t pixel) | |
| 82 | 82 | { |
| 83 | 83 | if (_SrcShiftR == 0 && _SrcShiftG == 0 && _SrcShiftB == 0 && _DstShiftR == 16 && _DstShiftG == 8 && _DstShiftB == 0) |
| 84 | 84 | return pixel; |
| r14998 | r14999 | |
| 137 | 137 | // G = clip(( common - 100 * Cb - 208 * Cr + 91776) >> 8) |
| 138 | 138 | // B = clip(( common + 516 * Cb - 13696) >> 8) |
| 139 | 139 | // |
| 140 | ||
| 140 | ||
| 141 | 141 | UINT8 y = ycc; |
| 142 | 142 | UINT8 cb = ycc >> 8; |
| 143 | 143 | UINT8 cr = ycc >> 16; |
| r14998 | r14999 | |
| 188 | 188 | |
| 189 | 189 | |
| 190 | 190 | //------------------------------------------------- |
| 191 | // get_texel_palette16a - return a texel from a | |
| 191 | // get_texel_palette16a - return a texel from a | |
| 192 | 192 | // palettized 16bpp source with alpha |
| 193 | 193 | //------------------------------------------------- |
| 194 | 194 | |
| r14998 | r14999 | |
| 223 | 223 | |
| 224 | 224 | |
| 225 | 225 | //------------------------------------------------- |
| 226 | // get_texel_yuy16 - return a texel from a 16bpp | |
| 226 | // get_texel_yuy16 - return a texel from a 16bpp | |
| 227 | 227 | // YCbCr source (pixel is returned as Cr-Cb-Y) |
| 228 | 228 | //------------------------------------------------- |
| 229 | 229 | |
| r14998 | r14999 | |
| 285 | 285 | |
| 286 | 286 | |
| 287 | 287 | //------------------------------------------------- |
| 288 | // get_texel_rgb32 - return a texel from a 32bpp | |
| 288 | // get_texel_rgb32 - return a texel from a 32bpp | |
| 289 | 289 | // RGB source |
| 290 | 290 | //------------------------------------------------- |
| 291 | 291 | |
| r14998 | r14999 | |
| 320 | 320 | |
| 321 | 321 | |
| 322 | 322 | //------------------------------------------------- |
| 323 | // get_texel_argb32 - return a texel from a 32bpp | |
| 323 | // get_texel_argb32 - return a texel from a 32bpp | |
| 324 | 324 | // ARGB source |
| 325 | 325 | //------------------------------------------------- |
| 326 | 326 |
| r14998 | r14999 | |
|---|---|---|
| 39 | 39 | vol /= div; |
| 40 | 40 | } |
| 41 | 41 | m_lut_volume[0xff] = 0; |
| 42 | ||
| 42 | ||
| 43 | 43 | // create the stream |
| 44 | 44 | m_stream = machine().sound().stream_alloc(*this, 0, 2, clock() / 0x400, this); |
| 45 | 45 | |
| r14998 | r14999 | |
| 52 | 52 | { |
| 53 | 53 | // stop playing |
| 54 | 54 | write_reg16(0x43, 0xffff); |
| 55 | ||
| 55 | ||
| 56 | 56 | // reset channel regs |
| 57 | 57 | for (int i = 0; i < 0x40; i++) |
| 58 | 58 | write_reg16(i, 0); |
| r14998 | r14999 | |
| 77 | 77 | // TODO |
| 78 | 78 | return false; |
| 79 | 79 | } |
| 80 | ||
| 80 | ||
| 81 | 81 | // cmd 0x0000 = end sample |
| 82 | 82 | // other values: unused |
| 83 | 83 | else return false; |
| 84 | ||
| 84 | ||
| 85 | 85 | } |
| 86 | ||
| 86 | ||
| 87 | 87 | return true; |
| 88 | 88 | } |
| 89 | 89 | |
| r14998 | r14999 | |
| 94 | 94 | { |
| 95 | 95 | INT32 mix_l = 0; |
| 96 | 96 | INT32 mix_r = 0; |
| 97 | ||
| 97 | ||
| 98 | 98 | // loop over all channels |
| 99 | 99 | for (int ch = 0; ch < 16; ch++) |
| 100 | 100 | { |
| r14998 | r14999 | |
| 109 | 109 | continue; |
| 110 | 110 | } |
| 111 | 111 | m_channels[ch].freq_timer += m_channels[ch].freq_base; |
| 112 | ||
| 112 | ||
| 113 | 113 | int adpcm_data = m_channels[ch].sample >> m_channels[ch].shift_pos; |
| 114 | 114 | m_channels[ch].shift_pos += m_channels[ch].shift_amount; |
| 115 | 115 | if (m_channels[ch].shift_pos & 0x10) |
| r14998 | r14999 | |
| 122 | 122 | |
| 123 | 123 | adpcm_data |= (m_channels[ch].sample << (m_channels[ch].shift_amount - m_channels[ch].shift_pos)); |
| 124 | 124 | } |
| 125 | ||
| 125 | ||
| 126 | 126 | adpcm_data = m_channels[ch].m_adpcm.clock(adpcm_data & m_channels[ch].shift_mask); |
| 127 | ||
| 127 | ||
| 128 | 128 | m_channels[ch].output_r = adpcm_data * m_channels[ch].vol_r / 128; |
| 129 | 129 | m_channels[ch].output_l = adpcm_data * m_channels[ch].vol_l / 128; |
| 130 | 130 | mix_r += m_channels[ch].output_r; |
| 131 | 131 | mix_l += m_channels[ch].output_l; |
| 132 | 132 | } |
| 133 | ||
| 133 | ||
| 134 | 134 | outputs[0][i] = mix_r / 16; |
| 135 | 135 | outputs[1][i] = mix_l / 16; |
| 136 | 136 | } |
| r14998 | r14999 | |
| 146 | 146 | switch (reg & 3) |
| 147 | 147 | { |
| 148 | 148 | // 0, 1: address |
| 149 | ||
| 149 | ||
| 150 | 150 | // 2: frequency |
| 151 | 151 | case 2: |
| 152 | 152 | m_channels[ch].freq_base = (0x1ff - (data & 0xff)) << (~data >> 8 & 3); |
| r14998 | r14999 | |
| 157 | 157 | m_channels[ch].vol_r = m_lut_volume[data & 0xff]; |
| 158 | 158 | m_channels[ch].vol_l = m_lut_volume[data >> 8 & 0xff]; |
| 159 | 159 | break; |
| 160 | ||
| 160 | ||
| 161 | 161 | default: |
| 162 | 162 | break; |
| 163 | 163 | } |
| 164 | 164 | } |
| 165 | ||
| 165 | ||
| 166 | 166 | // global regs |
| 167 | 167 | else |
| 168 | 168 | { |
| r14998 | r14999 | |
| 177 | 177 | UINT32 address = m_regs[ch << 2 | 1] << 16 | m_regs[ch << 2]; |
| 178 | 178 | UINT16 start = m_rom_base[(address + 0) & m_rom_mask]; |
| 179 | 179 | UINT16 param = m_rom_base[(address + 1) & m_rom_mask]; |
| 180 | ||
| 180 | ||
| 181 | 181 | // check sample start ID |
| 182 | 182 | if (start != 0x7f7f) |
| 183 | 183 | { |
| r14998 | r14999 | |
| 205 | 205 | m_channels[ch].shift_mask = 0xf; |
| 206 | 206 | break; |
| 207 | 207 | } |
| 208 | ||
| 208 | ||
| 209 | 209 | m_channels[ch].address = (address + 4) & m_rom_mask; |
| 210 | 210 | |
| 211 | 211 | m_channels[ch].freq_timer = 0; |
| 212 | 212 | m_channels[ch].shift_pos = 0; |
| 213 | ||
| 213 | ||
| 214 | 214 | m_channels[ch].m_adpcm.reset(); |
| 215 | 215 | m_channels[ch].is_playing = read_sample(ch); |
| 216 | 216 | } |
| 217 | 217 | } |
| 218 | 218 | break; |
| 219 | ||
| 219 | ||
| 220 | 220 | // channel key off (0 has no effect) |
| 221 | 221 | case 0x43: |
| 222 | 222 | for (int ch = 0; ch < 16; ch++) |
| r14998 | r14999 | |
| 237 | 237 | break; |
| 238 | 238 | } |
| 239 | 239 | } |
| 240 | ||
| 240 | ||
| 241 | 241 | m_regs[reg] = data; |
| 242 | 242 | } |
| 243 | 243 | |
| r14998 | r14999 | |
| 256 | 256 | ret |= (1 << ch); |
| 257 | 257 | } |
| 258 | 258 | break; |
| 259 | ||
| 259 | ||
| 260 | 260 | default: |
| 261 | 261 | // 0x41: ? |
| 262 | 262 | break; |
| 263 | 263 | } |
| 264 | ||
| 264 | ||
| 265 | 265 | return ret; |
| 266 | 266 | } |
| 267 | 267 |
| r14998 | r14999 | |
|---|---|---|
| 73 | 73 | |
| 74 | 74 | UINT16 *m_rom_base; |
| 75 | 75 | UINT32 m_rom_mask; |
| 76 | ||
| 76 | ||
| 77 | 77 | int m_lut_volume[0x100]; |
| 78 | ||
| 78 | ||
| 79 | 79 | bool read_sample(int ch); |
| 80 | 80 | void write_reg16(UINT8 reg, UINT16 data); |
| 81 | 81 | }; |
| r14998 | r14999 | |
|---|---|---|
| 926 | 926 | // construction/destruction |
| 927 | 927 | ioport_manager(running_machine &machine); |
| 928 | 928 | time_t initialize(); |
| 929 | ||
| 929 | ||
| 930 | 930 | // getters |
| 931 | 931 | running_machine &machine() const { return m_machine; } |
| 932 | 932 | input_port_config *first_port() const { return m_portlist.first(); } |
| r14998 | r14999 | |
|---|---|---|
| 324 | 324 | /* reset the position */ |
| 325 | 325 | m_position = 0.0; |
| 326 | 326 | m_position_time = device().machine().time().as_double(); |
| 327 | ||
| 327 | ||
| 328 | 328 | /* default channel to 0, speed multiplier to 1 */ |
| 329 | 329 | m_channel = 0; |
| 330 | 330 | m_speed = 1; |
| r14998 | r14999 | |
|---|---|---|
| 101 | 101 | m_name(name), |
| 102 | 102 | m_owner(owner), |
| 103 | 103 | m_next(NULL), |
| 104 | ||
| 104 | ||
| 105 | 105 | m_interface_list(NULL), |
| 106 | 106 | m_execute(NULL), |
| 107 | 107 | m_memory(NULL), |
| 108 | 108 | m_state(NULL), |
| 109 | ||
| 109 | ||
| 110 | 110 | m_configured_clock(clock), |
| 111 | 111 | m_unscaled_clock(clock), |
| 112 | 112 | m_clock(clock), |
| r14998 | r14999 | |
| 141 | 141 | m_searchpath(shortname), |
| 142 | 142 | m_owner(owner), |
| 143 | 143 | m_next(NULL), |
| 144 | ||
| 144 | ||
| 145 | 145 | m_interface_list(NULL), |
| 146 | 146 | m_execute(NULL), |
| 147 | 147 | m_memory(NULL), |
| 148 | 148 | m_state(NULL), |
| 149 | ||
| 149 | ||
| 150 | 150 | m_configured_clock(clock), |
| 151 | 151 | m_unscaled_clock(clock), |
| 152 | 152 | m_clock(clock), |
| r14998 | r14999 | |
| 920 | 920 | memory_share *share = m_base.memshare(m_tag); |
| 921 | 921 | if (share == NULL) |
| 922 | 922 | return NULL; |
| 923 | ||
| 923 | ||
| 924 | 924 | // check the width and warn if not correct |
| 925 | 925 | if (width != 0 && share->width() != width) |
| 926 | 926 | { |
| r14998 | r14999 | |
| 928 | 928 | mame_printf_warning("Shared ptr '%s' found but is width %d, not %d as requested\n", m_tag, share->width(), width); |
| 929 | 929 | return NULL; |
| 930 | 930 | } |
| 931 | ||
| 931 | ||
| 932 | 932 | // return results |
| 933 | 933 | bytes = share->bytes(); |
| 934 | 934 | return share->ptr(); |
| r14998 | r14999 | |
| 937 | 937 | |
| 938 | 938 | //------------------------------------------------- |
| 939 | 939 | // report_missing - report missing objects and |
| 940 | // | |
| 940 | // return true if it's ok | |
| 941 | 941 | //------------------------------------------------- |
| 942 | 942 | |
| 943 | 943 | bool device_t::finder_base::report_missing(bool found, const char *objname, bool required) |
| r14998 | r14999 | |
| 945 | 945 | // just pass through in the found case |
| 946 | 946 | if (found) |
| 947 | 947 | return true; |
| 948 | ||
| 948 | ||
| 949 | 949 | // otherwise, report |
| 950 | 950 | if (required) |
| 951 | 951 | mame_printf_error("Required %s '%s' not found\n", objname, m_tag); |
| r14998 | r14999 | |
|---|---|---|
| 569 | 569 | // finder |
| 570 | 570 | virtual bool findit() |
| 571 | 571 | { |
| 572 | this->m_target = reinterpret_cast<_PointerType *>(this->find_memory(m_width, m_bytes, _Required)); | |
| 572 | this->m_target = reinterpret_cast<_PointerType *>(this->find_memory(m_width, m_bytes, _Required)); | |
| 573 | 573 | return this->report_missing(this->m_target != NULL, "shared pointer", _Required); |
| 574 | 574 | } |
| 575 | 575 | |
| r14998 | r14999 | |
| 604 | 604 | class device_t::shared_ptr_array_finder |
| 605 | 605 | { |
| 606 | 606 | typedef shared_ptr_finder<_PointerType, _Required> shared_ptr_type; |
| 607 | ||
| 607 | ||
| 608 | 608 | public: |
| 609 | 609 | // construction/destruction |
| 610 | 610 | shared_ptr_array_finder(device_t &base, const char *basetag, UINT8 width = sizeof(_PointerType) * 8) |
| r14998 | r14999 | |
| 612 | 612 | for (int index = 0; index < _Count; index++) |
| 613 | 613 | m_array[index] = global_alloc(shared_ptr_type(base, m_tag[index].format("%s.%d", basetag, index), width)); |
| 614 | 614 | } |
| 615 | ||
| 615 | ||
| 616 | 616 | virtual ~shared_ptr_array_finder() |
| 617 | 617 | { |
| 618 | 618 | for (int index = 0; index < _Count; index++) |
| r14998 | r14999 | |
|---|---|---|
| 4390 | 4390 | |
| 4391 | 4391 | |
| 4392 | 4392 | //------------------------------------------------- |
| 4393 | // configure_decrypted_entry - configure a | |
| 4393 | // configure_decrypted_entry - configure a | |
| 4394 | 4394 | // decrypted entry |
| 4395 | 4395 | //------------------------------------------------- |
| 4396 | 4396 | |
| r14998 | r14999 | |
| 4414 | 4414 | |
| 4415 | 4415 | |
| 4416 | 4416 | //------------------------------------------------- |
| 4417 | // configure_decrypted_entries - configure | |
| 4417 | // configure_decrypted_entries - configure | |
| 4418 | 4418 | // multiple decrypted entries |
| 4419 | 4419 | //------------------------------------------------- |
| 4420 | 4420 |
| r14998 | r14999 | |
|---|---|---|
| 850 | 850 | |
| 851 | 851 | tagged_list<memory_share> m_sharelist; // map for share lookups |
| 852 | 852 | |
| 853 | tagged_list<memory_region> | |
| 853 | tagged_list<memory_region> | |
| 854 | 854 | }; |
| 855 | 855 | |
| 856 | 856 |
| r14998 | r14999 | |
|---|---|---|
| 532 | 532 | // bind delegates |
| 533 | 533 | m_vblank_interrupt.bind_relative_to(device()); |
| 534 | 534 | m_timed_interrupt.bind_relative_to(device()); |
| 535 | // | |
| 535 | // m_driver_irq.bind_relative_to(device()); | |
| 536 | 536 | |
| 537 | 537 | // fill in the initial states |
| 538 | 538 | execute_interface_iterator iter(device().machine().root_device()); |
| r14998 | r14999 | |
|---|---|---|
| 295 | 295 | // configuration |
| 296 | 296 | bool m_disabled; // disabled from executing? |
| 297 | 297 | device_interrupt_delegate m_vblank_interrupt; // for interrupts tied to VBLANK |
| 298 | device_interrupt_func | |
| 298 | device_interrupt_func | |
| 299 | 299 | const char * m_vblank_interrupt_screen; // the screen that causes the VBLANK interrupt |
| 300 | 300 | device_interrupt_delegate m_timed_interrupt; // for interrupts not tied to VBLANK |
| 301 | device_interrupt_func | |
| 301 | device_interrupt_func | |
| 302 | 302 | attotime m_timed_interrupt_period; // period for periodic interrupts |
| 303 | 303 | bool m_is_octal; // to determine if messages/debugger will show octal or hex |
| 304 | 304 |
| r14998 | r14999 | |
|---|---|---|
| 278 | 278 | m_callbacks[CB_VIDEO_START](); |
| 279 | 279 | else |
| 280 | 280 | video_start(); |
| 281 | ||
| 281 | ||
| 282 | 282 | // save generic states |
| 283 | 283 | save_item(NAME(m_flip_screen_x)); |
| 284 | 284 | save_item(NAME(m_flip_screen_y)); |
| r14998 | r14999 | |
| 447 | 447 | //************************************************************************** |
| 448 | 448 | |
| 449 | 449 | //------------------------------------------------- |
| 450 | // soundlatch_sync_callback - time-delayed | |
| 450 | // soundlatch_sync_callback - time-delayed | |
| 451 | 451 | // callback to set a latch value |
| 452 | 452 | //------------------------------------------------- |
| 453 | 453 | |
| r14998 | r14999 | |
| 486 | 486 | // reading from sound latches |
| 487 | 487 | //------------------------------------------------- |
| 488 | 488 | |
| 489 | READ8_MEMBER( driver_device::soundlatch_byte_r ) | |
| 489 | READ8_MEMBER( driver_device::soundlatch_byte_r ) | |
| 490 | 490 | READ16_MEMBER( driver_device::soundlatch_word_r ) { return m_latched_value[0]; } |
| 491 | 491 | READ8_MEMBER( driver_device::soundlatch2_byte_r ) { return m_latched_value[1]; } |
| 492 | 492 | READ16_MEMBER( driver_device::soundlatch2_word_r ) { return m_latched_value[1]; } |
| r14998 | r14999 | |
| 591 | 591 | // normalize to all 1 |
| 592 | 592 | if (on) |
| 593 | 593 | on = ~0; |
| 594 | ||
| 594 | ||
| 595 | 595 | // if something's changed, handle it |
| 596 | 596 | if (m_flip_screen_x != on) |
| 597 | 597 | { |
| r14998 | r14999 | |
| 610 | 610 | // normalize to all 1 |
| 611 | 611 | if (on) |
| 612 | 612 | on = ~0; |
| 613 | ||
| 613 | ||
| 614 | 614 | // if something's changed, handle it |
| 615 | 615 | if (m_flip_screen_y != on) |
| 616 | 616 | { |
| r14998 | r14999 | |
|---|---|---|
| 154 | 154 | // construction/destruction |
| 155 | 155 | driver_device(const machine_config &mconfig, device_type type, const char *tag); |
| 156 | 156 | virtual ~driver_device(); |
| 157 | ||
| 157 | ||
| 158 | 158 | // getters |
| 159 | 159 | const game_driver &system() const { assert(m_system != NULL); return *m_system; } |
| 160 | 160 | |
| r14998 | r14999 | |
| 182 | 182 | { |
| 183 | 183 | (downcast<_DriverClass &>(device).*_Function)(); |
| 184 | 184 | } |
| 185 | ||
| 186 | // generic interrupt generators | |
| 185 | ||
| 186 | // generic interrupt generators | |
| 187 | 187 | void generic_pulse_irq_line(device_execute_interface &exec, int irqline, int cycles); |
| 188 | 188 | void generic_pulse_irq_line_and_vector(device_execute_interface &exec, int irqline, int vector, int cycles); |
| 189 | 189 | |
| r14998 | r14999 | |
| 348 | 348 | // 8-8-8 RGB palette write handlers |
| 349 | 349 | DECLARE_WRITE16_MEMBER( paletteram_xrgb_word_be_w ); |
| 350 | 350 | DECLARE_WRITE16_MEMBER( paletteram_xbgr_word_be_w ); |
| 351 | ||
| 351 | ||
| 352 | 352 | // generic input port helpers |
| 353 | 353 | // custom handler |
| 354 | 354 | DECLARE_CUSTOM_INPUT_MEMBER( custom_port_read ); |
| r14998 | r14999 | |
| 397 | 397 | // internal state |
| 398 | 398 | const game_driver * m_system; // pointer to the game driver |
| 399 | 399 | driver_callback_delegate m_callbacks[CB_COUNT]; // start/reset callbacks |
| 400 | legacy_callback_func | |
| 400 | legacy_callback_func | |
| 401 | 401 | |
| 402 | 402 | // generic audio |
| 403 | 403 | UINT16 m_latch_clear_value; |
| r14998 | r14999 | |
| 405 | 405 | UINT8 m_latch_read[4]; |
| 406 | 406 | |
| 407 | 407 | // generic video |
| 408 | UINT32 m_flip_screen_x; | |
| 409 | UINT32 m_flip_screen_y; | |
| 408 | UINT32 m_flip_screen_x; | |
| 409 | UINT32 m_flip_screen_y; | |
| 410 | 410 | }; |
| 411 | 411 | |
| 412 | 412 |
| r14998 | r14999 | |
|---|---|---|
| 161 | 161 | static const float128 float128_ln2inv2 = |
| 162 | 162 | packFloat_128(U64(0x400071547652b82f), U64(0xe1777d0ffda0d23a)); |
| 163 | 163 | |
| 164 | #define SQRT2_HALF_SIG | |
| 164 | #define SQRT2_HALF_SIG | |
| 165 | 165 | |
| 166 | 166 | extern float128 OddPoly(float128 x, float128 *arr, unsigned n); |
| 167 | 167 | |
| r14998 | r14999 | |
| 277 | 277 | invalid: |
| 278 | 278 | float_raise(float_flag_invalid); |
| 279 | 279 | return floatx80_default_nan; |
| 280 | | |
| 280 | | |
| 281 | 281 | else { |
| 282 | 282 | if (bExp == 0) { |
| 283 | 283 | if (bSig == 0) goto invalid; |
| r14998 | r14999 | |
| 391 | 391 | invalid: |
| 392 | 392 | float_raise(float_flag_invalid); |
| 393 | 393 | return floatx80_default_nan; |
| 394 | | |
| 394 | | |
| 395 | 395 | else { |
| 396 | 396 | if (bExp == 0) { |
| 397 | 397 | if (bSig == 0) goto invalid; |
| r14998 | r14999 | |
|---|---|---|
| 90 | 90 | header[2] = 0x57; |
| 91 | 91 | header[9] = 0xe3; |
| 92 | 92 | } |
| 93 | ||
| 93 | ||
| 94 | 94 | for (i = 0; i < 10; i++) // header |
| 95 | 95 | { |
| 96 | 96 | err = coladam_put_byte(cass, channel, time_index, header[i], prev_sign); |
| r14998 | r14999 | |
| 120 | 120 | err = coladam_put_byte(cass, channel, time_index, 0x00, prev_sign); |
| 121 | 121 | return err; |
| 122 | 122 | } |
| 123 | ||
| 124 | 123 | |
| 124 | ||
| 125 | 125 | static casserr_t coladam_ddp_load( cassette_image *cass ) |
| 126 | 126 | { |
| 127 | 127 | double time = 0.; |
| r14998 | r14999 | |
| 131 | 131 | |
| 132 | 132 | // It would appear that data packs that originally had the type GW data layout and headers work fine when converted to type |
| 133 | 133 | // HE. Thus we set all tapes to type HE. |
| 134 | ||
| 134 | ||
| 135 | 135 | int layout_type = TYPE_HE; |
| 136 | ||
| 136 | ||
| 137 | 137 | // Track 0 |
| 138 | 138 | for ( i = 0; i < 2753; i++ ) // leading zero bytes |
| 139 | 139 | { |
| r14998 | r14999 | |
| 193 | 193 | err = coladam_put_block(cass, 1, &time, &prev_sign, block, buffer, layout_type); |
| 194 | 194 | } |
| 195 | 195 | } |
| 196 | ||
| 196 | ||
| 197 | 197 | if (err) |
| 198 | 198 | return err; |
| 199 | ||
| 199 | ||
| 200 | 200 | return CASSETTE_ERROR_SUCCESS; |
| 201 | 201 | } |
| 202 | 202 |
| r14998 | r14999 | |
|---|---|---|
| 1 | 1 | /********************************************************************* |
| 2 | 2 | |
| 3 | ||
| 3 | ap2_dsk.c | |
| 4 | 4 | |
| 5 | ||
| 5 | Apple II disk images | |
| 6 | 6 | |
| 7 | 7 | *********************************************************************/ |
| 8 | 8 | |
| r14998 | r14999 | |
| 514 | 514 | |
| 515 | 515 | /*************************************************************************** |
| 516 | 516 | |
| 517 | ||
| 517 | New implementation | |
| 518 | 518 | |
| 519 | 519 | **************************************************************************** |
| 520 | 520 | |
| 521 | Copyright Olivier Galibert, Lord Nightmare and Balrog | |
| 522 | All rights reserved. | |
| 521 | Copyright Olivier Galibert, Lord Nightmare and Balrog | |
| 522 | All rights reserved. | |
| 523 | 523 | |
| 524 | Redistribution and use in source and binary forms, with or without | |
| 525 | modification, are permitted provided that the following conditions are | |
| 526 | met: | |
| 524 | Redistribution and use in source and binary forms, with or without | |
| 525 | modification, are permitted provided that the following conditions are | |
| 526 | met: | |
| 527 | 527 | |
| 528 | * Redistributions of source code must retain the above copyright | |
| 529 | notice, this list of conditions and the following disclaimer. | |
| 530 | * Redistributions in binary form must reproduce the above copyright | |
| 531 | notice, this list of conditions and the following disclaimer in | |
| 532 | the documentation and/or other materials provided with the | |
| 533 | distribution. | |
| 534 | * Neither the name 'MAME' nor the names of its contributors may be | |
| 535 | used to endorse or promote products derived from this software | |
| 536 | without specific prior written permission. | |
| 528 | * Redistributions of source code must retain the above copyright | |
| 529 | notice, this list of conditions and the following disclaimer. | |
| 530 | * Redistributions in binary form must reproduce the above copyright | |
| 531 | notice, this list of conditions and the following disclaimer in | |
| 532 | the documentation and/or other materials provided with the | |
| 533 | distribution. | |
| 534 | * Neither the name 'MAME' nor the names of its contributors may be | |
| 535 | used to endorse or promote products derived from this software | |
| 536 | without specific prior written permission. | |
| 537 | 537 | |
| 538 | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR | |
| 539 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
| 540 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
| 541 | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, | |
| 542 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
| 543 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
| 544 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 545 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
| 546 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |
| 547 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
| 548 | POSSIBILITY OF SUCH DAMAGE. | |
| 538 | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR | |
| 539 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
| 540 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
| 541 | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, | |
| 542 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
| 543 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
| 544 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 545 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
| 546 | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING | |
| 547 | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
| 548 | POSSIBILITY OF SUCH DAMAGE. | |
| 549 | 549 | |
| 550 | 550 | ****************************************************************************/ |
| 551 | 551 | |
| r14998 | r14999 | |
| 745 | 745 | for(int i=0; i<0x156; i++) { |
| 746 | 746 | data[i] = gcr6bw_tb[gb(buf, ts, pos, wrap)] ^ c; |
| 747 | 747 | c = data[i]; |
| 748 | // printf("%02x ", c); | |
| 749 | // if (((i&0xf)+1)==0x10) printf("\n"); | |
| 748 | // printf("%02x ", c); | |
| 749 | // if (((i&0xf)+1)==0x10) printf("\n"); | |
| 750 | 750 | } |
| 751 | 751 | // read the checksum byte |
| 752 | 752 | data[0x156] = gcr6bw_tb[gb(buf,ts,pos,wrap)]; |
| r14998 | r14999 | |
| 819 | 819 | return true; |
| 820 | 820 | } |
| 821 | 821 | |
| 822 | const floppy_format_type FLOPPY_A216S_FORMAT = &floppy_image_format_creator<a2_16sect_format>; | |
| No newline at end of file | ||
| 822 | const floppy_format_type FLOPPY_A216S_FORMAT = &floppy_image_format_creator<a2_16sect_format>; |
| r14998 | r14999 | |
|---|---|---|
| 1 | 1 | /********************************************************************* |
| 2 | 2 | |
| 3 | ||
| 3 | ap2_dsk.h | |
| 4 | 4 | |
| 5 | ||
| 5 | Apple II disk images | |
| 6 | 6 | |
| 7 | 7 | *********************************************************************/ |
| 8 | 8 | |
| r14998 | r14999 | |
| 14 | 14 | |
| 15 | 15 | /*************************************************************************** |
| 16 | 16 | |
| 17 | ||
| 17 | Constants | |
| 18 | 18 | |
| 19 | 19 | ***************************************************************************/ |
| 20 | 20 | |
| r14998 | r14999 | |
| 55 | 55 | |
| 56 | 56 | extern const floppy_format_type FLOPPY_A216S_FORMAT; |
| 57 | 57 | |
| 58 | #endif /* AP2_DISK_H */ | |
| No newline at end of file | ||
| 58 | #endif /* AP2_DISK_H */ |
| r14998 | r14999 | |
|---|---|---|
| 38 | 38 | ***************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | extern const char build_version[]; |
| 41 | const char build_version[] = "0.145u | |
| 41 | const char build_version[] = "0.145u7 ("__DATE__")"; |
| Previous | 15994 Revisions | Next |