all repos — mgba @ 57f2cccacf663c8a5593a087ef61a4747f6b21f1

mGBA Game Boy Advance Emulator

Implement STRH(1)
Jeffrey Pfau jeffrey@endrift.com
Fri, 12 Apr 2013 20:06:58 -0700
commit

57f2cccacf663c8a5593a087ef61a4747f6b21f1

parent

21ee7946f1bb5c4f5bfe7caac642cfeeb487e742

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

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

@@ -100,7 +100,7 @@ DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(LDRB1, ARM_STUB)

DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(LDRH1, ARM_STUB) DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(STR1, ARM_STUB) DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(STRB1, ARM_STUB) -DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(STRH1, ARM_STUB) +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) \ DEFINE_INSTRUCTION_THUMB(NAME, \