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

Function pagesDiffer

nes/cpu.go:289–291  ·  view source on GitHub ↗

pagesDiffer returns true if the two addresses reference different pages

(a, b uint16)

Source from the content-addressed store, hash-verified

287
288// pagesDiffer returns true if the two addresses reference different pages
289func pagesDiffer(a, b uint16) bool {
290 return a&0xFF00 != b&0xFF00
291}
292
293// addBranchCycles adds a cycle for taking a branch and adds another cycle
294// if the branch jumps to a new page

Callers 2

addBranchCyclesMethod · 0.85
StepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected