mirror of https://github.com/snes9xgit/snes9x.git
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))
|
if (GSU.bCacheActive && R15 >= GSU.vCacheBaseReg && R15 < (GSU.vCacheBaseReg + 512))
|
||||||
return true;
|
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 true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue