1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-09 01:29:44 +00:00

Don't necessarily apply D for ARR.

This commit is contained in:
Thomas Harte 2023-09-20 10:17:00 -04:00
parent 5b9c5e250d
commit 74b5ad93c4

View File

@ -656,7 +656,7 @@ template <Personality personality, typename T, bool uses_ready_line> void Proces
case OperationTSX: flags_.set_nz(x_ = s_); continue;
case OperationARR:
if(flags_.decimal) {
if(flags_.decimal && has_decimal_mode(personality)) {
a_ &= operand_;
uint8_t unshiftedA = a_;
a_ = uint8_t((a_ >> 1) | (flags_.carry << 7));