mirror of https://github.com/mgba-emu/mgba.git
Implement B(1)
This commit is contained in:
parent
be8849d7fe
commit
eed0e77079
|
@ -277,7 +277,9 @@ DEFINE_LOAD_STORE_MULTIPLE_THUMB(STMIA, \
|
||||||
#define DEFINE_CONDITIONAL_BRANCH_THUMB(COND) \
|
#define DEFINE_CONDITIONAL_BRANCH_THUMB(COND) \
|
||||||
DEFINE_INSTRUCTION_THUMB(B ## COND, \
|
DEFINE_INSTRUCTION_THUMB(B ## COND, \
|
||||||
if (ARM_COND_ ## COND) { \
|
if (ARM_COND_ ## COND) { \
|
||||||
ARM_STUB; \
|
int8_t immediate = opcode; \
|
||||||
|
cpu->gprs[ARM_PC] += immediate << 1; \
|
||||||
|
THUMB_WRITE_PC; \
|
||||||
})
|
})
|
||||||
|
|
||||||
DEFINE_CONDITIONAL_BRANCH_THUMB(EQ)
|
DEFINE_CONDITIONAL_BRANCH_THUMB(EQ)
|
||||||
|
|
Loading…
Reference in New Issue