From 9f0c58371a1e32a8e858a3982d6b46a30cd9a1a7 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 4 Aug 2014 03:07:40 +0000 Subject: [PATCH] fix mmc5 in newppu (uchuu keibitai SDF title screen) --- trunk/src/boards/mmc5.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trunk/src/boards/mmc5.cpp b/trunk/src/boards/mmc5.cpp index a9789c45..dcb32e4b 100644 --- a/trunk/src/boards/mmc5.cpp +++ b/trunk/src/boards/mmc5.cpp @@ -138,7 +138,11 @@ static void mmc5_PPUWrite(uint32 A, uint8 V) { uint8 FASTCALL mmc5_PPURead(uint32 A) { if (A < 0x2000) { - if (ppuphase == PPUPHASE_BG) + if (ppuphase == PPUPHASE_BG + //zero 03-aug-2014 - added this to fix Uchuu Keibitai SDF. The game reads NT entries from CHR rom while PPU is disabled. + //obviously we have enormous numbers of bugs springing from our terrible emulation of ppu-disabled states, but this does the job for fixing this one + && (PPU[1] & 0x10) + ) return *MMC5BGVRAMADR(A); else return MMC5SPRVPage[(A) >> 10][(A)]; } else {