1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Correct for switched BRK presumption.

This commit is contained in:
Thomas Harte 2022-07-08 11:15:48 -04:00
parent 18735ee571
commit 3a2d27a636

View File

@ -171,8 +171,8 @@ template <Personality personality, typename T, bool uses_ready_line> void Proces
case CyclePullY: s_++; read_mem(y_, s_ | 0x100); break; case CyclePullY: s_++; read_mem(y_, s_ | 0x100); break;
case CyclePullOperand: s_++; read_mem(operand_, s_ | 0x100); break; case CyclePullOperand: s_++; read_mem(operand_, s_ | 0x100); break;
case OperationSetFlagsFromOperand: set_flags(operand_); continue; case OperationSetFlagsFromOperand: set_flags(operand_); continue;
case OperationSetOperandFromFlagsWithBRKSet: operand_ = flags_.get() | Flag::Break; continue; case OperationSetOperandFromFlagsWithBRKSet: operand_ = flags_.get(); continue;
case OperationSetOperandFromFlags: operand_ = flags_.get(); continue; case OperationSetOperandFromFlags: operand_ = flags_.get() & ~Flag::Break; continue;
case OperationSetFlagsFromA: flags_.set_nz(a_); continue; case OperationSetFlagsFromA: flags_.set_nz(a_); continue;
case OperationSetFlagsFromX: flags_.set_nz(x_); continue; case OperationSetFlagsFromX: flags_.set_nz(x_); continue;
case OperationSetFlagsFromY: flags_.set_nz(y_); continue; case OperationSetFlagsFromY: flags_.set_nz(y_); continue;