Implement B

This commit is contained in:
Jeffrey Pfau 2013-04-06 20:16:14 -07:00
parent 5c7b4a98c6
commit 340d3ce6a7
1 changed files with 5 additions and 1 deletions

View File

@ -377,7 +377,11 @@ DEFINE_INSTRUCTION_ARM(SWPB,)
// Begin branch 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(BL,)
DEFINE_INSTRUCTION_ARM(BX,) DEFINE_INSTRUCTION_ARM(BX,)