INC - Increment Memory
(info *stepInfo)
| 694 | |
| 695 | // INC - Increment Memory |
| 696 | func (cpu *CPU) inc(info *stepInfo) { |
| 697 | value := cpu.Read(info.address) + 1 |
| 698 | cpu.Write(info.address, value) |
| 699 | cpu.setZN(value) |
| 700 | } |
| 701 | |
| 702 | // INX - Increment X Register |
| 703 | func (cpu *CPU) inx(info *stepInfo) { |