From c73f5763146f133fb497a4a54e5f486633ea6e33 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 2 Apr 1987 10:26:42 +0000 Subject: [PATCH] "word" is always a long --- doc/cg.doc | 12 ++++++------ doc/ncg.doc | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/cg.doc b/doc/cg.doc index 342fe8d09..391a86089 100644 --- a/doc/cg.doc +++ b/doc/cg.doc @@ -203,10 +203,10 @@ This is given as .DS FORMAT = string .DE -The default for string is "%d" or "%ld" depending on the wordsize of -the machine. For example on the PDP 11 one can use +The default for string is "%ld". +For example on the PDP 11 one can use .DS -FORMAT= "0%o" +FORMAT= "0%lo" .DE to satisfy the old UNIX assembler that reads octal unless followed by a period, and the ACK assembler that follows C conventions. @@ -980,7 +980,7 @@ and their range depends on the machine at hand. The type 'int' is used for things like labelcounters that won't require more than 16 bits precision. The type 'word' is used among others to assemble datawords and -is of type 'long' if EM_WSIZE>2. +is of type 'long'. The type 'full' is used for addresses and is of type 'long' if EM_WSIZE>2 or EM_PSIZE>2. .PP @@ -1125,9 +1125,9 @@ Example mach.h for the PDP-11 #define dlb_fmt "_%d" #define hol_fmt "hol%d" -#define hol_off "%d.+hol%d" +#define hol_off "%ld.+hol%d" -#define con_cst(x) fprintf(codefile,"%d.\en",x) +#define con_cst(x) fprintf(codefile,"%ld.\en",x) #define con_ilb(x) fprintf(codefile,"%s\en",x) #define con_dlb(x) fprintf(codefile,"%s\en",x) diff --git a/doc/ncg.doc b/doc/ncg.doc index ee45fd243..4570d0c8d 100644 --- a/doc/ncg.doc +++ b/doc/ncg.doc @@ -362,10 +362,10 @@ This is given as FORMAT = string .DE The string must be a valid printf(III) format, -and defaults to "%d" or "%ld" depending on the wordsize of -the machine. For example on the PDP-11 one can use +and defaults to "%ld". +For example on the PDP-11 one can use .DS -FORMAT= "0%o" +FORMAT= "0%lo" .DE to satisfy the old UNIX assembler that reads octal unless followed by a period, and the ACK assembler that follows C conventions. @@ -1956,7 +1956,7 @@ and TEM_PSIZE. The type 'int' is used for things like counters that won't require more than 16 bits precision. The type 'word' is used among others to assemble datawords and -is of type 'long' if TEM_WSIZE>2. +is of type 'long'. The type 'full' is used for addresses and is of type 'long' if TEM_WSIZE>2 or TEM_PSIZE>2. .PP @@ -2101,9 +2101,9 @@ Example mach.h for the PDP-11 #define dlb_fmt "_%d" #define hol_fmt "hol%d" -#define hol_off "%d.+hol%d" +#define hol_off "%ld.+hol%d" -#define con_cst(x) fprintf(codefile,"%d.\en",x) +#define con_cst(x) fprintf(codefile,"%ld.\en",x) #define con_ilb(x) fprintf(codefile,"%s\en",x) #define con_dlb(x) fprintf(codefile,"%s\en",x) -- 2.34.1