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