Renamed several expression ops and added others.
Placed the DumpExpr function into the common directory, since it is used by the assembler and linker. git-svn-id: svn://svn.cc65.org/cc65/trunk@225 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
/* (C) 1998-2000 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
@@ -84,10 +84,17 @@
|
||||
/* Unary operations, right hand side is empty */
|
||||
#define EXPR_UNARY_MINUS (EXPR_UNARYNODE | 0x01)
|
||||
#define EXPR_NOT (EXPR_UNARYNODE | 0x02)
|
||||
#define EXPR_LOBYTE (EXPR_UNARYNODE | 0x03)
|
||||
#define EXPR_HIBYTE (EXPR_UNARYNODE | 0x04)
|
||||
#define EXPR_SWAP (EXPR_UNARYNODE | 0x05)
|
||||
#define EXPR_BNOT (EXPR_UNARYNODE | 0x06)
|
||||
#define EXPR_SWAP (EXPR_UNARYNODE | 0x03)
|
||||
#define EXPR_BNOT (EXPR_UNARYNODE | 0x04)
|
||||
#define EXPR_FORCEWORD (EXPR_UNARYNODE | 0x05)
|
||||
#define EXPR_FORCEFAR (EXPR_UNARYNODE | 0x06)
|
||||
|
||||
#define EXPR_BYTE0 (EXPR_UNARYNODE | 0x08)
|
||||
#define EXPR_BYTE1 (EXPR_UNARYNODE | 0x09)
|
||||
#define EXPR_BYTE2 (EXPR_UNARYNODE | 0x0A)
|
||||
#define EXPR_BYTE3 (EXPR_UNARYNODE | 0x0B)
|
||||
#define EXPR_WORD0 (EXPR_UNARYNODE | 0x0C)
|
||||
#define EXPR_WORD1 (EXPR_UNARYNODE | 0x0D)
|
||||
|
||||
|
||||
|
||||
@@ -101,7 +108,7 @@ struct ExprNode_ {
|
||||
union {
|
||||
long Val; /* If this is a value */
|
||||
struct SymEntry_* Sym; /* If this is a symbol */
|
||||
unsigned SegNum; /* If this is a segment */
|
||||
unsigned SegNum; /* If this is a segment */
|
||||
unsigned ImpNum; /* If this is an import */
|
||||
struct Memory_* MemArea; /* If this is a memory area */
|
||||
} V;
|
||||
@@ -116,6 +123,17 @@ struct ExprNode_ {
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
void DumpExpr (const ExprNode* Expr);
|
||||
/* Dump an expression tree to stdout */
|
||||
|
||||
|
||||
|
||||
/* End of exprdefs.h */
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user