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

Method writeControl

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

Source from the content-addressed store, hash-verified

791}
792
793func (d *DMC) writeControl(value byte) {
794 d.irq = value&0x80 == 0x80
795 d.loop = value&0x40 == 0x40
796 d.tickPeriod = dmcTable[value&0x0F]
797}
798
799func (d *DMC) writeValue(value byte) {
800 d.value = value & 0x7F

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected