globals.h
1.06 KB
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
42
43
44
45
46
47
#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*OVERDOSE];
extern unsigned char DataSpace[MAX_DATA_BYTES*OVERDOSE];
extern DataSymbol DataSymbols[MAX_DATA_BYTES*OVERDOSE];
extern Symbol *LinearSymbols[MAX_DATA_BYTES*OVERDOSE];
extern int symbol_count;
extern unsigned int PC;
extern unsigned int DataCount;
extern unsigned int MaxDataCount;
extern unsigned int DataBase;
extern unsigned int AssembleBase;
extern unsigned int LocalAssembleBase[];
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;
#ifdef __sgi__
extern char yytext[200];
#else
extern char yytext[];
#endif
extern YYSTYPE yylval;
extern int yydebug;
#ifdef __cplusplus
}
#endif
#endif /* GLOBALS_H */