From 6d75c9ce0d5efecafb791a542a9134544812902d Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 10 Oct 2009 22:36:16 +0000 Subject: [PATCH] newppu: fix bug in _vt = 30,31 latching causing general malfunction (fix tecmo super bowl) --- NewPPUtests.txt | 2 +- src/ppu.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NewPPUtests.txt b/NewPPUtests.txt index 5a25ddb2..e25ae2ee 100644 --- a/NewPPUtests.txt +++ b/NewPPUtests.txt @@ -2,7 +2,6 @@ NewPPU tests Bad Dragon's Lair - Black screen for level 1 (music plays) -Tecmo Super Bowl (U) [!] - Intro screen messed up, menus out of whack, Team selection screen bad, pre game screen, field is messed up. Nightshade (U) - flickering Good @@ -63,6 +62,7 @@ Super Mario Bros 2 USA Super Mario Bros 3 Tecmobowl Tecmo NBA Basketball (U) +Tecmo Super Bowl (U) [!] - [FIXED] Intro screen messed up, menus out of whack, Team selection screen bad, pre game screen, field is messed up. TMNT Transformers Zanac diff --git a/src/ppu.cpp b/src/ppu.cpp index 103afb84..5cdbac8f 100644 --- a/src/ppu.cpp +++ b/src/ppu.cpp @@ -208,6 +208,7 @@ struct PPUREGS { void increment_vs() { fv++; vt += (fv>>3); + vt &= 31; //fixed tecmo super bowl v += (vt==30)?1:0; fv &= 7; if(vt==30) vt=0;