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

Method setZN

nes/cpu.go:400–403  ·  view source on GitHub ↗

setZN sets the zero flag and the negative flag

(value byte)

Source from the content-addressed store, hash-verified

398
399// setZN sets the zero flag and the negative flag
400func (cpu *CPU) setZN(value byte) {
401 cpu.setZ(value)
402 cpu.setN(value)
403}
404
405// triggerNMI causes a non-maskable interrupt to occur on the next cycle
406func (cpu *CPU) triggerNMI() {

Callers 15

compareMethod · 0.95
adcMethod · 0.95
andMethod · 0.95
aslMethod · 0.95
decMethod · 0.95
dexMethod · 0.95
deyMethod · 0.95
eorMethod · 0.95
incMethod · 0.95
inxMethod · 0.95
inyMethod · 0.95
ldaMethod · 0.95

Calls 2

setZMethod · 0.95
setNMethod · 0.95

Tested by

no test coverage detected