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

Method stepTimer

nes/apu.go:427–434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425}
426
427func (p *Pulse) stepTimer() {
428 if p.timerValue == 0 {
429 p.timerValue = p.timerPeriod
430 p.dutyValue = (p.dutyValue + 1) % 8
431 } else {
432 p.timerValue--
433 }
434}
435
436func (p *Pulse) stepEnvelope() {
437 if p.envelopeStart {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected