From 4d51fe9403a900cbf2ba81bec1de514e1f81b730 Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 10 Jan 2018 21:12:54 -0500 Subject: z8000: No unaligned word accesses (nw) --- src/devices/cpu/z8000/z8000.cpp | 6 ++++-- 1 file 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 { -- cgit v1.2.3