Implement LDR(1)
Jeffrey Pfau jeffrey@endrift.com
Fri, 12 Apr 2013 22:06:17 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/isa-thumb.c
→
src/isa-thumb.c
@@ -101,7 +101,7 @@
DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(LSR1, ARM_STUB) DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(ASR1, ARM_STUB) -DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(LDR1, ARM_STUB) +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]))