mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Improves carry/extend for ROXL and ROXR.
This commit is contained in:
parent
a131d39451
commit
d8ed8b66f3
@ -1654,7 +1654,7 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> void Proces
|
||||
(value << shift_count) | \
|
||||
(value >> (size + 1 - shift_count)) | \
|
||||
((extend_flag_ ? (1 << (size - 1)) : 0) >> (size - shift_count)); \
|
||||
carry_flag_ = extend_flag_ = destination & 1; \
|
||||
carry_flag_ = extend_flag_ = (value >> (size - shift_count))&1; \
|
||||
} \
|
||||
\
|
||||
set_neg_zero_overflow(destination, 1 << (size - 1)); \
|
||||
@ -1683,7 +1683,7 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> void Proces
|
||||
(value >> shift_count) | \
|
||||
(value << (size + 1 - shift_count)) | \
|
||||
((extend_flag_ ? 1 : 0) << (size - shift_count)); \
|
||||
carry_flag_ = extend_flag_ = destination & 1; \
|
||||
carry_flag_ = extend_flag_ = value & (1 << shift_count); \
|
||||
} \
|
||||
\
|
||||
set_neg_zero_overflow(destination, 1 << (size - 1)); \
|
||||
|
@ -1798,7 +1798,7 @@ struct ProcessorStorageConstructor {
|
||||
op(Action::PerformOperation, is_bclr ? seq("nw", { a(ea_register) }, false) : nullptr);
|
||||
break;
|
||||
|
||||
case XXXw: // BTST.b #, (xxx).w
|
||||
case XXXw: // BTST.b #, (xxx).w
|
||||
case d16An: // BTST.b #, (d16, An)
|
||||
case d8AnXn: // BTST.b #, (d8, An, Xn)
|
||||
case d16PC: // BTST.b #, (d16, PC)
|
||||
|
Loading…
x
Reference in New Issue
Block a user