diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-01-10 21:12:54 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-01-10 21:12:54 -0500 |
commit | 4d51fe9403a900cbf2ba81bec1de514e1f81b730 (patch) | |
tree | 289267941cf65ff1e662eac9ebda03a4b9c0990e | |
parent | c743a25bc5f4faa6101980a55074994d0cfaaa69 (diff) |
z8000: No unaligned word accesses (nw)
-rw-r--r-- | src/devices/cpu/z8000/z8000.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/cpu/z8000/z8000.cpp b/src/devices/cpu/z8000/z8000.cpp index ce2751723a8..2dbf768a928 100644 --- a/src/devices/cpu/z8000/z8000.cpp +++ b/src/devices/cpu/z8000/z8000.cpp @@ -297,9 +297,10 @@ 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_unaligned((uint16_t)addr); + return m_io->read_word(addr); } else { @@ -336,9 +337,10 @@ 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_unaligned((uint16_t)addr, value); + m_io->write_word(addr, value); } else { |