(decoder *gob.Decoder)
| 84 | } |
| 85 | |
| 86 | func (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 | |
| 99 | func (apu *APU) Step() { |
| 100 | cycle1 := apu.cycle |