()
| 55 | } |
| 56 | |
| 57 | func (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 | |
| 71 | func (m *Mapper4) HandleScanLine() { |
| 72 | if m.counter == 0 { |
nothing calls this directly
no test coverage detected