diff options
Diffstat (limited to 'src/devices/cpu/sm510/sm590op.cpp')
-rw-r--r-- | src/devices/cpu/sm510/sm590op.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/sm510/sm590op.cpp b/src/devices/cpu/sm510/sm590op.cpp index ff0b902c697..7a2c3f09ade 100644 --- a/src/devices/cpu/sm510/sm590op.cpp +++ b/src/devices/cpu/sm510/sm590op.cpp @@ -139,14 +139,14 @@ void sm590_device::op_lbmx() void sm590_device::op_tl() { // TL xyz: long jump (same as sm510 TL except m_op and m_param masks) - do_branch((m_op & 2)>>1, (((m_op & 1)<<1)|((m_param&0x80)?1:0)), m_param & 0x7f); + do_branch(BIT(m_op, 1), (m_op << 1 & 2) | BIT(m_param, 7), m_param & 0x7f); } void sm590_device::op_tml() // aka TLS { // TLS xyz: long call (same as sm510 TML except m_param mask) push_stack(); - do_branch((m_op & 2)>>1, (((m_op & 1)<<1)|((m_param&0x80)?1:0)), m_param & 0x7f); + do_branch(BIT(m_op, 1), (m_op << 1 & 2) | BIT(m_param, 7), m_param & 0x7f); } void sm590_device::op_t() |