diff options
Diffstat (limited to 'src/mame/drivers/trucocl.c')
-rw-r--r-- | src/mame/drivers/trucocl.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mame/drivers/trucocl.c b/src/mame/drivers/trucocl.c index 8e49c87996b..50be1a53aa1 100644 --- a/src/mame/drivers/trucocl.c +++ b/src/mame/drivers/trucocl.c @@ -5,8 +5,8 @@ Truco Clemente (c) 1991 Miky SRL driver by Ernesto Corvi Notes: -- Audio is almost there. - After one game you can't play anymore. +- Audio is almost there. - I think this runs on a heavily modified PacMan type of board. ---------------------------------- @@ -39,7 +39,9 @@ Daughterboard: Custom made, plugged in the 2 roms and Z80 mainboard sockets. static WRITE8_HANDLER( irq_enable_w ) { - interrupt_enable_w( space, 0, (~data) & 1 ); + trucocl_state *state = space->machine().driver_data<trucocl_state>(); + + state->m_irq_mask = (data & 1) ^ 1; } @@ -123,7 +125,11 @@ GFXDECODE_END static INTERRUPT_GEN( trucocl_interrupt ) { - irq0_line_hold(device); + trucocl_state *state = device->machine().driver_data<trucocl_state>(); + + if(state->m_irq_mask) + device_set_input_line(device, 0, HOLD_LINE); + } static MACHINE_CONFIG_START( trucocl, trucocl_state ) @@ -191,4 +197,4 @@ static DRIVER_INIT( trucocl ) /******************************************************************************/ /* YEAR NAME PARENT MACHINE INPUT INIT MONITOR */ -GAME( 1991, trucocl, 0, trucocl, trucocl, trucocl, ROT0, "Miky SRL", "Truco Clemente", GAME_IMPERFECT_SOUND ) +GAME( 1991, trucocl, 0, trucocl, trucocl, trucocl, ROT0, "Miky SRL", "Truco Clemente", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |