diff options
Diffstat (limited to 'src/devices/bus/cpc/smartwatch.cpp')
-rw-r--r-- | src/devices/bus/cpc/smartwatch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/bus/cpc/smartwatch.cpp b/src/devices/bus/cpc/smartwatch.cpp index eef1fb4a14a..bd039c40735 100644 --- a/src/devices/bus/cpc/smartwatch.cpp +++ b/src/devices/bus/cpc/smartwatch.cpp @@ -62,8 +62,7 @@ void cpc_smartwatch_device::device_start() void cpc_smartwatch_device::device_reset() { - device_t* cpu = machine().device(":maincpu"); - address_space& space = cpu->memory().space(AS_PROGRAM); + address_space &space = m_slot->cpu().space(AS_PROGRAM); space.install_read_handler(0xc000,0xc001,read8_delegate(FUNC(cpc_smartwatch_device::rtc_w),this)); space.install_read_handler(0xc004,0xc004,read8_delegate(FUNC(cpc_smartwatch_device::rtc_r),this)); m_bank = membank(":bank7"); |