Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
653
func
(cpu *CPU) cmp(info *stepInfo) {
654
value := cpu.Read(info.address)
655
cpu.compare(cpu.A, value)
656
}
657
658
// CPX - Compare X Register
659
func
(cpu *CPU) cpx(info *stepInfo) {
Callers
nothing calls this directly
Calls
2
compare
Method · 0.95
Read
Method · 0.65
Tested by
no test coverage detected