diff options
-rw-r--r-- | src/devices/cpu/m68hc16/cpu16.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/m68hc16/cpu16.cpp b/src/devices/cpu/m68hc16/cpu16.cpp index e8c7b6f36df..e0a1cbe6fb8 100644 --- a/src/devices/cpu/m68hc16/cpu16.cpp +++ b/src/devices/cpu/m68hc16/cpu16.cpp @@ -283,7 +283,7 @@ void cpu16_device::set_ix(int which, u16 value) noexcept u8 cpu16_device::get_xk(int which) const noexcept { - return (m_index_regs[which] & 0xf0000) << 16; + return (m_index_regs[which] & 0xf0000) >> 16; } void cpu16_device::set_xk(int which, u8 value) noexcept |