globals.h 922 Bytes
#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 */