mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 15:19:53 -06:00
Merge branch 'master' of https://github.com/Arisotura/melonDS
This commit is contained in:
@ -524,8 +524,8 @@ bool MapAtAddress(u32 addr)
|
||||
{
|
||||
u32 sectionOffset = offset;
|
||||
bool hasCode = isExecutable && ARMJIT::PageContainsCode(&range[offset / 512]);
|
||||
while ((!isExecutable || ARMJIT::PageContainsCode(&range[offset / 512]) == hasCode)
|
||||
&& offset < mirrorSize
|
||||
while (offset < mirrorSize
|
||||
&& (!isExecutable || ARMJIT::PageContainsCode(&range[offset / 512]) == hasCode)
|
||||
&& (!skipDTCM || mirrorStart + offset != NDS::ARM9->DTCMBase))
|
||||
{
|
||||
assert(states[(mirrorStart + offset) >> 12] == memstate_Unmapped);
|
||||
|
@ -3745,7 +3745,7 @@ void ARM7IOWrite8(u32 addr, u8 val)
|
||||
return;
|
||||
|
||||
case 0x04000301:
|
||||
val & 0xC0;
|
||||
val &= 0xC0;
|
||||
if (val == 0x40) printf("!! GBA MODE NOT SUPPORTED\n");
|
||||
else if (val == 0x80) ARM7->Halt(1);
|
||||
else if (val == 0xC0) EnterSleepMode();
|
||||
|
Reference in New Issue
Block a user