mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +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); \
|
||||
negative_flag_ = result & 0x80; \
|
||||
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. */ \
|
||||
destination()->halves.low.halves.low = uint8_t(result);
|
||||
|
Loading…
x
Reference in New Issue
Block a user