summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/fm7.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/fm7.c')
-rw-r--r--src/mess/drivers/fm7.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mess/drivers/fm7.c b/src/mess/drivers/fm7.c
index 96eb1823add..481acd1acff 100644
--- a/src/mess/drivers/fm7.c
+++ b/src/mess/drivers/fm7.c
@@ -171,7 +171,7 @@ static void main_irq_set_flag(running_machine &machine, UINT8 flag)
state->m_irq_flags |= flag;
if(state->m_irq_flags != 0)
- cputag_set_input_line(machine,"maincpu",M6809_IRQ_LINE,ASSERT_LINE);
+ machine.device("maincpu")->execute().set_input_line(M6809_IRQ_LINE,ASSERT_LINE);
}
static void main_irq_clear_flag(running_machine &machine, UINT8 flag)
@@ -180,7 +180,7 @@ static void main_irq_clear_flag(running_machine &machine, UINT8 flag)
state->m_irq_flags &= ~flag;
if(state->m_irq_flags == 0)
- cputag_set_input_line(machine,"maincpu",M6809_IRQ_LINE,CLEAR_LINE);
+ machine.device("maincpu")->execute().set_input_line(M6809_IRQ_LINE,CLEAR_LINE);
}
@@ -1217,7 +1217,7 @@ static TIMER_CALLBACK( fm7_subtimer_irq )
{
fm7_state *state = machine.driver_data<fm7_state>();
if(state->m_video.nmi_mask == 0 && state->m_video.sub_halt == 0)
- cputag_set_input_line(machine,"sub",INPUT_LINE_NMI,PULSE_LINE);
+ machine.device("sub")->execute().set_input_line(INPUT_LINE_NMI,PULSE_LINE);
}
// When a key is pressed or released (in scan mode only), an IRQ is generated on the main CPU,
@@ -1237,7 +1237,7 @@ static void key_press(running_machine &machine, UINT16 scancode)
}
else
{
- cputag_set_input_line(machine,"sub",M6809_FIRQ_LINE,ASSERT_LINE);
+ machine.device("sub")->execute().set_input_line(M6809_FIRQ_LINE,ASSERT_LINE);
}
logerror("KEY: sent scancode 0x%03x\n",scancode);
}
@@ -1301,7 +1301,7 @@ static TIMER_CALLBACK( fm7_keyboard_poll )
if(machine.root_device().ioport("key3")->read() & 0x40000)
{
state->m_break_flag = 1;
- cputag_set_input_line(machine,"maincpu",M6809_FIRQ_LINE,ASSERT_LINE);
+ machine.device("maincpu")->execute().set_input_line(M6809_FIRQ_LINE,ASSERT_LINE);
}
else
state->m_break_flag = 0;
@@ -1345,13 +1345,13 @@ static TIMER_CALLBACK( fm7_keyboard_poll )
static IRQ_CALLBACK(fm7_irq_ack)
{
if(irqline == M6809_FIRQ_LINE)
- cputag_set_input_line(device->machine(),"maincpu",irqline,CLEAR_LINE);
+ device->machine().device("maincpu")->execute().set_input_line(irqline,CLEAR_LINE);
return -1;
}
static IRQ_CALLBACK(fm7_sub_irq_ack)
{
- cputag_set_input_line(device->machine(),"sub",irqline,CLEAR_LINE);
+ device->machine().device("sub")->execute().set_input_line(irqline,CLEAR_LINE);
return -1;
}
@@ -1973,7 +1973,7 @@ static MACHINE_RESET(fm7)
if(state->m_type == SYS_FM11)
{
// Probably best to halt the 8088, I'm pretty sure it and the main 6809 should not be running at the same time
- cputag_set_input_line(machine,"x86",INPUT_LINE_HALT,ASSERT_LINE);
+ machine.device("x86")->execute().set_input_line(INPUT_LINE_HALT,ASSERT_LINE);
}
}