h25925
s 00002/00000/00083
d D 1.7 80/09/09 16:06:11 lcd 7 6
c Added PREV and NEXT
e
s 00002/00001/00081
d D 1.6 80/09/09 15:02:29 lcd 6 5
c Added NEXT to command defines
e
s 00001/00001/00081
d D 1.5 80/09/09 02:20:35 lcd 5 4
c Changed "struct" command to "table"
e
s 00001/00000/00081
d D 1.4 80/09/07 13:21:04 lcd 4 3
c Added STRUCT command
e
s 00001/00000/00080
d D 1.3 80/09/07 10:10:37 lcd 3 2
c Added exclaim character.
e
s 00001/00000/00079
d D 1.2 80/09/05 16:03:56 lcd 2 1
c Added ? and ! commands
e
s 00079/00000/00000
d D 1.1 80/05/15 14:26:59 lcd 1 0
e
u
sunix
lcd
U
t
T
I 1
#

#include "style.h"
#include <stdio.h>

/*
 *	globals.h: global definitions, types, and variables
 *
 *	%W%
 */

TYPE	/* types */

#define	COMMAND	int

CONST	/* constants */

	/*	COMMAND constants 	*/

#define NOCMD	0
#define QUIT	1
#define HELP	2
#define	LOOK	3		/* look at physical memory */
#define	TEXT	4		/* look at text */
#define DATA	5		/* look at data */
#define	STACK	6		/* look at stack */
#define	REG	7		/* look at registers */
#define MODE	8		/* set modes */
#define	NL	9		/* newline */
#define LABEL	10		/* label display */
#define BACK	11		/* back up step */
#define DOT	12		/* print dot */
#define NAME	13		/* print name */
#define	DISPLAY	14		/* another display please */
#define EQUAL	15		/* print out value of DOT */
#define PPT	16		/* look at PPT (formatted) */
#define SIGNAL	17		/* look at signal queue */
I 2
#define	SHELL	18		/* run inferior shell */
I 4
D 5
#define STRUCT	19		/* for displaying structs */
E 5
I 5
D 6
#define TABLE	19		/* for displaying structs */
E 6
I 6
#define TABLE	19		/* for displaying table entries */
#define NEXT	20		/* for displaying next table entry */
I 7
#define PREV	21		/* for displaying prev table entry */

E 7
E 6
E 5
E 4
E 2



	/*	addressing modes	*/

#define	OCTAL	0
#define	HEX	1
#define	DECIMAL	2
#define	BYTE	3
#define	CHAR	4


	/*	lengths		*/

#define MAXFILELENGTH	128
#define MAXLINELENGTH	128

	/*	characters	*/

#define eoln	'\n'
#define eos	'\0'
#define tab	'\t'
#define blank	' '
#define comma	','
#define dot	'.'
I 3
#define exclaim	'!'
E 3



VAR	/* variables 	*/

	COMMAND	command;

	integer	mode;
	integer step;
	long	addr;
	long	dsplysz;

	char	*symbol;

	FILE	*o_dump;
	FILE	*o_aout;
	FILE	*o_alst;
E 1
