1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-11 08:30:55 +00:00

Merge pull request #1169 from TomHarte/NESARR

Don't necessarily apply D for ARR.
This commit is contained in:
Thomas Harte 2023-09-20 22:09:20 -04:00 committed by GitHub
commit 3db21b0bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));