| 482 | } |
| 483 | |
| 484 | void FrameSoundUpdate(void) |
| 485 | { |
| 486 | // Linear counter: Bit 0-6 of $4008 |
| 487 | // Length counter: Bit 4-7 of $4003, $4007, $400b, $400f |
| 488 | |
| 489 | if(!fcnt && !(IRQFrameMode&0x3)) |
| 490 | { |
| 491 | SIRQStat|=0x40; |
| 492 | X6502_IRQBegin(FCEU_IQFCOUNT); |
| 493 | } |
| 494 | |
| 495 | if(fcnt==3) |
| 496 | { |
| 497 | if(IRQFrameMode&0x2) |
| 498 | fhcnt+=fhinc; |
| 499 | } |
| 500 | FrameSoundStuff(fcnt); |
| 501 | fcnt=(fcnt+1)&3; |
| 502 | } |
| 503 | |
| 504 | |
| 505 | static INLINE void tester(void) |
no test coverage detected