SuperFX: Allow execution from ROM in higher banks.

This commit is contained in:
BearOso 2024-04-27 16:59:11 -05:00
parent 65ef81ca2d
commit 986dd2a061

View file

@ -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;