
/* Copyright 1996 Tommy Johnson
** 
** Permission is hereby granted to copy, reproduce, redistribute or otherwise
** use this software as long as: there is no monetary profit gained
** specifically from the use or reproduction of this software, it is not
** sold, rented, traded or otherwise marketed, and this copyright notice is
** included prominently in any copy made.
**
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ANY USE OF THIS
** SOFTWARE IS AT THE USER'S OWN RISK. 
*/

#ifndef ASM_H
#define ASM_H
void strlower(char *dest,char *src);

/* if DEFINE is defined, the variables below will not be external refs */
#ifdef DEFINE
#undef DEFINE
#define DEFINE 
#else
#define DEFINE extern
#endif

/* max int for a 6805...   */
#define MAXINT 255
/* max length of an expression list */
#define MAXEXPR 1024
/* opcode table */
DEFINE struct inst table[];

DEFINE int lineno;     /* current line number */
DEFINE int pass;       /* pass */
DEFINE int pc;         /* program counter */
DEFINE int offset;     /* offset into output file */
DEFINE int admode;     /* addressing mode */

DEFINE FILE *output;    /* put the executable here... */

DEFINE int addmode,arg1,arg2,arg3;

extern int errno;
DEFINE int returnedint;
DEFINE char returnedstr[1024],opcode[1024];
DEFINE int exprlist[MAXEXPR];

#endif
