diff --git a/M6502/M6502.cs b/M6502/M6502.cs index e64015e..35cfb1e 100644 --- a/M6502/M6502.cs +++ b/M6502/M6502.cs @@ -854,11 +854,11 @@ namespace EightBit this.P = ClearFlag(this.P, StatusBits.CF, Chip.HighByte(this.intermediate)); } - private byte DEC(byte value) => this.Through(value - 1); + private byte DEC(byte value) => this.Through(--value); private byte EorR(byte operand, byte data) => this.Through(operand ^ data); - private byte INC(byte value) => this.Through(value + 1); + private byte INC(byte value) => this.Through(++value); private void JSR() {