Browse Source

swap operand order for Intel style REGOFF

tags/mesa_3_1
Josh Vanderhoof 27 years ago
parent
commit
0dd75e2884
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      src/mesa/x86/assyntax.h

+ 6
- 6
src/mesa/x86/assyntax.h View File

@@ -974,12 +974,12 @@
#define B_REGIND(a) BYTE_PTR [a]

/* Register b indirect plus displacement a */
#define P_REGOFF(a, b) [a + b]
#define X_REGOFF(a, b) TBYTE_PTR [a + b]
#define D_REGOFF(a, b) QWORD_PTR [a + b]
#define L_REGOFF(a, b) DWORD_PTR [a + b]
#define W_REGOFF(a, b) WORD_PTR [a + b]
#define B_REGOFF(a, b) BYTE_PTR [a + b]
#define P_REGOFF(a, b) [b + a]
#define X_REGOFF(a, b) TBYTE_PTR [b + a]
#define D_REGOFF(a, b) QWORD_PTR [b + a]
#define L_REGOFF(a, b) DWORD_PTR [b + a]
#define W_REGOFF(a, b) WORD_PTR [b + a]
#define B_REGOFF(a, b) BYTE_PTR [b + a]

/* Reg indirect Base + Index + Displacement - this is mainly for 16-bit mode
* which has no scaling

Loading…
Cancel
Save