globals.h
922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef GLOBALS_H
#define GLOBALS_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stdio.h"
#include "defines.h"
#include "types.h"
extern Instruction InstructionSpace[MAX_INSTRUCTIONS*2];
extern unsigned char DataSpace[MAX_DATA_BYTES];
extern Symbol *DataSymbols[MAX_DATA_BYTES];
extern Symbol *LinearSymbols[MAX_DATA_BYTES];
extern int symbol_count;
extern unsigned int PC;
extern unsigned int DataCount;
extern unsigned int DataBase;
extern unsigned int AssembleBase;
extern int AssembleBaseSet;
extern unsigned int OpcodeTable[MAX_OPCODES];
extern char *(OpcodeStrings[64]);
extern char *(SpecialStrings[64]);
extern char *(RegimmStrings[32]);
extern char *(Cop2Strings[32]);
/* lex and yacc globals */
#include "y.tab.h"
extern FILE *yyin;
extern FILE *yyout;
extern int yylineno;
extern char yytext[200];
extern YYSTYPE yylval;
extern int yydebug;
#ifdef __cplusplus
}
#endif
#endif /* GLOBALS_H */