diff options
author | 2012-09-19 19:48:09 +0000 | |
---|---|---|
committer | 2012-09-19 19:48:09 +0000 | |
commit | 621ac620ae1ca743a66bb52aaf5478da01c3bac6 (patch) | |
tree | 2743a87e9077417af7546970d1ea1cc3b8781a63 /src/mess/machine/s100_wunderbus.c | |
parent | 33c77e65bbd4513957f2ece623cee476cf439248 (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/machine/s100_wunderbus.c')
-rw-r--r-- | src/mess/machine/s100_wunderbus.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mess/machine/s100_wunderbus.c b/src/mess/machine/s100_wunderbus.c index 15e07c1180c..f987ad0bb37 100644 --- a/src/mess/machine/s100_wunderbus.c +++ b/src/mess/machine/s100_wunderbus.c @@ -415,15 +415,15 @@ UINT8 s100_wunderbus_device::s100_sinp_r(address_space &space, offs_t offset) break; case 1: - data = m_ace1->ins8250_r(*machine().memory().first_space(), offset & 0x07); + data = m_ace1->ins8250_r(machine().driver_data()->generic_space(), offset & 0x07); break; case 2: - data = m_ace2->ins8250_r(*machine().memory().first_space(), offset & 0x07); + data = m_ace2->ins8250_r(machine().driver_data()->generic_space(), offset & 0x07); break; case 3: - data = m_ace3->ins8250_r(*machine().memory().first_space(), offset & 0x07); + data = m_ace3->ins8250_r(machine().driver_data()->generic_space(), offset & 0x07); break; } } @@ -538,15 +538,15 @@ void s100_wunderbus_device::s100_sout_w(address_space &space, offs_t offset, UIN break; case 1: - m_ace1->ins8250_w(*machine().memory().first_space(), offset & 0x07, data); + m_ace1->ins8250_w(machine().driver_data()->generic_space(), offset & 0x07, data); break; case 2: - m_ace2->ins8250_w(*machine().memory().first_space(), offset & 0x07, data); + m_ace2->ins8250_w(machine().driver_data()->generic_space(), offset & 0x07, data); break; case 3: - m_ace3->ins8250_w(*machine().memory().first_space(), offset & 0x07, data); + m_ace3->ins8250_w(machine().driver_data()->generic_space(), offset & 0x07, data); break; } } |