MCPcopy Create free account
hub / github.com/TASEmulators/fceux / DECLFR

Function DECLFR

src/ppu.cpp:574–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572//---------------
573
574static 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
599static DECLFR(A2004) {
600 if (newppu) {

Callers 1

cart.hFile · 0.70

Calls 5

FCEUPPU_LineUpdateFunction · 0.85
GetCHRAddressFunction · 0.85
MMC5BGVRAMADRFunction · 0.85
get_2007accessMethod · 0.80
increment2007Method · 0.80

Tested by

no test coverage detected