all repos — mgba @ 783b2a3e09c0d98807239e23128573a913a072f3

mGBA Game Boy Advance Emulator

Implement ADD(5)
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Apr 2013 01:24:46 -0700
commit

783b2a3e09c0d98807239e23128573a913a072f3

parent

422961a2df929f5fff7b4fabf82671f92e2b91c8

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

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

@@ -281,7 +281,7 @@ DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(LDR3, cpu->gprs[rd] = cpu->memory->load32(cpu->memory, cpu->gprs[ARM_PC] + immediate))

DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(LDR4, cpu->gprs[rd] = cpu->memory->load32(cpu->memory, cpu->gprs[ARM_SP] + immediate)) DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(STR3, cpu->memory->store32(cpu->memory, cpu->gprs[ARM_SP] + immediate, cpu->gprs[rd])) -DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(ADD5, ARM_STUB) +DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(ADD5, cpu->gprs[rd] = (cpu->gprs[ARM_PC] & 0xFFFFFFFC) + immediate) DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(ADD6, cpu->gprs[rd] = cpu->gprs[ARM_SP] + immediate) #define DEFINE_LOAD_STORE_WITH_REGISTER_EX_THUMB(NAME, RM, BODY) \