+HOME=../..
+
head: doc.pr
NROFF=nroff
TBL=tbl
+
FILES = macr.nr title.nr intro.nr mem.nr ispace.nr dspace.nr mapping.nr \
types.nr descr.nr env.nr traps.nr mach.nr assem.nr \
app.int.nr app.codes.nr app.exam.nr cont.nr
-IOP=../../util/ass/ip_spec.t
+
+IOP=$(HOME)/util/ass/ip_spec.t# # to construct itables from
doc.pr: $(FILES) itables em.i Makefile
$(TBL) $(FILES) | $(NROFF) >doc.pr
@make "NROFF="$(NROFF) TBL=$(TBL) doc.pr >makepr.out 2>&1
@cat doc.pr
+app.codes.pr: app.codes.nr itables
+
itables: $(IOP) ip.awk
awk -f ip.awk $(IOP) | sed 's/-/\\-/g' | $(TBL) >itables
.nr.pr: ; $(TBL) macr.nr $*.nr | $(NROFF) >$@
clean:
- rm -f doc.pr itables
+ rm -f *.pr itables *.out
The interpreter opcode table:
.N 1
.IS 3
-.DS B
.so itables
-.DE 0
.IE
.P
The table above results in the following dispatch tables.
mini with <num> as argument
.PT .<num>W
mini with <num>*wordsize as argument
-.PE 3
+.PE 1
<num> is a possibly negative integer.
.VS 1 1
.IE