all repos — mgba @ c8f85a657e6f1055412615e0328e369c9a223730

mGBA Game Boy Advance Emulator

Implement STR(3)
Jeffrey Pfau jeffrey@endrift.com
Fri, 12 Apr 2013 21:48:30 -0700
commit

c8f85a657e6f1055412615e0328e369c9a223730

parent

3e57e4604688894f710f8ac81091054e613b9803

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

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

@@ -198,7 +198,7 @@ COUNT_3(DEFINE_IMMEDIATE_WITH_REGISTER_EX_THUMB, NAME ## _R, BODY)

DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(LDR3, cpu->gprs[rd] = cpu->memory->load32(cpu->memory, cpu->gprs[ARM_PC] + immediate)) DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(LDR4, ARM_STUB) -DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(STR3, ARM_STUB) +DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(STR3, cpu->memory->store32(cpu->memory, cpu->gprs[ARM_SP] + immediate, cpu->gprs[rd])) DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(ADD5, ARM_STUB) DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(ADD6, cpu->gprs[rd] = cpu->gprs[ARM_SP] + immediate)