mirror of https://github.com/mgba-emu/mgba.git
Implement ADD(7)/SUB(4)
This commit is contained in:
parent
1ac7f0eb15
commit
9ab3b0c20a
|
@ -245,8 +245,8 @@ DEFINE_CONDITIONAL_BRANCH_THUMB(LT)
|
|||
DEFINE_CONDITIONAL_BRANCH_THUMB(GT)
|
||||
DEFINE_CONDITIONAL_BRANCH_THUMB(LE)
|
||||
|
||||
DEFINE_INSTRUCTION_THUMB(ADD7, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_THUMB(SUB4, ARM_STUB)
|
||||
DEFINE_INSTRUCTION_THUMB(ADD7, cpu->gprs[ARM_SP] += (opcode & 0x7F) << 2)
|
||||
DEFINE_INSTRUCTION_THUMB(SUB4, cpu->gprs[ARM_SP] -= (opcode & 0x7F) << 2)
|
||||
|
||||
DEFINE_LOAD_STORE_MULTIPLE_EX_THUMB(POP, \
|
||||
opcode & 0x00FF, \
|
||||
|
|
Loading…
Reference in New Issue