all repos — mgba @ 0048de21080d99957da8e8d0d81064fce53d78cb

mGBA Game Boy Advance Emulator

Fix addressing mode 3 immediate
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Apr 2013 01:06:19 -0700
commit

0048de21080d99957da8e8d0d81064fce53d78cb

parent

b5cbd557189b7fe046afba606e9f2a93ec41081d

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

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

@@ -244,7 +244,7 @@

#define ADDR_MODE_3_ADDRESS ADDR_MODE_2_ADDRESS #define ADDR_MODE_3_RN ADDR_MODE_2_RN #define ADDR_MODE_3_RM ADDR_MODE_2_RM -#define ADDR_MODE_3_IMMEDIATE ADDR_MODE_2_IMMEDIATE +#define ADDR_MODE_3_IMMEDIATE ((opcode & 0x00000F00) >> 4) | (opcode & 0x0000000F) #define ADDR_MODE_3_INDEX(U_OP, M) ADDR_MODE_2_INDEX(U_OP, M) #define ADDR_MODE_3_WRITEBACK(ADDR) ADDR_MODE_2_WRITEBACK(ADDR)