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

Method stepTimer

nes/apu.go:818–829  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

816}
817
818func (d *DMC) stepTimer() {
819 if !d.enabled {
820 return
821 }
822 d.stepReader()
823 if d.tickValue == 0 {
824 d.tickValue = d.tickPeriod
825 d.stepShifter()
826 } else {
827 d.tickValue--
828 }
829}
830
831func (d *DMC) stepReader() {
832 if d.currentLength > 0 && d.bitCount == 0 {

Callers

nothing calls this directly

Calls 2

stepReaderMethod · 0.95
stepShifterMethod · 0.95

Tested by

no test coverage detected