MCPcopy
hub / github.com/fogleman/nes / inc

Method inc

nes/cpu.go:696–700  ·  view source on GitHub ↗

INC - Increment Memory

(info *stepInfo)

Source from the content-addressed store, hash-verified

694
695// INC - Increment Memory
696func (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
703func (cpu *CPU) inx(info *stepInfo) {

Callers

nothing calls this directly

Calls 3

setZNMethod · 0.95
ReadMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected