From 986dd2a0611b711ca56a90e72a36aebe06902918 Mon Sep 17 00:00:00 2001 From: BearOso Date: Sat, 27 Apr 2024 16:59:11 -0500 Subject: [PATCH] SuperFX: Allow execution from ROM in higher banks. --- fxemu.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fxemu.cpp b/fxemu.cpp index 10bbcc44..f04aeaf4 100644 --- a/fxemu.cpp +++ b/fxemu.cpp @@ -341,10 +341,14 @@ static bool8 fx_checkStartAddress (void) if (GSU.bCacheActive && R15 >= GSU.vCacheBaseReg && R15 < (GSU.vCacheBaseReg + 512)) return true; - if (GSU.vPrgBankReg <= 0x5f && (SCMR & (1 << 3))) - return true; - if (GSU.vPrgBankReg <= 0x7f && (SCMR & (1 << 4))) + if (SCMR & (1 << 4)) + { + if (GSU.vPrgBankReg <= 0x5f || GSU.vPrgBankReg >= 0x80) + return true; + } + + if (GSU.vPrgBankReg <= 0x7f && (SCMR & (1 << 3))) return true; return false;