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

Method writeAddress

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

Source from the content-addressed store, hash-verified

801}
802
803func (d *DMC) writeAddress(value byte) {
804 // Sample address = %11AAAAAA.AA000000
805 d.sampleAddress = 0xC000 | (uint16(value) << 6)
806}
807
808func (d *DMC) writeLength(value byte) {
809 // Sample length = %0000LLLL.LLLL0001

Callers 1

writeRegisterMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected