all repos — mgba @ ce593c4bfaa1c49c3b3f5f6343c017639a83bd7e

mGBA Game Boy Advance Emulator

Implement STRB(1)
Jeffrey Pfau jeffrey@endrift.com
Sun, 14 Apr 2013 02:58:05 -0700
commit

ce593c4bfaa1c49c3b3f5f6343c017639a83bd7e

parent

7c8d76eb065f35f1abbe7e2f3aceae3211081c11

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

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

@@ -126,7 +126,7 @@ DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(LDR1, cpu->gprs[rd] = cpu->memory->load32(cpu->memory, cpu->gprs[rm] + immediate * 4))

DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(LDRB1, ARM_STUB) DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(LDRH1, ARM_STUB) DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(STR1, cpu->memory->store32(cpu->memory, cpu->gprs[rm] + immediate * 4, cpu->gprs[rd])) -DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(STRB1, ARM_STUB) +DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(STRB1, cpu->memory->store8(cpu->memory, cpu->gprs[rm] + immediate, cpu->gprs[rd])) DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(STRH1, cpu->memory->store16(cpu->memory, cpu->gprs[rm] + immediate * 2, cpu->gprs[rd])) #define DEFINE_DATA_FORM_1_INSTRUCTION_EX_THUMB(NAME, RM, BODY) \