1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-28 21:49:27 +00:00
This commit is contained in:
Thomas Harte 2023-08-30 23:08:42 -04:00
parent cdcac7c11c
commit 13be247495

View File

@ -347,6 +347,8 @@ template <Personality personality, typename T, bool uses_ready_line> void Proces
a_ = result; a_ = result;
if(is_65c02(personality)) { if(is_65c02(personality)) {
// 65C02 fix: N and Z are set correctly based on the final BCD result, at the cost of
// an extra cycle.
flags_.set_nz(a_); flags_.set_nz(a_);
read_mem(operand_, address_.full); read_mem(operand_, address_.full);
break; break;