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

Method compare

nes/cpu.go:302–309  ·  view source on GitHub ↗
(a, b byte)

Source from the content-addressed store, hash-verified

300}
301
302func (cpu *CPU) compare(a, b byte) {
303 cpu.setZN(a - b)
304 if a >= b {
305 cpu.C = 1
306 } else {
307 cpu.C = 0
308 }
309}
310
311// Read16 reads two bytes using Read to return a double-word value
312func (cpu *CPU) Read16(address uint16) uint16 {

Callers 3

cmpMethod · 0.95
cpxMethod · 0.95
cpyMethod · 0.95

Calls 1

setZNMethod · 0.95

Tested by

no test coverage detected