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

Method writeTimerHigh

nes/apu.go:560–565  ·  view source on GitHub ↗
(value byte)

Source from the content-addressed store, hash-verified

558}
559
560func (t *Triangle) writeTimerHigh(value byte) {
561 t.lengthValue = lengthTable[value>>3]
562 t.timerPeriod = (t.timerPeriod & 0x00FF) | (uint16(value&7) << 8)
563 t.timerValue = t.timerPeriod
564 t.counterReload = true
565}
566
567func (t *Triangle) stepTimer() {
568 if t.timerValue == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected