| 572 | //--------------- |
| 573 | |
| 574 | static DECLFR(A2002) { |
| 575 | if (newppu) { |
| 576 | //once we thought we clear latches here, but that caused midframe glitches. |
| 577 | //i think we should only reset the state machine for 2005/2006 |
| 578 | //ppur.clear_latches(); |
| 579 | } |
| 580 | |
| 581 | uint8 ret; |
| 582 | |
| 583 | FCEUPPU_LineUpdate(); |
| 584 | ret = PPU_status; |
| 585 | ret |= PPUGenLatch & 0x1F; |
| 586 | |
| 587 | #ifdef FCEUDEF_DEBUGGER |
| 588 | if (!fceuindbg) |
| 589 | #endif |
| 590 | { |
| 591 | vtoggle = 0; |
| 592 | PPU_status &= 0x7F; |
| 593 | PPUGenLatch = ret; |
| 594 | } |
| 595 | |
| 596 | return ret; |
| 597 | } |
| 598 | |
| 599 | static DECLFR(A2004) { |
| 600 | if (newppu) { |
no test coverage detected