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

Method Step

nes/mapper4.go:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (m *Mapper4) Step() {
58 ppu := m.console.PPU
59 if ppu.Cycle != 280 { // TODO: this *should* be 260
60 return
61 }
62 if ppu.ScanLine > 239 && ppu.ScanLine < 261 {
63 return
64 }
65 if ppu.flagShowBackground == 0 && ppu.flagShowSprites == 0 {
66 return
67 }
68 m.HandleScanLine()
69}
70
71func (m *Mapper4) HandleScanLine() {
72 if m.counter == 0 {

Callers

nothing calls this directly

Calls 1

HandleScanLineMethod · 0.95

Tested by

no test coverage detected