fix to fit? macros
This commit is contained in:
parent
9bdf648402
commit
7be2815cbc
3 changed files with 12 additions and 12 deletions
|
@ -13,14 +13,14 @@
|
|||
#define low6(z) ((short)(z) & 077)
|
||||
#define low7(z) ((short)(z) & 0177)
|
||||
|
||||
#define fit3(z) ((((z)-1) & ~07) == 0)
|
||||
#define fit4(z) (((z) & ~017) == 0)
|
||||
#define fit5(z) (((z) & ~037) == 0)
|
||||
#define fit6(z) (((z) & ~077) == 0)
|
||||
#define fit7(z) (((z) & ~0177) == 0)
|
||||
#define fit3(z) ((((z)-1) & ~(int)07) == 0)
|
||||
#define fit4(z) (((z) & ~(int)017) == 0)
|
||||
#define fit5(z) (((z) & ~(int)037) == 0)
|
||||
#define fit6(z) (((z) & ~(int)077) == 0)
|
||||
#define fit7(z) (((z) & ~(int)0177) == 0)
|
||||
#define sfit7(z) (fit7((z)+64))
|
||||
#define fit8(z) (((z) & ~0xFF) == 0)
|
||||
#define fit16(z) (((z) & ~0xFFFF) == 0)
|
||||
#define fit8(z) (((z) & ~(valu_t)0xFF) == 0)
|
||||
#define fit16(z) (((z) & ~(valu_t)0xFFFF) == 0)
|
||||
|
||||
#define SIZE_B 0000
|
||||
#define SIZE_W 0100
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
#define low3(z) ((short)(z) & 07)
|
||||
#define low4(z) ((short)(z) & 017)
|
||||
|
||||
#define fit3(z) ((((z)-1) & ~07) == 0)
|
||||
#define fit4(z) (((z) & ~017) == 0)
|
||||
#define fit8(z) (((z) & ~0xFF) == 0)
|
||||
#define fit16(z) (((z) & ~0xFFFF) == 0)
|
||||
#define fit3(z) ((((z)-1) & ~(int)07) == 0)
|
||||
#define fit4(z) (((z) & ~(int)017) == 0)
|
||||
#define fit8(z) (((z) & ~(int)0xFF) == 0)
|
||||
#define fit16(z) (((z) & ~(valu_t)0xFFFF) == 0)
|
||||
|
||||
#define SIZE_B 0000
|
||||
#define SIZE_W 0100
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
/* Test if a constant is suitable for literal mode */
|
||||
|
||||
#define literal(z) (((z) & ~0x3f) == 0)
|
||||
#define literal(z) (((z) & ~(int)0x3f) == 0)
|
||||
|
||||
/* Declarations for operands */
|
||||
|
||||
|
|
Loading…
Reference in a new issue