diff options
Diffstat (limited to 'src/devices/cpu/bcp/dp8344.cpp')
-rw-r--r-- | src/devices/cpu/bcp/dp8344.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/cpu/bcp/dp8344.cpp b/src/devices/cpu/bcp/dp8344.cpp index dcdfa9901ad..2f3c0e6c83e 100644 --- a/src/devices/cpu/bcp/dp8344.cpp +++ b/src/devices/cpu/bcp/dp8344.cpp @@ -1653,7 +1653,8 @@ void dp8344_device::store_result() case 0x900: set_carry(BIT(m_source_data, (m_latched_instr & 0x00e0) >> 5)); - m_source_data <<= 8 - ((m_latched_instr & 0x00e0) >> 5); + if ((m_latched_instr & 0x00e0) != 0) + m_source_data <<= 8 - ((m_latched_instr & 0x00e0) >> 5); set_nz(m_source_data); write_register(m_latched_instr & 0x001f, m_source_data); break; |