Skip to content

Commit

Permalink
[DYNAREC] Forgot this file on previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed May 24, 2021
1 parent 6ae9b28 commit 78bafd8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dynarec/dynarec_arm_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@
LDR_REG_LSL_IMM5(x1, wback, O, 0); \
ed = x1; \
}
//GETEDO can use r1 for ed, and r2 for wback. wback is 0 if ed is xEAX..xEDI, else O is added to wback
#define GETEDO2(O) if((nextop&0xC0)==0xC0) { \
ed = xEAX+(nextop&7); \
wback = 0; \
} else { \
addr = geted(dyn, addr, ninst, nextop, &wback, x2, &fixedaddress, 0, 0); \
ADD_REG_LSL_IMM5(wback, wback, O, 0);\
LDR_IMM9(x1, wback, 0); \
ed = x1; \
}
#define WBACKO(O) if(wback) {STR_REG_LSL_IMM5(ed, wback, O, 0);}
//FAKEELike GETED, but doesn't get anything
#define FAKEED if((nextop&0xC0)!=0xC0) { \
Expand Down

0 comments on commit 78bafd8

Please sign in to comment.