summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/x68k_scsiext.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/x68k_scsiext.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/x68k_scsiext.c')
-rw-r--r--src/mess/machine/x68k_scsiext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/machine/x68k_scsiext.c b/src/mess/machine/x68k_scsiext.c
index b9e33e81c0e..4c207dd2906 100644
--- a/src/mess/machine/x68k_scsiext.c
+++ b/src/mess/machine/x68k_scsiext.c
@@ -68,13 +68,13 @@ void x68k_scsiext_device::device_start()
device_t* cpu = machine().device("maincpu");
UINT8* ROM;
astring temp;
- address_space* space = cpu->memory().space(AS_PROGRAM);
+ address_space& space = *cpu->memory().space(AS_PROGRAM);
m_slot = dynamic_cast<x68k_expansion_slot_device *>(owner());
- space->install_read_bank(0xea0020,0xea1fff,0,0,"scsi_ext");
- space->unmap_write(0xea0020,0xea1fff,0,0);
+ space.install_read_bank(0xea0020,0xea1fff,0,0,"scsi_ext");
+ space.unmap_write(0xea0020,0xea1fff,0,0);
ROM = machine().root_device().memregion(subtag(temp,"scsiexrom"))->base();
machine().root_device().membank("scsi_ext")->set_base(ROM);
- space->install_readwrite_handler(0xea0000,0xea001f,0,0,read8_delegate(FUNC(x68k_scsiext_device::register_r),this),write8_delegate(FUNC(x68k_scsiext_device::register_w),this),0x00ff00ff);
+ space.install_readwrite_handler(0xea0000,0xea001f,0,0,read8_delegate(FUNC(x68k_scsiext_device::register_r),this),write8_delegate(FUNC(x68k_scsiext_device::register_w),this),0x00ff00ff);
}
void x68k_scsiext_device::device_reset()