Merge branch 'interpreter-fixes' into chemical-x
This commit is contained in:
commit
b3dec0b66a
|
@ -115,6 +115,9 @@ void T_BL_LONG_1(ARM* cpu)
|
||||||
|
|
||||||
void T_BL_LONG_2(ARM* cpu)
|
void T_BL_LONG_2(ARM* cpu)
|
||||||
{
|
{
|
||||||
|
if ((cpu->CurInstr & 0x1801) == 0x0801) // "BLX" with bit 0 set is an unvalid instruction.
|
||||||
|
return T_UNK(cpu); // TODO: Check ARM7 for exceptions
|
||||||
|
|
||||||
cpu->AddCycles_C();
|
cpu->AddCycles_C();
|
||||||
s32 offset = (cpu->CurInstr & 0x7FF) << 1;
|
s32 offset = (cpu->CurInstr & 0x7FF) << 1;
|
||||||
u32 pc = cpu->R[14] + offset;
|
u32 pc = cpu->R[14] + offset;
|
||||||
|
|
Loading…
Reference in New Issue