all repos — mgba @ a7bc99c84610f578e41613bf05a2042b3f42775d

mGBA Game Boy Advance Emulator

Implement LDR(3)
Jeffrey Pfau jeffrey@endrift.com
Fri, 12 Apr 2013 20:09:27 -0700
commit

a7bc99c84610f578e41613bf05a2042b3f42775d

parent

57f2cccacf663c8a5593a087ef61a4747f6b21f1

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

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

@@ -186,7 +186,7 @@

#define DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(NAME, BODY) \ COUNT_3(DEFINE_IMMEDIATE_WITH_REGISTER_EX_THUMB, NAME ## _R, BODY) -DEFINE_IMMEDIATE_WITH_REGISTER_THUMB(LDR3, ARM_STUB) +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)