well, adding shit. laying out the base for the interpreter. really dirty code.

This commit is contained in:
StapleButter
2016-11-24 18:31:49 +01:00
parent 3505ec993b
commit f74fb2dd27
11 changed files with 2143 additions and 17 deletions

27
ARMInterpreter_Branch.cpp Normal file
View File

@ -0,0 +1,27 @@
#include "ARM.h"
namespace ARMInterpreter
{
s32 A_B(ARM* cpu)
{
s32 offset = (s32)(cpu->CurInstr << 8) >> 6;
cpu->JumpTo(cpu->R[15] + offset);
return C_S(2) + C_N(1);
}
s32 A_BL(ARM* cpu)
{
s32 offset = (s32)(cpu->CurInstr << 8) >> 6;
cpu->R[14] = cpu->R[15] - 4;
cpu->JumpTo(cpu->R[15] + offset);
return C_S(2) + C_N(1);
}
}