xref: /csrg-svn/usr.bin/pascal/pdx/machine.h (revision 62131)
148104Sbostic /*-
2*62131Sbostic  * Copyright (c) 1980, 1993
3*62131Sbostic  *	The Regents of the University of California.  All rights reserved.
422570Sdist  *
548104Sbostic  * %sccs.include.redist.c%
648104Sbostic  *
7*62131Sbostic  *	@(#)machine.h	8.1 (Berkeley) 06/06/93
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