mirror of
https://github.com/libretro/snes9x.git
synced 2024-11-23 00:09:40 +00:00
SuperFX: Allow execution from ROM in higher banks.
This commit is contained in:
parent
65ef81ca2d
commit
986dd2a061
10
fxemu.cpp
10
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;
|
||||
|
Loading…
Reference in New Issue
Block a user