diff options
author | 2019-03-10 13:23:23 +0000 | |
---|---|---|
committer | 2019-03-10 16:03:40 +0000 | |
commit | 09f698ddc8f1e0ee0196f1069a3dc44a2e13b863 (patch) | |
tree | e69a6c2cad7b96856c35f4ecd4a933a7957dd609 /src/devices/bus/spectrum/usource.cpp | |
parent | d62970843f793810da8a8bf245f00eed5c611d5c (diff) |
spectrum: Improved expansion interface to allow devices to act on opcode fetches.
- Added Multiface One/128/3, and MultiPrint devices.
Diffstat (limited to 'src/devices/bus/spectrum/usource.cpp')
-rw-r--r-- | src/devices/bus/spectrum/usource.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/devices/bus/spectrum/usource.cpp b/src/devices/bus/spectrum/usource.cpp index 7ec405857c9..13f302b14c5 100644 --- a/src/devices/bus/spectrum/usource.cpp +++ b/src/devices/bus/spectrum/usource.cpp @@ -60,6 +60,7 @@ spectrum_usource_device::spectrum_usource_device(const machine_config &mconfig, void spectrum_usource_device::device_start() { + save_item(NAME(m_romcs)); } @@ -82,17 +83,15 @@ READ_LINE_MEMBER(spectrum_usource_device::romcs) return m_romcs; } - -uint8_t spectrum_usource_device::mreq_r(offs_t offset) +void spectrum_usource_device::opcode_fetch(offs_t offset) { - uint8_t data; - if (!machine().side_effects_disabled() && (offset == 0x2bae)) { m_romcs = !m_romcs; } +} - data = m_rom->base()[offset & 0x1fff]; - - return data; +uint8_t spectrum_usource_device::mreq_r(offs_t offset) +{ + return m_rom->base()[offset & 0x1fff]; } |