summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/cbus/pc9801_26.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-01-02 09:40:14 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-01-02 09:40:14 -0500
commit9d1bf83edf614c842c9f02eb43452d6292199c8c (patch)
tree957edfbd1ddc22bb0960e984b99948d8ebdf7309 /src/devices/bus/cbus/pc9801_26.cpp
parent5132a3460c022e3a2118775e3a1ce98927574a9b (diff)
cbus: Remove machine().firstcpu calls (nw)
Diffstat (limited to 'src/devices/bus/cbus/pc9801_26.cpp')
-rw-r--r--src/devices/bus/cbus/pc9801_26.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/bus/cbus/pc9801_26.cpp b/src/devices/bus/cbus/pc9801_26.cpp
index b9e2d84eb3d..5a2b8bb611b 100644
--- a/src/devices/bus/cbus/pc9801_26.cpp
+++ b/src/devices/bus/cbus/pc9801_26.cpp
@@ -109,7 +109,7 @@ ioport_constructor pc9801_26_device::device_input_ports() const
pc9801_26_device::pc9801_26_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, PC9801_26, tag, owner, clock),
-// m_maincpu(*this, "^maincpu"),
+ m_bus(*this, DEVICE_SELF_OWNER),
m_opn(*this, "opn")
{
}
@@ -130,17 +130,17 @@ void pc9801_26_device::device_validity_check(validity_checker &valid) const
void pc9801_26_device::install_device(offs_t start, offs_t end, read8_delegate rhandler, write8_delegate whandler)
{
- int buswidth = machine().firstcpu->space_config(AS_IO)->m_data_width;
+ int buswidth = m_bus->io_space().data_width();
switch(buswidth)
{
case 8:
- machine().firstcpu->space(AS_IO).install_readwrite_handler(start, end, rhandler, whandler, 0);
+ m_bus->io_space().install_readwrite_handler(start, end, rhandler, whandler, 0);
break;
case 16:
- machine().firstcpu->space(AS_IO).install_readwrite_handler(start, end, rhandler, whandler, 0xffff);
+ m_bus->io_space().install_readwrite_handler(start, end, rhandler, whandler, 0xffff);
break;
case 32:
- machine().firstcpu->space(AS_IO).install_readwrite_handler(start, end, rhandler, whandler, 0xffffffff);
+ m_bus->io_space().install_readwrite_handler(start, end, rhandler, whandler, 0xffffffff);
break;
default:
fatalerror("PC-9801-26: Bus width %d not supported\n", buswidth);