xref: /csrg-svn/usr.bin/pascal/pdx/machine.h (revision 5451)
1*5451Slinton /* Copyright (c) 1982 Regents of the University of California */
2*5451Slinton 
3*5451Slinton static char sccsid[] = "@(#)machine.h 1.1 01/18/82";
4*5451Slinton 
5*5451Slinton /*
6*5451Slinton  * Definitions for the machine module.
7*5451Slinton  *
8*5451Slinton  * This module has the low level machine interface.  This consists
9*5451Slinton  * mostly of dealing with machine instructions and also setting
10*5451Slinton  * and unsetting breakpoints.
11*5451Slinton  */
12*5451Slinton 
13*5451Slinton ADDRESS pc;			/* current program counter */
14*5451Slinton LINENO curline;			/* line number associated with pc */
15*5451Slinton SYM *curfunc;			/* pointer to active function symbol */
16*5451Slinton short errnum;			/* current error number */
17*5451Slinton 
18*5451Slinton setbp();			/* set a breakpoint */
19*5451Slinton unsetbp();			/* unset a breakpoint */
20*5451Slinton BOOLEAN isbperr();		/* test if a breakpoint has occurred */
21*5451Slinton printerror();			/* print out an execution error message */
22*5451Slinton ADDRESS nextaddr();		/* address of next line to be executed */
23*5451Slinton printinst(), printninst();	/* print the instruction at a given address */
24*5451Slinton printdata(), printndata();	/* print the contents of a given data address */
25