all repos — mgba @ 33fc9587ccbe416916c0c6437be5af5bbf37c63d

mGBA Game Boy Advance Emulator

Implement STR(1)
Jeffrey Pfau jeffrey@endrift.com
Fri, 12 Apr 2013 21:56:46 -0700
commit

33fc9587ccbe416916c0c6437be5af5bbf37c63d

parent

c8f85a657e6f1055412615e0328e369c9a223730

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

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

@@ -104,7 +104,7 @@

DEFINE_IMMEDIATE_5_INSTRUCTION_THUMB(LDR1, ARM_STUB) 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(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(STRH1, cpu->memory->store16(cpu->memory, cpu->gprs[rm] + immediate * 2, cpu->gprs[rd]))