/* rcsid[]="$Header: mode.h,v 800.1 85/09/24 15:50:57 root Exp $" */
/* sccsid[]="%W% %Y% %Q% %G%" */

#include "machine.h"
/*
 * sdb/adb - common definitions for old srb style code
 */

#define MAXCOM	64
#define MAXARG	32
/* LINSIZ increased from 512 to allow for megaMacros (sas) */
#define LINSIZ	2048
TYPE	unsigned long	ADDR;
TYPE	int	INT;
TYPE	int		VOID;
TYPE	long int	L_INT;
TYPE	float		REAL;
TYPE	double		L_REAL;
TYPE	unsigned	POS;
TYPE	char		BOOL;
TYPE	char		CHAR;
TYPE	char		*STRING;
TYPE	char		MSG[];
TYPE	struct adbMap	MAP;
TYPE	MAP		*MAPPTR;
TYPE	struct symb	SYMTAB;
TYPE	SYMTAB		*SYMPTR;
/*TYPE	struct symslave SYMSLAVE; */
TYPE	unsigned	SYMV;
TYPE	struct bkpt	BKPT;
TYPE	BKPT		*BKPTR;


/* file address maps */
struct adbMap {
	L_INT	b1;
	L_INT	e1;
	L_INT	f1;
	L_INT	b2;
	L_INT	e2;
	L_INT	f2;
	INT	ufd;
};


/* slave table for symbols */
struct symslave {
	SYMV	valslave;
	INT	typslave;
};

struct bkpt {
	ADDR	loc;
	ADDR	ins;
	INT	count;
	INT	initcnt;
	INT	flag;
	CHAR	comm[MAXCOM];
	BKPT	*nxtbkpt;
};

TYPE	struct reglist	REGLIST;
TYPE	REGLIST		*REGPTR;
struct reglist {
	STRING	rname;
	INT	roffs;
	L_INT	rval;
};

struct {
	INT	junk[2];
	INT	fpsr;
	REAL	Sfr[6];
};

struct {
	INT	junk[2];
	INT	fpsr;
	L_REAL	Lfr[6];
};

#define _MODE_
