diff options
author | Nigel Barnes <Pernod70@users.noreply.github.com> | 2020-08-19 22:58:15 +0100 |
---|---|---|
committer | Nigel Barnes <Pernod70@users.noreply.github.com> | 2020-08-19 22:59:51 +0100 |
commit | fc785cecbc0df66b854c9c39ba0a79c04a3b1f0b (patch) | |
tree | da341030a1b7c5f08bde0d4e0a7b30cbc85cf242 /src/mame/machine | |
parent | efed2ea2c21c9ac4dec8b3682efce8d731623abb (diff) |
bus/electron: Added the JAFA Mode 7 Display Unit.
Diffstat (limited to 'src/mame/machine')
-rw-r--r-- | src/mame/machine/electron.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mame/machine/electron.cpp b/src/mame/machine/electron.cpp index 7846990e877..0d1924b577a 100644 --- a/src/mame/machine/electron.cpp +++ b/src/mame/machine/electron.cpp @@ -151,6 +151,10 @@ uint8_t electron_state::electron64_fetch_r(offs_t offset) uint8_t electron_state::electron_mem_r(offs_t offset) { + uint8_t data = 0xff; + + data &= m_exp->expbus_r(offset); + switch (m_mrb.read_safe(0)) { case 0x00: /* Normal */ @@ -167,11 +171,15 @@ uint8_t electron_state::electron_mem_r(offs_t offset) if (m_mrb_mapped && (offset < 0x3000 || !m_vdu_drivers)) offset += 0x8000; break; } - return m_ram->read(offset); + data &= m_ram->read(offset); + + return data; } void electron_state::electron_mem_w(offs_t offset, uint8_t data) { + m_exp->expbus_w(offset, data); + switch (m_mrb.read_safe(0)) { case 0x00: /* Normal */ |