(value byte)
| 309 | } |
| 310 | |
| 311 | func (apu *APU) writeFrameCounter(value byte) { |
| 312 | apu.framePeriod = 4 + (value>>7)&1 |
| 313 | apu.frameIRQ = (value>>6)&1 == 0 |
| 314 | // apu.frameValue = 0 |
| 315 | if apu.framePeriod == 5 { |
| 316 | apu.stepEnvelope() |
| 317 | apu.stepSweep() |
| 318 | apu.stepLength() |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | // Pulse |
| 323 |
no test coverage detected