diff options
Diffstat (limited to 'src/devices/cpu/unsp/unsp_exxx.cpp')
-rw-r--r-- | src/devices/cpu/unsp/unsp_exxx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/unsp/unsp_exxx.cpp b/src/devices/cpu/unsp/unsp_exxx.cpp index 325c81a55dc..07e8f056984 100644 --- a/src/devices/cpu/unsp/unsp_exxx.cpp +++ b/src/devices/cpu/unsp/unsp_exxx.cpp @@ -110,7 +110,7 @@ void unsp_12_device::execute_exxx_group(uint16_t op) const uint8_t bitop = (op & 0x0030) >> 4; const uint8_t rd = (op & 0x0e00) >> 9; const uint8_t offset = (op & 0x000f) >> 0; - const uint16_t addr = m_core->m_r[rd] | (get_ds() << 16); + const uint32_t addr = m_core->m_r[rd] | (get_ds() << 16); const uint16_t orig = read16(addr); m_core->m_r[REG_SR] &= ~UNSP_Z; m_core->m_r[REG_SR] |= BIT(m_core->m_r[rd], offset) ? 0 : UNSP_Z; @@ -172,7 +172,7 @@ void unsp_12_device::execute_exxx_group(uint16_t op) const uint8_t rd = (op & 0x0e00) >> 9; const uint8_t rs = (op & 0x0007) >> 0; const uint8_t offset = (1 << m_core->m_r[rs]); - const uint16_t addr = m_core->m_r[rd] | (get_ds() << 16); + const uint32_t addr = m_core->m_r[rd] | (get_ds() << 16); const uint16_t orig = read16(addr); m_core->m_r[REG_SR] &= ~UNSP_Z; m_core->m_r[REG_SR] |= BIT(m_core->m_r[rd], offset) ? 0 : UNSP_Z; |