2017-04-22 18:39:52 +00:00
|
|
|
/******************************
|
|
|
|
* C02 File Handling Routines *
|
|
|
|
******************************/
|
|
|
|
|
|
|
|
FILE *srcfil; //Source File (Input)
|
|
|
|
FILE *outfil; //Assembler File (Output)
|
|
|
|
FILE *logfil; //Log File (Output)
|
|
|
|
FILE *incfil; //Include File Handle
|
|
|
|
FILE *inpfil; //Current Input File
|
|
|
|
|
|
|
|
char srcnam[FNAMLEN]; //Source File Name
|
|
|
|
char outnam[FNAMLEN]; //Assembler File Name
|
|
|
|
char lognam[FNAMLEN]; //Log File Name
|
|
|
|
char incnam[FNAMLEN]; //Include File Name
|
2019-03-29 23:09:41 +00:00
|
|
|
char subnam[SUBMAX][FNAMLEN]; //Include File Name (Subdirectory)
|
2017-04-22 18:39:52 +00:00
|
|
|
|
|
|
|
void opnsrc(); //Open Source File
|
2018-02-13 22:25:57 +00:00
|
|
|
void clssrc(); //Close Source File
|
2017-04-22 18:39:52 +00:00
|
|
|
|
|
|
|
void opnout(); //Open Output File
|
2018-02-13 22:25:57 +00:00
|
|
|
void clsout(); //Close Output File
|
|
|
|
|
|
|
|
void opnlog(); //Open Log File
|
|
|
|
void clslog(); //Close Log File
|
2017-04-22 18:39:52 +00:00
|
|
|
|
2019-03-29 23:09:41 +00:00
|
|
|
void opninc(int chksub); //Open Include File
|
2018-02-13 22:25:57 +00:00
|
|
|
void clsinc(); //Close Include File
|