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

Method writeControl

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

Source from the content-addressed store, hash-verified

549}
550
551func (t *Triangle) writeControl(value byte) {
552 t.lengthEnabled = (value>>7)&1 == 0
553 t.counterPeriod = value & 0x7F
554}
555
556func (t *Triangle) writeTimerLow(value byte) {
557 t.timerPeriod = (t.timerPeriod & 0xFF00) | uint16(value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected