mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-25 06:31:25 +00:00
Moved macro TF() and added macro NOT()
This commit is contained in:
parent
8c22e30a06
commit
e284bebbfb
@ -37,9 +37,12 @@
|
||||
|
||||
#define ASMFMT "%-7s %-3s %-12s %s\n" //Assembly Language Line printf Format
|
||||
|
||||
/* Internal defines */
|
||||
/* Internal Constants and Macros */
|
||||
#define TRUE -1
|
||||
#define FALSE 0
|
||||
#define NOT(exp) (exp) == 0
|
||||
#define TF(x) (x) ? TRUE : FALSE;
|
||||
|
||||
|
||||
void prtpos(); //Print current file name and position
|
||||
#define DEBUG(fmt, val) {if (debug) {prtpos(); printf(fmt, val);}}
|
||||
|
@ -2,8 +2,6 @@
|
||||
* C02 Input File Parsing Routines *
|
||||
*************************************/
|
||||
|
||||
#define TF(x) (x) ? TRUE : FALSE;
|
||||
|
||||
enum stypes {LITERAL, VARIABLE, REGISTER, ARRAY, STRUCTURE, FUNCTION, ADDRESS, INTEGER}; //Symbol Types
|
||||
enum etypes {ETDEF, ETMAC}; //Definition Types
|
||||
|
||||
@ -55,7 +53,7 @@ int prsbyt(); //Parse Numeric Byte
|
||||
void prslit(); //Parse Literal
|
||||
int prsnum(int maxval); //Parse Numeric
|
||||
void prsopr(); //Parse Arithmetic Operator
|
||||
int prspst(char trmntr, int isint, char* name, char* index, char indtyp, char ispntr); //Parse Post Operator
|
||||
int prspst(char oper, char trmntr, int isint, char* name, char* index, char indtyp, char ispntr); //Parse Post Operator
|
||||
int psizof(void); //Parse SizeOf Operator
|
||||
int pidxof(void); //Parse SizeOf Operator
|
||||
void skpchr(); //Skip Next Character
|
||||
|
Loading…
Reference in New Issue
Block a user