From 3cce7e019e095296b5ce2bb45d19b1209bed961d Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 17 Sep 2012 08:22:16 +0000 Subject: 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] --- src/mess/machine/iq151_staper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mess/machine/iq151_staper.c') 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); } -- cgit v1.2.3-70-g09d2