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

Method writeTimerHigh

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

Source from the content-addressed store, hash-verified

418}
419
420func (p *Pulse) writeTimerHigh(value byte) {
421 p.lengthValue = lengthTable[value>>3]
422 p.timerPeriod = (p.timerPeriod & 0x00FF) | (uint16(value&7) << 8)
423 p.envelopeStart = true
424 p.dutyValue = 0
425}
426
427func (p *Pulse) stepTimer() {
428 if p.timerValue == 0 {

Callers 1

writeRegisterMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected