1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-28 01:29:37 +00:00

Add missing NZ checks in INC and DEC

This commit is contained in:
Peter Evans 2018-02-28 21:34:58 -06:00
parent 49199eac84
commit 8d0cf264d7

View File

@ -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++;
}