mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-05 05:20:04 -06:00
allow crapoed THUMB hireg ADD/CMP/MOV
This commit is contained in:
@ -1384,6 +1384,9 @@ void T_MVN_REG(ARM* cpu)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// TODO: check those when MSBs and MSBd are cleared
|
||||||
|
// GBAtek says it's not allowed, but it works atleast on the ARM9
|
||||||
|
|
||||||
void T_ADD_HIREG(ARM* cpu)
|
void T_ADD_HIREG(ARM* cpu)
|
||||||
{
|
{
|
||||||
u32 rd = (cpu->CurInstr & 0x7) | ((cpu->CurInstr >> 4) & 0x8);
|
u32 rd = (cpu->CurInstr & 0x7) | ((cpu->CurInstr >> 4) & 0x8);
|
||||||
|
@ -1692,9 +1692,9 @@ INSTRFUNC_PROTO(THUMBInstrTable[1024]) =
|
|||||||
T_ORR_REG, T_MUL_REG, T_BIC_REG, T_MVN_REG,
|
T_ORR_REG, T_MUL_REG, T_BIC_REG, T_MVN_REG,
|
||||||
|
|
||||||
// 0100 0100 00
|
// 0100 0100 00
|
||||||
T_UNK, T_ADD_HIREG, T_ADD_HIREG, T_ADD_HIREG,
|
T_ADD_HIREG, T_ADD_HIREG, T_ADD_HIREG, T_ADD_HIREG,
|
||||||
T_UNK, T_CMP_HIREG, T_CMP_HIREG, T_CMP_HIREG,
|
T_CMP_HIREG, T_CMP_HIREG, T_CMP_HIREG, T_CMP_HIREG,
|
||||||
T_UNK, T_MOV_HIREG, T_MOV_HIREG, T_MOV_HIREG,
|
T_MOV_HIREG, T_MOV_HIREG, T_MOV_HIREG, T_MOV_HIREG,
|
||||||
T_BX, T_BX, T_BLX_REG, T_BLX_REG,
|
T_BX, T_BX, T_BLX_REG, T_BLX_REG,
|
||||||
|
|
||||||
// 0100 1000 00
|
// 0100 1000 00
|
||||||
|
Reference in New Issue
Block a user