mirror of
https://github.com/pevans/erc-c.git
synced 2025-01-21 14:30:39 +00:00
Add missing NZ checks in INC and DEC
This commit is contained in:
parent
49199eac84
commit
8d0cf264d7
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user