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

Method dec

nes/cpu.go:671–675  ·  view source on GitHub ↗

DEC - Decrement Memory

(info *stepInfo)

Source from the content-addressed store, hash-verified

669
670// DEC - Decrement Memory
671func (cpu *CPU) dec(info *stepInfo) {
672 value := cpu.Read(info.address) - 1
673 cpu.Write(info.address, value)
674 cpu.setZN(value)
675}
676
677// DEX - Decrement X Register
678func (cpu *CPU) dex(info *stepInfo) {

Callers

nothing calls this directly

Calls 3

setZNMethod · 0.95
ReadMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected