Skip to content

Commit

Permalink
SuperFX: Allow execution from ROM in higher banks.
Browse files Browse the repository at this point in the history
  • Loading branch information
bearoso committed Apr 27, 2024
1 parent 65ef81c commit 986dd2a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fxemu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 986dd2a

Please sign in to comment.