//asmprot.h #include void myChop(char*); int myToken(char*, char[][38]); /*先宣告一下*/ /*** usage: ntoken = myToken(inputLine, tokenArray); ***/ char * getNextLine(FILE*, char*); int pass1(FILE*, FILE*); int pass2(FILE*, FILE*); extern int pc; /*program counter*/ extern int numInst; /* number of instructions */ extern int lineNumer; extern char token[20][38]; /* for tokens */ extern char comment[80]; extern FILE* fpIn, *fpOut; extern char bufIn[80], bufOut[80]; extern char symbolTable[][18]; // symbol Table extern int numSym; // number of items in symbolTable[][] after pass1 // You will have to use a string array for OPCodes , opTable[][6] // And a string array for all Directives if there are many Directives // the following opTable[][6], and numOp are in asmmain.cpp extern char opTable[][6]; // op Table stores OP Name of 最多 5 字 // you have to defing opTable[][6] in some where extern int numOp; // number of items in opTable[][] /*end*/