MCPcopy Index your code
hub / github.com/fogleman/nes / cmp

Method cmp

nes/cpu.go:653–656  ·  view source on GitHub ↗

CMP - Compare

(info *stepInfo)

Source from the content-addressed store, hash-verified

651
652// CMP - Compare
653func (cpu *CPU) cmp(info *stepInfo) {
654 value := cpu.Read(info.address)
655 cpu.compare(cpu.A, value)
656}
657
658// CPX - Compare X Register
659func (cpu *CPU) cpx(info *stepInfo) {

Callers

nothing calls this directly

Calls 2

compareMethod · 0.95
ReadMethod · 0.65

Tested by

no test coverage detected