Pristine Ack-5.5
[Ack-5.5.git] / mach / sun3 / ce / as.h
1 #define ARITH_FMT       "%ld"
2 #define INT_FMT         "%d"
3
4 struct t_operand {
5         unsigned type;
6         char *expr, *lbl;
7         int val, reg, reg2, scale, expr2;
8        };
9
10 #define IS_QUICK                1
11 #define IS_IMMEDIATE            2
12 #define IS_A_REG                3
13 #define IS_D_REG                4
14 #define IS_REG_PAIR             5
15 #define IS_INCR                 6
16 #define IS_DECR                 7
17 #define IS_3_OPS                8
18 #define IS_IND_MEM              9
19 #define IS_IND_IND              10
20 #define IS_GLOB_LBL             11
21 #define IS_LOC_LBL              12
22 #define IS_IND_REG              13
23 #define IS_IND_REG_DISPL        14
24
25 #define QUICK( op)      (op->type == IS_QUICK)
26 #define IMMEDIATE( op)  (op->type == IS_IMMEDIATE)
27 #define A_REG( op)      (op->type == IS_A_REG)
28 #define D_REG( op)      (op->type == IS_D_REG)
29 #define REG_PAIR( op)   (op->type == IS_REG_PAIR)
30 #define INCR( op)       (op->type == IS_INCR)
31 #define REG( op)        (op->type == IS_A_REG || op->type == IS_D_REG)
32 #define LOC_LBL( op)    (op->type == IS_LOC_LBL)
33 #define GLOB_LBL( op)   (op->type == IS_GLOB_LBL)