diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-29 16:25:04 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-29 19:42:06 +0100 |
commit | 0b610de017f01c40a055f79db3837f51f903b4d6 (patch) | |
tree | eb19e0491166b8482ed72a1a3f7d8d8826c2604d /py/asmx86.h | |
parent | d66e48662bd35192b97cc93ae68574ff7d91c8ae (diff) |
py: Make macro names in assemblers consistent, and tidy up a bit.
Diffstat (limited to 'py/asmx86.h')
-rw-r--r-- | py/asmx86.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/py/asmx86.h b/py/asmx86.h index 76df7bf2b..0ee192378 100644 --- a/py/asmx86.h +++ b/py/asmx86.h @@ -35,22 +35,22 @@ #define ASM_X86_PASS_COMPUTE (1) #define ASM_X86_PASS_EMIT (2) -#define REG_EAX (0) -#define REG_ECX (1) -#define REG_EDX (2) -#define REG_EBX (3) -#define REG_ESP (4) -#define REG_EBP (5) -#define REG_ESI (6) -#define REG_EDI (7) +#define ASM_X86_REG_EAX (0) +#define ASM_X86_REG_ECX (1) +#define ASM_X86_REG_EDX (2) +#define ASM_X86_REG_EBX (3) +#define ASM_X86_REG_ESP (4) +#define ASM_X86_REG_EBP (5) +#define ASM_X86_REG_ESI (6) +#define ASM_X86_REG_EDI (7) // x86 passes values on the stack, but the emitter is register based, so we need // to define registers that can temporarily hold the function arguments. They // need to be defined here so that asm_x86_call_ind can push them onto the stack // before the call. -#define ASM_X86_REG_ARG_1 REG_EAX -#define ASM_X86_REG_ARG_2 REG_ECX -#define ASM_X86_REG_ARG_3 REG_EDX +#define ASM_X86_REG_ARG_1 ASM_X86_REG_EAX +#define ASM_X86_REG_ARG_2 ASM_X86_REG_ECX +#define ASM_X86_REG_ARG_3 ASM_X86_REG_EDX // condition codes, used for jcc and setcc (despite their j-name!) #define ASM_X86_CC_JB (0x2) // below, unsigned |