From 4fe5da841c238ac48ca53119279c712f33a1990b Mon Sep 17 00:00:00 2001 From: g0me3 Date: Sun, 12 Jan 2020 17:07:23 +0300 Subject: [PATCH] forgot to remove debug code --- src/debug.h | 1 + src/ppu.cpp | 59 +---------------------------------------------------- 2 files changed, 2 insertions(+), 58 deletions(-) diff --git a/src/debug.h b/src/debug.h index 5cf883c0..ef21f4c1 100644 --- a/src/debug.h +++ b/src/debug.h @@ -93,6 +93,7 @@ static INLINE int FCEUI_GetLoggingCD() { return debug_loggingCD; } extern int iaPC; extern uint32 iapoffset; //mbg merge 7/18/06 changed from int void DebugCycle(); +bool CondForbidTest(int bp_num); void BreakHit(int bp_num); extern bool break_asap; diff --git a/src/ppu.cpp b/src/ppu.cpp index 3d3c9656..5aa5aee3 100644 --- a/src/ppu.cpp +++ b/src/ppu.cpp @@ -1218,64 +1218,7 @@ static void RefreshLine(int lastpixel) { #undef PPU_VRC5FETCH } else { for (X1 = firsttile; X1 < lasttile; X1++) { -// #include "pputile.inc" - uint8 *C; - register uint8 cc; - uint32 vadr; - - register uint8 zz; - - if (X1 >= 2) { - uint8 *S = PALRAM; - uint32 pixdata; - - pixdata = ppulut1[(pshift[0] >> (8 - XOffset)) & 0xFF] | ppulut2[(pshift[1] >> (8 - XOffset)) & 0xFF]; - - pixdata |= ppulut3[XOffset | (atlatch << 3)]; - - P[0] = S[pixdata & 0xF]; - pixdata >>= 4; - P[1] = S[pixdata & 0xF]; - pixdata >>= 4; - P[2] = S[pixdata & 0xF]; - pixdata >>= 4; - P[3] = S[pixdata & 0xF]; - pixdata >>= 4; - P[4] = S[pixdata & 0xF]; - pixdata >>= 4; - P[5] = S[pixdata & 0xF]; - pixdata >>= 4; - P[6] = S[pixdata & 0xF]; - pixdata >>= 4; - P[7] = S[pixdata & 0xF]; - P += 8; - } - - zz = RefreshAddr & 0x1F; - C = vnapage[(RefreshAddr >> 10) & 3]; - - vadr = (C[RefreshAddr & 0x3ff] << 4) + vofs; // Fetch name table byte. - cc = C[0x3c0 + (zz >> 2) + ((RefreshAddr & 0x380) >> 4)]; // Fetch attribute table byte. - cc = ((cc >> ((zz & 2) + ((RefreshAddr & 0x40) >> 4))) & 3); - - atlatch >>= 2; - atlatch |= cc << 2; - - pshift[0] <<= 8; - pshift[1] <<= 8; - - C = VRAMADR(vadr); - if (ScreenON) - RENDER_LOGP(C); - pshift[0] |= C[0]; - if (ScreenON) - RENDER_LOGP(C + 8); - pshift[1] |= C[8]; - - if ((RefreshAddr & 0x1f) == 0x1f) - RefreshAddr ^= 0x41F; - else - RefreshAddr++; + #include "pputile.inc" } } }