all repos — mgba @ 190f9b41e62ff30c2f4cb176dee45c626642be0e

mGBA Game Boy Advance Emulator

Implement STRB(2)
Jeffrey Pfau jeffrey@endrift.com
Tue, 23 Apr 2013 02:13:59 -0700
commit

190f9b41e62ff30c2f4cb176dee45c626642be0e

parent

e82fd991fa89c8b6b4ffbb1d9d65e1f6059349da

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

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

@@ -316,7 +316,7 @@ DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(LDRH2, cpu->gprs[rd] = cpu->memory->loadU16(cpu->memory, cpu->gprs[rn] + cpu->gprs[rm]))

DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(LDRSB, cpu->gprs[rd] = cpu->memory->load8(cpu->memory, cpu->gprs[rn] + cpu->gprs[rm])) DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(LDRSH, cpu->gprs[rd] = cpu->memory->load16(cpu->memory, cpu->gprs[rn] + cpu->gprs[rm])) DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(STR2, ARM_STUB) -DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(STRB2, ARM_STUB) +DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(STRB2, cpu->memory->store8(cpu->memory, cpu->gprs[rn] + cpu->gprs[rm], cpu->gprs[rd])) DEFINE_LOAD_STORE_WITH_REGISTER_THUMB(STRH2, ARM_STUB) #define DEFINE_LOAD_STORE_MULTIPLE_EX_THUMB(NAME, RN, ADDRESS, LOOP, BODY, OP, PRE_BODY, POST_BODY, WRITEBACK) \