MCPcopy Create free account
hub / github.com/fogleman/nes / triggerIRQ

Method triggerIRQ

nes/cpu.go:411–415  ·  view source on GitHub ↗

triggerIRQ causes an IRQ interrupt to occur on the next cycle

()

Source from the content-addressed store, hash-verified

409
410// triggerIRQ causes an IRQ interrupt to occur on the next cycle
411func (cpu *CPU) triggerIRQ() {
412 if cpu.I == 0 {
413 cpu.interrupt = interruptIRQ
414 }
415}
416
417// stepInfo contains information that the instruction functions use
418type stepInfo struct {

Callers 3

HandleScanLineMethod · 0.80
fireIRQMethod · 0.80
StepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected