summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/dragon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/dragon.cpp')
-rw-r--r--src/mame/machine/dragon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/machine/dragon.cpp b/src/mame/machine/dragon.cpp
index 2ef1851d7d5..12950837d6d 100644
--- a/src/mame/machine/dragon.cpp
+++ b/src/mame/machine/dragon.cpp
@@ -235,7 +235,7 @@ void d64plus_state::device_start()
{
dragon_state::device_start();
- address_space& space = machine().device("maincpu")->memory().space(AS_PROGRAM);
+ address_space& space = m_maincpu->space(AS_PROGRAM);
space.install_readwrite_handler(0xffe0, 0xffe0, READ8_DEVICE_DELEGATE(m_crtc, mc6845_device, status_r), WRITE8_DEVICE_DELEGATE(m_crtc, mc6845_device, address_w));
space.install_readwrite_handler(0xffe1, 0xffe1, READ8_DEVICE_DELEGATE(m_crtc, mc6845_device, register_r), WRITE8_DEVICE_DELEGATE(m_crtc, mc6845_device, register_w));
space.install_readwrite_handler(0xffe2, 0xffe2, READ8_DELEGATE(d64plus_state, d64plus_6845_disp_r), WRITE8_DELEGATE(d64plus_state, d64plus_bank_w));