diff options
author | 2022-05-18 06:31:27 -0400 | |
---|---|---|
committer | 2022-05-18 06:31:27 -0400 | |
commit | aa73dfde73bc63eed2cd1efd972f4e557bc7d0bf (patch) | |
tree | 830559dbdbe5740a56d497eb5cc4872685bce1a8 | |
parent | fa289ee99a8c0f1b6a3bd9a74c8569a513765a3e (diff) |
cpu16.cpp: Fix shift in get_xk
-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 |