Do register writeback in addressing mode 2 before actual load/store

This commit is contained in:
Jeffrey Pfau 2013-07-26 23:42:45 -07:00
parent 8b1eb01a96
commit 9e578da5a1
1 changed files with 2 additions and 2 deletions

View File

@ -444,8 +444,8 @@ void ARMStep(struct ARMCore* cpu) {
int rm = opcode & 0xF; \
UNUSED(rm); \
address = ADDRESS; \
BODY; \
WRITEBACK;)
WRITEBACK; \
BODY;)
#define DEFINE_LOAD_STORE_INSTRUCTION_SHIFTER_ARM(NAME, SHIFTER, BODY) \
DEFINE_LOAD_STORE_INSTRUCTION_EX_ARM(NAME, ADDR_MODE_2_RN, ADDR_MODE_2_WRITEBACK(ADDR_MODE_2_INDEX(-, SHIFTER)), BODY) \