all repos — mgba @ d7ddbee448e2bdcc8f2e28ceb6fb73a262654834

mGBA Game Boy Advance Emulator

Fix BL(1)
Jeffrey Pfau jeffrey@endrift.com
Fri, 12 Apr 2013 22:14:01 -0700
commit

d7ddbee448e2bdcc8f2e28ceb6fb73a262654834

parent

f86fb9dc7491c89e6389b71c4eb120393f60920e

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

jump to
M src/isa-thumb.csrc/isa-thumb.c

@@ -319,7 +319,7 @@ DEFINE_INSTRUCTION_THUMB(BKPT, ARM_STUB)

DEFINE_INSTRUCTION_THUMB(B, ARM_STUB) DEFINE_INSTRUCTION_THUMB(BL1, \ int16_t immediate = (opcode & 0x07FF) << 7; \ - cpu->gprs[ARM_LR] = cpu->gprs[ARM_PC] + (((int32_t) immediate) << 4);) + cpu->gprs[ARM_LR] = cpu->gprs[ARM_PC] + (((int32_t) immediate) << 5);) DEFINE_INSTRUCTION_THUMB(BL2, \ uint16_t immediate = (opcode & 0x07FF) << 1; \