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

Method HandleScanLine

nes/mapper4.go:71–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71func (m *Mapper4) HandleScanLine() {
72 if m.counter == 0 {
73 m.counter = m.reload
74 } else {
75 m.counter--
76 if m.counter == 0 && m.irqEnable {
77 m.console.CPU.triggerIRQ()
78 }
79 }
80}
81
82func (m *Mapper4) Read(address uint16) byte {
83 switch {

Callers 1

StepMethod · 0.95

Calls 1

triggerIRQMethod · 0.80

Tested by

no test coverage detected