add nocashPrint type shit

This commit is contained in:
StapleButter
2018-12-12 02:48:37 +01:00
parent d92c7e79df
commit e7a4fe11ed
3 changed files with 136 additions and 0 deletions

View File

@ -1501,6 +1501,15 @@ void T_MOV_HIREG(ARM* cpu)
{
cpu->R[rd] = cpu->R[rs];
}
// nocash-style debugging hook
if ((cpu->CurInstr & 0xFFFF) == 0x46E4 && // mov r12, r12
(cpu->NextInstr[0] & 0xF800) == 0xE000 && // branch
(cpu->NextInstr[1] & 0xFFFF) == 0x6464)
{
u32 addr = cpu->R[15] + 2;
NDS::NocashPrint(cpu->Num, addr);
}
}