summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/apexc.cpp
diff options
context:
space:
mode:
authorGravatarGravatar smf- <smf-@users.noreply.github.com>2016-10-28 14:31:02 +0100
committerGravatarGravatar smf- <smf-@users.noreply.github.com>2016-10-28 14:32:04 +0100
commit914f0e1ff83058e57d9e40ff894a5e9c13a7d6b2 (patch)
tree7a63f376b69ce53ba2d62d672c77e19b349efdf1 /src/mame/drivers/apexc.cpp
parent19d4f61756165f9a836f4773a49c3c1d044e08c3 (diff)
downloadmame-914f0e1ff83058e57d9e40ff894a5e9c13a7d6b2.tar.xz
mame-914f0e1ff83058e57d9e40ff894a5e9c13a7d6b2.zip
sync pc/curpc/ml/ws (nw)
Diffstat (limited to 'src/mame/drivers/apexc.cpp')
-rw-r--r--src/mame/drivers/apexc.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index 8dcb2dcd67b..a4d9897907b 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -428,7 +428,7 @@ INTERRUPT_GEN_MEMBER(apexc_state::apexc_interrupt)
if (control_transitions & panel_run)
{ /* toggle run/stop state */
- device.state().set_state_int(APEXC_STATE, ! device.state().state_int(APEXC_STATE));
+ m_maincpu->set_state_int(APEXC_STATE, ! m_maincpu->state_int(APEXC_STATE));
}
while (control_transitions & (panel_CR | panel_A | panel_R | panel_ML | panel_HB))
@@ -470,10 +470,10 @@ INTERRUPT_GEN_MEMBER(apexc_state::apexc_interrupt)
/* read/write register #reg_id */
if (control_keys & panel_write)
/* write reg */
- device.state().set_state_int(reg_id, m_panel_data_reg);
+ m_maincpu->set_state_int(reg_id, m_panel_data_reg);
else
/* read reg */
- m_panel_data_reg = device.state().state_int(reg_id);
+ m_panel_data_reg = m_maincpu->state_int(reg_id);
}
}
@@ -482,11 +482,11 @@ INTERRUPT_GEN_MEMBER(apexc_state::apexc_interrupt)
if (control_keys & panel_write) {
/* write memory */
- space.write_dword(device.state().state_int(APEXC_ML_FULL)<<2, m_panel_data_reg);
+ space.write_dword(m_maincpu->pc(), m_panel_data_reg);
}
else {
/* read memory */
- m_panel_data_reg = space.read_dword(device.state().state_int(APEXC_ML_FULL)<<2);
+ m_panel_data_reg = space.read_dword(m_maincpu->pc());
}
}