MCPcopy
hub / github.com/fogleman/nes / Load

Method Load

nes/apu.go:86–97  ·  view source on GitHub ↗
(decoder *gob.Decoder)

Source from the content-addressed store, hash-verified

84}
85
86func (apu *APU) Load(decoder *gob.Decoder) error {
87 decoder.Decode(&apu.cycle)
88 decoder.Decode(&apu.framePeriod)
89 decoder.Decode(&apu.frameValue)
90 decoder.Decode(&apu.frameIRQ)
91 apu.pulse1.Load(decoder)
92 apu.pulse2.Load(decoder)
93 apu.triangle.Load(decoder)
94 apu.noise.Load(decoder)
95 apu.dmc.Load(decoder)
96 return nil
97}
98
99func (apu *APU) Step() {
100 cycle1 := apu.cycle

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected