diff options
Diffstat (limited to 'src/devices/bus/cpc/hd20.cpp')
-rw-r--r-- | src/devices/bus/cpc/hd20.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/bus/cpc/hd20.cpp b/src/devices/bus/cpc/hd20.cpp index dc8aa960451..3ad082ee90d 100644 --- a/src/devices/bus/cpc/hd20.cpp +++ b/src/devices/bus/cpc/hd20.cpp @@ -55,10 +55,8 @@ cpc_hd20_device::cpc_hd20_device(const machine_config &mconfig, const char *tag, void cpc_hd20_device::device_start() { - device_t* cpu = machine().device("maincpu"); - address_space& space = cpu->memory().space(AS_IO); m_slot = dynamic_cast<cpc_expansion_slot_device *>(owner()); - + address_space &space = m_slot->cpu().space(AS_IO); space.install_write_handler(0xfbe0,0xfbe4,write8_delegate(FUNC(cpc_hd20_device::hdc_w),this)); space.install_read_handler(0xfbe0,0xfbe4,read8_delegate(FUNC(cpc_hd20_device::hdc_r),this)); } |