extern char rom[128][8192];
extern int  bank_offset[128];
extern int  bank_page[128];
extern int  max_bank;
extern int  bank;
extern int  page;
extern char filename[128];
extern int  rsbase;

extern int   mopt;
extern int   in_macro;
extern int   expand_macro;
extern char  marg[8][10][80];
extern int   midx;
extern int   mcounter, mcntmax;
extern int   mcntstack[8];
extern struct t_line  *mstack[8];
extern struct t_line  *mlptr;
extern struct t_macro *macro_tbl[256];
extern struct t_macro *mptr;

extern int  infile_error;
extern int  infile_num;
extern int  switch_throwback;
extern FILE	*optr;
extern FILE	*iptr;
extern FILE	*lptr;
extern struct t_input_info input_file[8];
extern struct t_symbol *hash_tbl[];	/* pointers to starting links in symtab */
extern struct t_symbol *lablptr;	/* label pointer into symbol table */
extern struct t_symbol *glablptr;	/* pointer to the latest defined global symbol */
extern char	hex[];		/* hexadecimal character buffer */
extern int	errcnt;		/* error counter */
extern int	loccnt;		/* location counter	*/
extern int	nxt_free;	/* next free location in symtab */
extern int	opflg;		/* operation code flags */
extern int	opval;		/* operation code value */
extern int	optype;		/* operation code type */
extern int	pass;		/* pass counter		*/
extern char	prlnbuf[];	/* print line buffer	*/
extern int	sflag;		/* symbol table output flag */
extern int	slnum;		/* source line number counter */
extern char	symbol[];	/* temporary symbol storage	*/
extern int	undef;		/* undefined symbol in expression flg  */
extern int	value;		/* operand field value */
extern int  clist;		/* listing on/off */
extern int  mlist;		/* macro listing on/off */
extern int  xlist;		/* flag for listing file */
extern int  opvaltab[6][16];
extern struct t_opcode optab[];

int colsym(int *);
struct t_symbol *stlook(void);
struct t_symbol *stinstal(int, int);
int stremove(void);
int labldef(int, int);
int symval(int *ip);

int load_pcx(char *);
int do_pal(int, unsigned int *);

extern void DDEUtils_ThrowbackStart(void);
extern void DDEUtils_ThrowbackSend_Processing(const char *);
extern void DDEUtils_ThrowbackSend_Error(const char *, const int, const int, const char *);
extern void DDEUtils_ThrowbackSend_Info(const char *, const int, const char *);
extern void DDEUtils_ThrowbackEnd(void);

