xref: /csrg-svn/usr.bin/pascal/pdx/machine.h (revision 22570)
1*22570Sdist /*
2*22570Sdist  * Copyright (c) 1980 Regents of the University of California.
3*22570Sdist  * All rights reserved.  The Berkeley software License Agreement
4*22570Sdist  * specifies the terms and conditions for redistribution.
5*22570Sdist  *
6*22570Sdist  *	@(#)machine.h	5.1 (Berkeley) 06/06/85
7*22570Sdist  */
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 short errnum;			/* current error number */
215451Slinton 
225451Slinton setbp();			/* set a breakpoint */
235451Slinton unsetbp();			/* unset a breakpoint */
245451Slinton BOOLEAN isbperr();		/* test if a breakpoint has occurred */
255451Slinton 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 */
285451Slinton printinst(), printninst();	/* print the instruction at a given address */
295451Slinton printdata(), printndata();	/* print the contents of a given data address */
30