mirror of https://github.com/mgba-emu/mgba.git
Implement B
This commit is contained in:
parent
abd522a2ce
commit
dbe9796b34
|
@ -358,7 +358,11 @@ DEFINE_LOAD_STORE_MULTIPLE_EX_THUMB(PUSHR, \
|
|||
|
||||
DEFINE_INSTRUCTION_THUMB(ILL, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_THUMB(BKPT, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_THUMB(B, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_THUMB(B, \
|
||||
int16_t immediate = (opcode & 0x07FF) << 5; \
|
||||
cpu->gprs[ARM_PC] += (((int32_t) immediate) >> 4); \
|
||||
THUMB_WRITE_PC;)
|
||||
|
||||
DEFINE_INSTRUCTION_THUMB(BL1, \
|
||||
int16_t immediate = (opcode & 0x07FF) << 5; \
|
||||
cpu->gprs[ARM_LR] = cpu->gprs[ARM_PC] + (((int32_t) immediate) << 7);)
|
||||
|
|
Loading…
Reference in New Issue