1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 01:31:33 +00:00

Moved macro TF() and added macro NOT()

This commit is contained in:
Curtis F Kaylor 2020-02-23 14:27:04 -05:00
parent 8c22e30a06
commit e284bebbfb
2 changed files with 5 additions and 4 deletions

View File

@ -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);}}

View File

@ -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