diff --git a/src/mos6502.arith.c b/src/mos6502.arith.c index 5dcd125..6bdf7a8 100644 --- a/src/mos6502.arith.c +++ b/src/mos6502.arith.c @@ -148,6 +148,7 @@ DEFINE_INST(dec) // If we get here, then this is ACC mode, and we should work off // that. + MOS_CHECK_NZ(cpu->A - 1); cpu->A--; } @@ -180,6 +181,7 @@ DEFINE_INST(inc) return; } + MOS_CHECK_NZ(cpu->A + 1); cpu->A++; }