diff options
| author | Damien George | 2014-09-29 16:25:04 +0100 |
|---|---|---|
| committer | Damien George | 2014-09-29 19:42:06 +0100 |
| commit | 0b610de017f01c40a055f79db3837f51f903b4d6 (patch) | |
| tree | eb19e0491166b8482ed72a1a3f7d8d8826c2604d /py/asmthumb.h | |
| parent | d66e48662bd35192b97cc93ae68574ff7d91c8ae (diff) | |
py: Make macro names in assemblers consistent, and tidy up a bit.
Diffstat (limited to 'py/asmthumb.h')
| -rw-r--r-- | py/asmthumb.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/py/asmthumb.h b/py/asmthumb.h index c17da16e0..beb12502c 100644 --- a/py/asmthumb.h +++ b/py/asmthumb.h @@ -27,38 +27,38 @@ #define ASM_THUMB_PASS_COMPUTE (1) #define ASM_THUMB_PASS_EMIT (2) -#define REG_R0 (0) -#define REG_R1 (1) -#define REG_R2 (2) -#define REG_R3 (3) -#define REG_R4 (4) -#define REG_R5 (5) -#define REG_R6 (6) -#define REG_R7 (7) -#define REG_R8 (8) -#define REG_R9 (9) -#define REG_R10 (10) -#define REG_R11 (11) -#define REG_R12 (12) -#define REG_R13 (13) -#define REG_R14 (14) -#define REG_R15 (15) -#define REG_LR (REG_R14) - -#define THUMB_CC_EQ (0x0) -#define THUMB_CC_NE (0x1) -#define THUMB_CC_CS (0x2) -#define THUMB_CC_CC (0x3) -#define THUMB_CC_MI (0x4) -#define THUMB_CC_PL (0x5) -#define THUMB_CC_VS (0x6) -#define THUMB_CC_VC (0x7) -#define THUMB_CC_HI (0x8) -#define THUMB_CC_LS (0x9) -#define THUMB_CC_GE (0xa) -#define THUMB_CC_LT (0xb) -#define THUMB_CC_GT (0xc) -#define THUMB_CC_LE (0xd) +#define ASM_THUMB_REG_R0 (0) +#define ASM_THUMB_REG_R1 (1) +#define ASM_THUMB_REG_R2 (2) +#define ASM_THUMB_REG_R3 (3) +#define ASM_THUMB_REG_R4 (4) +#define ASM_THUMB_REG_R5 (5) +#define ASM_THUMB_REG_R6 (6) +#define ASM_THUMB_REG_R7 (7) +#define ASM_THUMB_REG_R8 (8) +#define ASM_THUMB_REG_R9 (9) +#define ASM_THUMB_REG_R10 (10) +#define ASM_THUMB_REG_R11 (11) +#define ASM_THUMB_REG_R12 (12) +#define ASM_THUMB_REG_R13 (13) +#define ASM_THUMB_REG_R14 (14) +#define ASM_THUMB_REG_R15 (15) +#define ASM_THUMB_REG_LR (REG_R14) + +#define ASM_THUMB_CC_EQ (0x0) +#define ASM_THUMB_CC_NE (0x1) +#define ASM_THUMB_CC_CS (0x2) +#define ASM_THUMB_CC_CC (0x3) +#define ASM_THUMB_CC_MI (0x4) +#define ASM_THUMB_CC_PL (0x5) +#define ASM_THUMB_CC_VS (0x6) +#define ASM_THUMB_CC_VC (0x7) +#define ASM_THUMB_CC_HI (0x8) +#define ASM_THUMB_CC_LS (0x9) +#define ASM_THUMB_CC_GE (0xa) +#define ASM_THUMB_CC_LT (0xb) +#define ASM_THUMB_CC_GT (0xc) +#define ASM_THUMB_CC_LE (0xd) typedef struct _asm_thumb_t asm_thumb_t; |
