Implement B
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Apr 2013 20:16:14 -0700
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
src/arm.c
→
src/arm.c
@@ -377,7 +377,11 @@ // End load/store definitions
// Begin branch definitions -DEFINE_INSTRUCTION_ARM(B,) +DEFINE_INSTRUCTION_ARM(B, \ + int32_t offset = opcode << 8; \ + offset >>= 8; \ + cpu->gprs[ARM_PC] += offset) + DEFINE_INSTRUCTION_ARM(BL,) DEFINE_INSTRUCTION_ARM(BX,)