xref: /csrg-svn/usr.bin/pascal/pdx/machine.h (revision 48104)
1*48104Sbostic /*-
2*48104Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*48104Sbostic  * All rights reserved.
422570Sdist  *
5*48104Sbostic  * %sccs.include.redist.c%
6*48104Sbostic  *
7*48104Sbostic  *	@(#)machine.h	5.4 (Berkeley) 04/16/91
822570Sdist  */
95451Slinton 
105451Slinton /*
115451Slinton  * Definitions for the machine module.
125451Slinton  *
135451Slinton  * This module has the low level machine interface.  This consists
145451Slinton  * mostly of dealing with machine instructions and also setting
155451Slinton  * and unsetting breakpoints.
165451Slinton  */
175451Slinton 
185451Slinton ADDRESS pc;			/* current program counter */
195451Slinton LINENO curline;			/* line number associated with pc */
205451Slinton SYM *curfunc;			/* pointer to active function symbol */
215451Slinton 
2233243Sbostic int setbp();			/* set a breakpoint */
2333243Sbostic int unsetbp();			/* unset a breakpoint */
245451Slinton BOOLEAN isbperr();		/* test if a breakpoint has occurred */
2533243Sbostic int printerror();		/* print out an execution error message */
265451Slinton ADDRESS nextaddr();		/* address of next line to be executed */
276079Slinton BOOLEAN isendofproc();		/* test if address is at end of procedure */
2833243Sbostic int printinst(), printninst();	/* print the instruction at a given address */
2933243Sbostic int printdata(), printndata();	/* print the contents of a given data address */
30