diff --git a/src/isa-thumb.c b/src/isa-thumb.c index 76ee9c54c..1a808707a 100644 --- a/src/isa-thumb.c +++ b/src/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, \