summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/system1.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2013-04-12 08:30:34 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2013-04-12 08:30:34 +0000
commit2938d4c348f4891590af3ce11f707947b83ad05d (patch)
treed1fcd28051b6311051db1e40be7cc637920de588 /src/mame/drivers/system1.c
parent7a4840affd77dc7d9e3383170a1d239fe4a13a72 (diff)
some cleanup and vsnes change to compile on vs compile (nw)
Diffstat (limited to 'src/mame/drivers/system1.c')
-rw-r--r--src/mame/drivers/system1.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mame/drivers/system1.c b/src/mame/drivers/system1.c
index 31a38e392fb..d1a845f44d2 100644
--- a/src/mame/drivers/system1.c
+++ b/src/mame/drivers/system1.c
@@ -410,11 +410,9 @@ void system1_state::bank0c_custom_w(UINT8 data, UINT8 prevdata)
WRITE8_MEMBER(system1_state::videomode_w)
{
- device_t *i8751 = machine().device("mcu");
-
/* bit 6 is connected to the 8751 IRQ */
- if (i8751 != NULL)
- i8751->execute().set_input_line(MCS51_INT1_LINE, (data & 0x40) ? CLEAR_LINE : ASSERT_LINE);
+ if (m_mcu != NULL)
+ m_mcu->set_input_line(MCS51_INT1_LINE, (data & 0x40) ? CLEAR_LINE : ASSERT_LINE);
/* handle any custom banking or other stuff */
if (m_videomode_custom != NULL)
@@ -623,9 +621,8 @@ TIMER_DEVICE_CALLBACK_MEMBER(system1_state::mcu_t0_callback)
choplift is even more picky about it, affecting scroll speed
*/
- device_t *mcu = machine().device("mcu");
- mcu->execute().set_input_line(MCS51_T0_LINE, ASSERT_LINE);
- mcu->execute().set_input_line(MCS51_T0_LINE, CLEAR_LINE);
+ m_mcu->set_input_line(MCS51_T0_LINE, ASSERT_LINE);
+ m_mcu->set_input_line(MCS51_T0_LINE, CLEAR_LINE);
}