summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/pasopia7.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-19 19:48:09 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-19 19:48:09 +0000
commit621ac620ae1ca743a66bb52aaf5478da01c3bac6 (patch)
tree2743a87e9077417af7546970d1ea1cc3b8781a63 /src/mess/drivers/pasopia7.c
parent33c77e65bbd4513957f2ece623cee476cf439248 (diff)
Since nobody checks for NULLs anyway, make
device_memory_interface::space() assert against NULL and return a reference, and pushed references throughout all address space usage in the system. Added a has_space() method to check for those rare case when it is ambiguous. [Aaron Giles] Also reinstated the generic space and added fatal error handlers if anyone tries to actually read/write from it.
Diffstat (limited to 'src/mess/drivers/pasopia7.c')
-rw-r--r--src/mess/drivers/pasopia7.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/drivers/pasopia7.c b/src/mess/drivers/pasopia7.c
index 18f9ba2832b..cfb98f3ff74 100644
--- a/src/mess/drivers/pasopia7.c
+++ b/src/mess/drivers/pasopia7.c
@@ -579,12 +579,12 @@ READ8_MEMBER( pasopia7_state::pasopia7_io_r )
if(m_mio_sel)
{
- address_space *ram_space = m_maincpu->space(AS_PROGRAM);
+ address_space &ram_space = m_maincpu->space(AS_PROGRAM);
m_mio_sel = 0;
//printf("%08x\n",offset);
//return 0x0d; // hack: this is used for reading the keyboard data, we can fake it a little ... (modify fda4)
- return ram_space->read_byte(offset);
+ return ram_space.read_byte(offset);
}
io_port = offset & 0xff; //trim down to 8-bit bus
@@ -630,9 +630,9 @@ WRITE8_MEMBER( pasopia7_state::pasopia7_io_w )
if(m_mio_sel)
{
- address_space *ram_space = m_maincpu->space(AS_PROGRAM);
+ address_space &ram_space = m_maincpu->space(AS_PROGRAM);
m_mio_sel = 0;
- ram_space->write_byte(offset, data);
+ ram_space.write_byte(offset, data);
return;
}