xref: /csrg-svn/usr.bin/pascal/pdx/machine.h (revision 33243)
122570Sdist /*
222570Sdist  * Copyright (c) 1980 Regents of the University of California.
322570Sdist  * All rights reserved.  The Berkeley software License Agreement
422570Sdist  * specifies the terms and conditions for redistribution.
522570Sdist  *
6*33243Sbostic  *	@(#)machine.h	5.3 (Berkeley) 01/03/88
722570Sdist  */
85451Slinton 
95451Slinton /*
105451Slinton  * Definitions for the machine module.
115451Slinton  *
125451Slinton  * This module has the low level machine interface.  This consists
135451Slinton  * mostly of dealing with machine instructions and also setting
145451Slinton  * and unsetting breakpoints.
155451Slinton  */
165451Slinton 
175451Slinton ADDRESS pc;			/* current program counter */
185451Slinton LINENO curline;			/* line number associated with pc */
195451Slinton SYM *curfunc;			/* pointer to active function symbol */
205451Slinton 
21*33243Sbostic int setbp();			/* set a breakpoint */
22*33243Sbostic int unsetbp();			/* unset a breakpoint */
235451Slinton BOOLEAN isbperr();		/* test if a breakpoint has occurred */
24*33243Sbostic int printerror();		/* print out an execution error message */
255451Slinton ADDRESS nextaddr();		/* address of next line to be executed */
266079Slinton BOOLEAN isendofproc();		/* test if address is at end of procedure */
27*33243Sbostic int printinst(), printninst();	/* print the instruction at a given address */
28*33243Sbostic int printdata(), printndata();	/* print the contents of a given data address */
29