diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-12-14 14:24:12 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-12-14 14:26:07 -0500 |
commit | 5384d7b24e9128e0d4905dbfd8afefd71bf50570 (patch) | |
tree | 7eb7214b4c0b819bd5a3383e68280f297b7200df /src/devices/bus/cpc/amdrum.cpp | |
parent | bde657fff1299dae958740280ea33bd98dafff5f (diff) |
cpcexp: Modernization (nw)
- Replace MCFG_ macros with devcb3
- Remove most instances of machine().device
- Add bus clock
Diffstat (limited to 'src/devices/bus/cpc/amdrum.cpp')
-rw-r--r-- | src/devices/bus/cpc/amdrum.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/devices/bus/cpc/amdrum.cpp b/src/devices/bus/cpc/amdrum.cpp index dc2253a79a1..b0c0610b607 100644 --- a/src/devices/bus/cpc/amdrum.cpp +++ b/src/devices/bus/cpc/amdrum.cpp @@ -47,10 +47,8 @@ cpc_amdrum_device::cpc_amdrum_device(const machine_config &mconfig, const char * void cpc_amdrum_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(0xff00,0xffff,write8_delegate(FUNC(cpc_amdrum_device::dac_w),this)); } |