summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/iq151_staper.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-17 08:22:16 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-17 08:22:16 +0000
commit3cce7e019e095296b5ce2bb45d19b1209bed961d (patch)
tree4fa76260ac2dee5878fbba70d759ba6a1d4d76bf /src/mess/machine/iq151_staper.c
parent22b4739aded17790b3f1bf31b9da8ff9e6a0860c (diff)
Memory handler normalization, part 2. Change legacy
read/write handlers to take an address_space & instead of an address_space *. Also update pretty much all other functions to take a reference where appropriate. [Aaron Giles]
Diffstat (limited to 'src/mess/machine/iq151_staper.c')
-rw-r--r--src/mess/machine/iq151_staper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/machine/iq151_staper.c b/src/mess/machine/iq151_staper.c
index 2c072c531eb..a43b5015f6a 100644
--- a/src/mess/machine/iq151_staper.c
+++ b/src/mess/machine/iq151_staper.c
@@ -93,10 +93,10 @@ void iq151_staper_device::device_timer(emu_timer &timer, device_timer_id id, int
void iq151_staper_device::io_read(offs_t offset, UINT8 &data)
{
- address_space* space = machine().device("maincpu")->memory().space(AS_IO);
+ 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(space, offset & 0x03);
}
//-------------------------------------------------
@@ -105,10 +105,10 @@ void iq151_staper_device::io_read(offs_t offset, UINT8 &data)
void iq151_staper_device::io_write(offs_t offset, UINT8 data)
{
- address_space* space = machine().device("maincpu")->memory().space(AS_IO);
+ 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(space, offset & 0x03, data);
}