summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Nigel Barnes <Pernod70@users.noreply.github.com>2018-09-22 14:40:56 +0100
committer Nigel Barnes <Pernod70@users.noreply.github.com>2018-09-22 14:43:26 +0100
commite2a2e7b839e390a6d30b63515bca1ceb5081e2d4 (patch)
tree990edf66d1e81515fe3fae397e355ba018beb725
parent920a930b1444bd242b7a66e53a3016ef86d1a1a0 (diff)
iq151: Removed machine().device from slot devices (nw)
-rw-r--r--src/devices/bus/iq151/grafik.cpp6
-rw-r--r--src/devices/bus/iq151/staper.cpp8
2 files changed, 4 insertions, 10 deletions
diff --git a/src/devices/bus/iq151/grafik.cpp b/src/devices/bus/iq151/grafik.cpp
index 3ff61a188de..96ea79e86ca 100644
--- a/src/devices/bus/iq151/grafik.cpp
+++ b/src/devices/bus/iq151/grafik.cpp
@@ -121,8 +121,7 @@ void iq151_grafik_device::io_read(offs_t offset, uint8_t &data)
{
if (offset >= 0xd0 && offset < 0xd4)
{
- address_space& space = machine().device("maincpu")->memory().space(AS_IO);
- data = m_ppi8255->read(space, offset & 3);
+ data = m_ppi8255->read(machine().dummy_space(), offset & 3);
}
else if (offset == 0xd4)
{
@@ -141,8 +140,7 @@ void iq151_grafik_device::io_write(offs_t offset, uint8_t data)
{
if (offset >= 0xd0 && offset < 0xd4)
{
- address_space& space = machine().device("maincpu")->memory().space(AS_IO);
- m_ppi8255->write(space, offset & 3, data);
+ m_ppi8255->write(machine().dummy_space(), offset & 3, data);
}
else if (offset == 0xd4)
{
diff --git a/src/devices/bus/iq151/staper.cpp b/src/devices/bus/iq151/staper.cpp
index 2c7acb98bfa..8fc13d77781 100644
--- a/src/devices/bus/iq151/staper.cpp
+++ b/src/devices/bus/iq151/staper.cpp
@@ -87,10 +87,8 @@ void iq151_staper_device::device_timer(emu_timer &timer, device_timer_id id, int
void iq151_staper_device::io_read(offs_t offset, uint8_t &data)
{
- address_space& space = machine().device("maincpu")->memory().space(AS_IO);
-
if (offset >= 0xf8 && offset < 0xfc)
- data = m_ppi->read(space, offset & 0x03);
+ data = m_ppi->read(machine().dummy_space(), offset & 0x03);
}
//-------------------------------------------------
@@ -99,10 +97,8 @@ void iq151_staper_device::io_read(offs_t offset, uint8_t &data)
void iq151_staper_device::io_write(offs_t offset, uint8_t data)
{
- address_space& space = machine().device("maincpu")->memory().space(AS_IO);
-
if (offset >= 0xf8 && offset < 0xfc)
- m_ppi->write(space, offset & 0x03, data);
+ m_ppi->write(machine().dummy_space(), offset & 0x03, data);
}