diff options
Diffstat (limited to 'src/mame/drivers/taito_f2.cpp')
-rw-r--r-- | src/mame/drivers/taito_f2.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mame/drivers/taito_f2.cpp b/src/mame/drivers/taito_f2.cpp index 8c72d7fd38a..be0f4ad0cd7 100644 --- a/src/mame/drivers/taito_f2.cpp +++ b/src/mame/drivers/taito_f2.cpp @@ -283,6 +283,14 @@ Notes: GAME INPUTS **********************************************************/ +WRITE8_MEMBER(taitof2_state::coin_nibble_w) +{ + machine().bookkeeping().coin_lockout_w(0, ~data & 0x01); + machine().bookkeeping().coin_lockout_w(1, ~data & 0x02); + machine().bookkeeping().coin_counter_w(0, data & 0x04); + machine().bookkeeping().coin_counter_w(1, data & 0x08); +} + WRITE16_MEMBER(taitof2_state::growl_coin_word_w)/* what about coins 3&4 ?? */ { if (ACCESSING_BITS_0_7) @@ -2903,6 +2911,7 @@ static MACHINE_CONFIG_DERIVED( taito_f2_tc0220ioc, taito_f2 ) MCFG_TC0220IOC_READ_1_CB(IOPORT("DSWB")) MCFG_TC0220IOC_READ_2_CB(IOPORT("IN0")) MCFG_TC0220IOC_READ_3_CB(IOPORT("IN1")) + MCFG_TC0220IOC_WRITE_4_CB(WRITE8(taitof2_state, coin_nibble_w)) MCFG_TC0220IOC_READ_7_CB(IOPORT("IN2")) MACHINE_CONFIG_END @@ -2915,6 +2924,7 @@ static MACHINE_CONFIG_DERIVED( taito_f2_tc0510nio, taito_f2 ) MCFG_TC0510NIO_READ_1_CB(IOPORT("DSWB")) MCFG_TC0510NIO_READ_2_CB(IOPORT("IN0")) MCFG_TC0510NIO_READ_3_CB(IOPORT("IN1")) + MCFG_TC0510NIO_WRITE_4_CB(WRITE8(taitof2_state, coin_nibble_w)) MCFG_TC0510NIO_READ_7_CB(IOPORT("IN2")) MCFG_PALETTE_MODIFY("palette") MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) @@ -3677,6 +3687,7 @@ static MACHINE_CONFIG_START( cameltrya ) MCFG_TC0220IOC_READ_1_CB(IOPORT("DSWB")) MCFG_TC0220IOC_READ_2_CB(IOPORT("IN0")) MCFG_TC0220IOC_READ_3_CB(IOPORT("IN1")) + MCFG_TC0220IOC_WRITE_4_CB(WRITE8(taitof2_state, coin_nibble_w)) MCFG_TC0220IOC_READ_7_CB(IOPORT("IN2")) /* video hardware */ @@ -3745,6 +3756,7 @@ static MACHINE_CONFIG_START( driveout ) MCFG_TC0510NIO_READ_1_CB(IOPORT("DSWB")) MCFG_TC0510NIO_READ_2_CB(IOPORT("IN0")) MCFG_TC0510NIO_READ_3_CB(IOPORT("IN1")) + MCFG_TC0510NIO_WRITE_4_CB(WRITE8(taitof2_state, coin_nibble_w)) MCFG_TC0510NIO_READ_7_CB(IOPORT("IN2")) /* video hardware */ |