Fix addressing mode 3 immediate

This commit is contained in:
Jeffrey Pfau 2013-04-18 01:06:19 -07:00
parent b5cbd55718
commit 0048de2108
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ void ARMStep(struct ARMCore* cpu) {
#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)