all repos — mgba @ 340d3ce6a7387431e6defcacb63c263f84ab5340

mGBA Game Boy Advance Emulator

Implement B
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Apr 2013 20:16:14 -0700
commit

340d3ce6a7387431e6defcacb63c263f84ab5340

parent

5c7b4a98c680e4c40871a695746688d9250a17ec

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/arm.csrc/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,)