mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-05 10:28:58 +00:00
Reverted SBCD/NBCD V behaviour.
This commit is contained in:
parent
096b447b4b
commit
8a2ac87209
@ -1542,7 +1542,7 @@ template <class T, bool dtack_is_implicit, bool signal_will_perform> void Proces
|
|||||||
extend_flag_ = carry_flag_ = decltype(carry_flag_)(result & ~0xff); \
|
extend_flag_ = carry_flag_ = decltype(carry_flag_)(result & ~0xff); \
|
||||||
negative_flag_ = result & 0x80; \
|
negative_flag_ = result & 0x80; \
|
||||||
const int unadjusted_result = destination - source - (extend_flag_ ? 1 : 0); \
|
const int unadjusted_result = destination - source - (extend_flag_ ? 1 : 0); \
|
||||||
overflow_flag_ = ~unadjusted_result & result & 0x80; \
|
overflow_flag_ = unadjusted_result & ~result & 0x80; \
|
||||||
\
|
\
|
||||||
/* Store the result. */ \
|
/* Store the result. */ \
|
||||||
destination()->halves.low.halves.low = uint8_t(result);
|
destination()->halves.low.halves.low = uint8_t(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user