diff options
author | 2018-01-12 10:40:41 -0500 | |
---|---|---|
committer | 2018-01-12 10:40:41 -0500 | |
commit | bcc66f3b07c7de3b222fd1b42955a3f0a609ed16 (patch) | |
tree | 2c7229efff11f58230b238d44cc63d566d99360e /src/devices/cpu/z8000/z8000.cpp | |
parent | 2f38880006db507c83f0480b88c1c4b7b2adc4c2 (diff) |
Revert "z8000: No unaligned word accesses (nw)"
This reverts commit 4d51fe9403a900cbf2ba81bec1de514e1f81b730.
Diffstat (limited to 'src/devices/cpu/z8000/z8000.cpp')
-rw-r--r-- | src/devices/cpu/z8000/z8000.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/cpu/z8000/z8000.cpp b/src/devices/cpu/z8000/z8000.cpp index 2dbf768a928..ce2751723a8 100644 --- a/src/devices/cpu/z8000/z8000.cpp +++ b/src/devices/cpu/z8000/z8000.cpp @@ -297,10 +297,9 @@ uint16_t z8002_device::RDPORT_W(int mode, uint16_t addr) uint16_t z8001_device::RDPORT_W(int mode, uint16_t addr) { - addr &= ~1; if(mode == 0) { - return m_io->read_word(addr); + return m_io->read_word_unaligned((uint16_t)addr); } else { @@ -337,10 +336,9 @@ void z8002_device::WRPORT_W(int mode, uint16_t addr, uint16_t value) void z8001_device::WRPORT_W(int mode, uint16_t addr, uint16_t value) { - addr &= ~1; if(mode == 0) { - m_io->write_word(addr, value); + m_io->write_word_unaligned((uint16_t)addr, value); } else { |