added description of newplb macro.
Enlarged an example.
This commit is contained in:
parent
aa9d50ff5a
commit
3287090f5b
1 changed files with 8 additions and 3 deletions
11
doc/cg.doc
11
doc/cg.doc
|
@ -466,9 +466,10 @@ and
|
||||||
.DE
|
.DE
|
||||||
will match for example
|
will match for example
|
||||||
.DS
|
.DS
|
||||||
\fBlol\fP 6
|
.ta 10m 20m 30m 40m 50m 60m
|
||||||
\fBinc\fP
|
\fBlol\fP 6 \fBlol\fP -2 \fBlol\fP 4
|
||||||
\fBstl\fP 6
|
\fBinc\fP \fBinc\fP but \fInot\fP \fBinc\fP
|
||||||
|
\fBstl\fP 6 \fBstl\fP -2 \fBstl\fP -4
|
||||||
.DE
|
.DE
|
||||||
A missing boolean expression evaluates to TRUE.
|
A missing boolean expression evaluates to TRUE.
|
||||||
.PP
|
.PP
|
||||||
|
@ -1013,6 +1014,9 @@ This is the translation of the EM \fBexa\fP and \fBexp\fP instructions.
|
||||||
.IP in_ap(s)
|
.IP in_ap(s)
|
||||||
Same to import the symbol.
|
Same to import the symbol.
|
||||||
Translation of \fBina\fP and \fBinp\fP.
|
Translation of \fBina\fP and \fBinp\fP.
|
||||||
|
.IP newplb(s)
|
||||||
|
Must print the definition of procedure label \fIs\fR.
|
||||||
|
If left undefined the newilb() macro is used instead.
|
||||||
.IP newilb(s)
|
.IP newilb(s)
|
||||||
Must print the definition of instruction label \fIs\fR.
|
Must print the definition of instruction label \fIs\fR.
|
||||||
.IP newdlb(s)
|
.IP newdlb(s)
|
||||||
|
@ -1083,6 +1087,7 @@ Example mach.h for the PDP-11
|
||||||
#define ex_ap(y) fprintf(codefile,"\et.globl %s\en",y)
|
#define ex_ap(y) fprintf(codefile,"\et.globl %s\en",y)
|
||||||
#define in_ap(y) /* nothing */
|
#define in_ap(y) /* nothing */
|
||||||
|
|
||||||
|
#define newplb(x) fprintf(codefile,"%s:\en",x)
|
||||||
#define newilb(x) fprintf(codefile,"%s:\en",x)
|
#define newilb(x) fprintf(codefile,"%s:\en",x)
|
||||||
#define newdlb(x) fprintf(codefile,"%s:\en",x)
|
#define newdlb(x) fprintf(codefile,"%s:\en",x)
|
||||||
#define dlbdlb(x,y) fprintf(codefile,"%s=%s\en",x,y)
|
#define dlbdlb(x,y) fprintf(codefile,"%s=%s\en",x,y)
|
||||||
|
|
Loading…
Reference in a new issue