mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
clean up code
This commit is contained in:
@ -450,30 +450,16 @@ void ReglessLDMSTM(ARM* cpu, const bool load, const u8 baseid, const bool writeb
|
|||||||
if (load)
|
if (load)
|
||||||
{
|
{
|
||||||
u32 pc;
|
u32 pc;
|
||||||
if (cpu->DataRead32(base, &pc))
|
cpu->DataRead32(base, &pc);
|
||||||
{
|
|
||||||
cpu->AddCycles_CDI();
|
cpu->AddCycles_CDI();
|
||||||
cpu->JumpTo(pc, usermode); // checkme can we restore cpsr?
|
cpu->JumpTo(pc, usermode);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
cpu->AddCycles_CDI();
|
|
||||||
((ARMv5*)cpu)->DataAbort();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!cpu->DataWrite32(base, cpu->R[15] + (thumb ? 2 : 4)))
|
cpu->DataWrite32(base, cpu->R[15] + (thumb ? 2 : 4));
|
||||||
{
|
|
||||||
cpu->AddCycles_CD();
|
cpu->AddCycles_CD();
|
||||||
((ARMv5*)cpu)->DataAbort();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
cpu->AddCycles_CD();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user