4 * (C) Copyright 1989-1995
12 * - outsym: show s_id as string rather than array [NCPS]
13 * - Added outr11 to support 8051's 11 bit destination address
24 * The module asout.c contains all the functions used to
25 * generate the .REL assembler output file.
28 * The assemblers' output object file is an ascii file containing
29 * the information needed by the linker to bind multiple object
30 * modules into a complete loadable memory image.
32 * The object module contains the following designators:
39 * H Most significant byte first
40 * L Least significant byte first
47 * R Relocation information
48 * P Paging information
53 * The first line of an object module contains the [XDQ][HL]
54 * format specifier (i.e. XH indicates a hexadecimal file with
55 * most significant byte first) for the following designators.
60 * H aa areas gg global symbols
62 * The header line specifies the number of areas(aa) and the
63 * number of global symbols(gg) defined or referenced in this ob-
64 * ject module segment.
71 * The module line specifies the module name from which this
72 * header segment was assembled. The module line will not appear
73 * if the .module directive was not used in the source program.
84 * The symbol line defines (Def) or references (Ref) the symbol
85 * 'string' with the value nnnn. The defined value is relative to
86 * the current area base address. References to constants and ex-
87 * ternal global symbols will always appear before the first area
88 * definition. References to external symbols will have a value of
94 * A label size ss flags ff
96 * The area line defines the area label, the size (ss) of the
97 * area in bytes, and the area flags (ff). The area flags specify
98 * the ABS, REL, CON, OVR, and PAG parameters:
100 * OVR/CON (0x04/0x00 i.e. bit position 2)
102 * ABS/REL (0x08/0x00 i.e. bit position 3)
104 * PAG (0x10 i.e. bit position 4)
109 * T xx xx nn nn nn nn nn ...
111 * The T line contains the assembled code output by the assem-
112 * bler with xx xx being the offset address from the current area
113 * base address and nn being the assembled instructions and data in
119 * R 0 0 nn nn n1 n2 xx xx ...
121 * The R line provides the relocation information to the linker.
122 * The nn nn value is the current area index, i.e. which area the
123 * current values were assembled. Relocation information is en-
124 * coded in groups of 4 bytes:
126 * 1. n1 is the relocation mode and object format
127 * 1. bit 0 word(0x00)/byte(0x01)
128 * 2. bit 1 relocatable area(0x00)/symbol(0x02)
129 * 3. bit 2 normal(0x00)/PC relative(0x04) relocation
130 * 4. bit 3 1-byte(0x00)/2-byte(0x08) object format for
132 * 5. bit 4 signed(0x00)/unsigned(0x10) byte data
133 * 6. bit 5 normal(0x00)/page '0'(0x20) reference
134 * 7. bit 6 normal(0x00)/page 'nnn'(0x40) reference
135 * 8. bit 7 normal(0x00)/MSB of value
137 * 2. n2 is a byte index into the corresponding (i.e. pre-
138 * ceeding) T line data (i.e. a pointer to the data to be
139 * updated by the relocation). The T line data may be
140 * 1-byte or 2-byte byte data format or 2-byte word
143 * 3. xx xx is the area/symbol index for the area/symbol be-
144 * ing referenced. the corresponding area/symbol is found
145 * in the header area/symbol lists.
148 * The groups of 4 bytes are repeated for each item requiring relo-
149 * cation in the preceeding T line.
154 * P 0 0 nn nn n1 n2 xx xx
156 * The P line provides the paging information to the linker as
157 * specified by a .setdp directive. The format of the relocation
158 * information is identical to that of the R line. The correspond-
159 * ing T line has the following information:
160 * T xx xx aa aa bb bb
162 * Where aa aa is the area reference number which specifies the
163 * selected page area and bb bb is the base address of the page.
164 * bb bb will require relocation processing if the 'n1 n2 xx xx' is
165 * specified in the P line. The linker will verify that the base
166 * address is on a 256 byte boundary and that the page length of an
167 * area defined with the PAG type is not larger than 256 bytes.
169 * The linker defaults any direct page references to the first
170 * area defined in the input REL file. All ASxxxx assemblers will
171 * specify the _CODE area first, making this the default page area.
174 * asout.c contains the following functions:
195 * The module asout.c contains the following local variables:
196 * int rel[] relocation data for code/data array
197 * int * relp pointer to rel array
198 * int txt[] assembled code/data array
199 * int * txtp pointer to txt array
208 char *txtp = { &txt[0] };
209 char *relp = { &rel[0] };
211 /*)Function VOID outab(b)
213 * int b assembler data word
215 * The function outab() processes a single word of
216 * assembled data in absolute format.
219 * int * txtp pointer to data word
222 * int oflag -o, generate relocatable output flag
223 * int pass assembler pass number
226 * VOID outchk() asout.c
227 * VOID out_lb() asout.c
230 * The current assembly address is incremented by 1.
246 /*)Function VOID outaw(w)
248 * int w assembler data word
250 * The function outaw() processes a single word of
251 * assembled data in absolute format.
254 * int * txtp pointer to data word
257 * int oflag -o, generate relocatable output flag
258 * int pass assembler pass number
261 * VOID outchk() asout.c
262 * VOID out_lw() asout.c
265 * The current assembly address is incremented by 2.
281 /*)Function VOID write_rmode(r)
283 * int r relocation mode
285 * write_rmode puts the passed relocation mode into the
286 * output relp buffer, escaping it if necessary.
289 * int * relp pointer to rel array
292 * VOID rerr() assubr.c
295 * relp is incremented appropriately.
300 /* We need to escape the relocation mode if it is greater
301 * than a byte, or if it happens to look like an escape.
302 * (I don't think that the latter case is legal, but
303 * better safe than sorry).
305 if ((r > 0xff) || ((r & R_ESCAPE_MASK) == R_ESCAPE_MASK))
307 /* Hack in up to an extra 4 bits of flags with escape. */
310 /* uh-oh.. we have more than 4 extra bits. */
312 "Internal error: relocation mode 0x%X too big.\n",
316 /* printf("escaping relocation mode\n"); */
317 *relp++ = R_ESCAPE_MASK | (r >> 8);
326 /*)Function VOID outrb(esp, r)
328 * expr * esp pointer to expr structure
329 * int r relocation mode
331 * The function outrb() processes a byte of generated code
332 * in either absolute or relocatable format dependent upon
333 * the data contained in the expr structure esp. If the
334 * .REL output is enabled then the appropriate information
335 * is loaded into the txt and rel buffers.
338 * int n symbol/area reference number
339 * int * relp pointer to rel array
340 * int * txtp pointer to txt array
343 * sym dot defined as sym[0]
344 * int oflag -o, generate relocatable output flag
345 * int pass assembler pass number
348 * VOID aerr() assubr.c
349 * VOID outchk() asout.c
350 * VOID out_lb() asout.c
351 * VOID out_rb() asout.c
352 * VOID out_tb() asout.c
355 * The current assembly address is incremented by 1.
359 outrb(struct expr *esp, int r)
364 if (esp->e_flag==0 && esp->e_base.e_ap==NULL) {
365 /* This is a constant; simply write the
366 * const byte to the T line and don't
367 * generate any relocation info.
369 out_lb(lobyte(esp->e_addr),0);
372 *txtp++ = lobyte(esp->e_addr);
375 /* We are generating a single byte of relocatable
378 * We generate a 24 bit address. The linker will
379 * select a single byte based on whether R_MSB or
384 r |= R_BYTE | R_BYT3 | esp->e_rlcf;
387 /* Probably should mark this differently in the
390 out_lb(byte3(esp->e_addr),r|R_RELOC|R_HIGH);
392 else if (r & R_MSB) {
393 out_lb(hibyte(esp->e_addr),r|R_RELOC|R_HIGH);
395 out_lb(lobyte(esp->e_addr),r|R_RELOC);
399 out_t24(esp->e_addr);
401 n = esp->e_base.e_sp->s_ref;
404 n = esp->e_base.e_ap->a_ref;
407 *relp++ = txtp - txt - 3;
416 /*)Function VOID outrw(esp, r)
418 * expr * esp pointer to expr structure
419 * int r relocation mode
421 * The function outrw() processes a word of generated code
422 * in either absolute or relocatable format dependent upon
423 * the data contained in the expr structure esp. If the
424 * .REL output is enabled then the appropriate information
425 * is loaded into the txt and rel buffers.
428 * int n symbol/area reference number
429 * int * relp pointer to rel array
430 * int * txtp pointer to txt array
433 * sym dot defined as sym[0]
434 * int oflag -o, generate relocatable output flag
435 * int pass assembler pass number
438 * VOID aerr() assubr.c
439 * VOID outchk() asout.c
440 * VOID out_lw() asout.c
441 * VOID out_rw() asout.c
442 * VOID out_tw() asout.c
445 * The current assembly address is incremented by 2.
449 outrw(struct expr *esp, int r)
455 if (esp->e_addr > 0xffff)
459 "large constant 0x%x truncated to 16 bits\n",
462 if (esp->e_flag==0 && esp->e_base.e_ap==NULL) {
463 out_lw(esp->e_addr,0);
469 r |= R_WORD | esp->e_rlcf;
473 out_lw(hibyte(esp->e_addr),r|R_RELOC);
475 out_lw(lobyte(esp->e_addr),r|R_RELOC);
478 out_lw(esp->e_addr,r|R_RELOC);
484 n = esp->e_base.e_sp->s_ref;
487 n = esp->e_base.e_ap->a_ref;
492 /* If this happens, the linker will
493 * attempt to process this 16 bit field
494 * as 24 bits. That would be bad.
497 "***Internal error: C24 out in "
502 *relp++ = txtp - txt - 2;
510 /*)Function VOID outr24(esp, r)
512 * expr * esp pointer to expr structure
513 * int r relocation mode
515 * The function outr24() processes 24 bits of generated code
516 * in either absolute or relocatable format dependent upon
517 * the data contained in the expr structure esp. If the
518 * .REL output is enabled then the appropriate information
519 * is loaded into the txt and rel buffers.
522 * int n symbol/area reference number
523 * int * relp pointer to rel array
524 * int * txtp pointer to txt array
527 * sym dot defined as sym[0]
528 * int oflag -o, generate relocatable output flag
529 * int pass assembler pass number
532 * VOID aerr() assubr.c
533 * VOID outchk() asout.c
534 * VOID out_l24() asout.c
535 * VOID out_rw() asout.c
536 * VOID out_t24() asout.c
539 * The current assembly address is incremented by 3.
543 outr24(struct expr *esp, int r)
548 if (esp->e_flag==0 && esp->e_base.e_ap==NULL) {
549 /* This is a constant expression. */
550 out_l24(esp->e_addr,0);
553 out_t24(esp->e_addr);
556 /* This is a symbol. */
557 r |= R_WORD | esp->e_rlcf;
559 /* I have no idea what this case is. */
562 out_lw(hibyte(esp->e_addr),r|R_RELOC);
564 out_lw(lobyte(esp->e_addr),r|R_RELOC);
567 out_l24(esp->e_addr,r|R_RELOC);
571 out_t24(esp->e_addr);
573 n = esp->e_base.e_sp->s_ref;
576 n = esp->e_base.e_ap->a_ref;
581 /* If this occurs, we cannot properly
582 * code the relocation data with the
583 * R_C24 flag. This means the linker
584 * will fail to do the 24 bit relocation.
588 "***Internal error: BYTE out in 24 "
589 "bit flat mode unexpected.\n");
593 write_rmode(r | R_C24);
594 *relp++ = txtp - txt - 3;
602 /*)Function VOID outdp(carea, esp)
604 * area * carea pointer to current area strcuture
605 * expr * esp pointer to expr structure
607 * The function outdp() flushes the output buffer and
608 * outputs paging information to the .REL file.
611 * int n symbol/area reference number
612 * int r relocation mode
613 * int * relp pointer to rel array
614 * int * txtp pointer to txt array
617 * int oflag -o, generate relocatable output flag
618 * int pass assembler pass number
621 * VOID outbuf() asout.c
622 * VOID outchk() asout.c
623 * VOID out_rw() asout.c
624 * VOID out_tw() asout.c
627 * Output buffer flushed to .REL fiel.
628 * Paging information dumped to .REL file.
633 register struct area *carea;
634 register struct expr *esp;
638 if (oflag && pass==2) {
640 out_tw(carea->a_ref);
642 if (esp->e_flag || esp->e_base.e_ap!=NULL) {
645 n = esp->e_base.e_sp->s_ref;
648 n = esp->e_base.e_ap->a_ref;
651 *relp++ = txtp - txt - 2;
658 /*)Function VOID outall()
660 * The function outall() will output any bufferred assembled
661 * data and relocation information (during pass 2 if the .REL
662 * output has been enabled).
668 * int oflag -o, generate relocatable output flag
669 * int pass assembler pass number
672 * VOID outbuf() asout.c
675 * assembled data and relocation buffers will be cleared.
681 if (oflag && pass==2)
685 /*)Function VOID outdot()
687 * The function outdot() outputs information about the
688 * current program counter value (during pass 2 if the .REL
689 * output has been enabled).
695 * int oflag -o, generate relocatable output flag
696 * int pass assembler pass number
699 * int fprintf() c_library
703 * assembled data and relocation buffers will be cleared.
709 if (oflag && pass==2) {
711 out(txt,(int) (txtp-txt));
714 out(rel,(int) (relp-rel));
721 /*)Function outchk(nt, nr)
723 * int nr number of additional relocation words
724 * int nt number of additional data words
726 * The function outchk() checks the data and relocation buffers
727 * for space to insert the nt data words and nr relocation words.
728 * If space is not available then output the current data and
729 * initialize the data buffers to receive the new data.
732 * area * ap pointer to an area structure
733 * int * relp pointer to rel array
734 * int * txtp pointer to txt array
737 * sym dot defined as sym[0]
740 * VOID outbuf() asout.c
743 * Data and relocation buffers may be emptied and initialized.
749 register struct area *ap;
751 if (txtp+nt > &txt[NTXT] || relp+nr > &rel[NREL]) {
756 if ((ap = dot.s_area) != NULL) {
757 write_rmode(R_WORD|R_AREA);
764 /*)Function VOID outbuf()
766 * The function outbuf() will output any bufferred data
767 * and relocation information to the .REL file. The output
768 * buffer pointers and counters are initialized.
771 * int rel[] relocation data for code/data array
772 * int * relp pointer to rel array
773 * int txt[] assembled code/data array
774 * int * txtp pointer to txt array
777 * FILE * ofp relocation output file handle
783 * All bufferred data written to .REL file and
784 * buffer pointers and counters initialized.
791 if (txtp > &txt[2]) {
793 out(txt,(int) (txtp-txt));
795 fprintf(ofp, "%s", s);
796 out(rel,(int) (relp-rel));
803 /*)Function VOID outgsd()
805 * The function outgsd() performs the following:
806 * (1) outputs the .REL file radix
807 * (2) outputs the header specifying the number
808 * of areas and global symbols
809 * (3) outputs the module name
810 * (4) set the reference number and output a symbol line
811 * for all external global variables and absolutes
812 * (5) output an area name, set reference number and output
813 * a symbol line for all global relocatables in the area.
814 * Repeat this proceedure for all areas.
817 * area * ap pointer to an area structure
818 * sym * sp pointer to a sym structure
821 * int c string character value
822 * int narea number of code areas
823 * char * ptr string pointer
824 * int nglob number of global symbols
825 * int rn symbol reference number
828 * area * areap pointer to an area structure
829 * char module[] module name string
830 * sym * symhash[] array of pointers to NHASH
831 * linked symbol lists
832 * int xflag -x, listing radix flag
835 * int fprintf() c_library
836 * VOID outarea() asout.c
837 * VOID outsym() asout.c
838 * int putc() c_library
841 * All symbols are given reference numbers, all symbol
842 * and area information is output to the .REL file.
848 register struct area *ap;
849 register struct sym *sp;
852 int c, narea, nglob, rn;
857 narea = areap->a_ref + 1;
860 * Number of global references/absolutes
863 for (i = 0; i < NHASH; ++i) {
866 if (sp->s_flag&S_GBL)
873 * Output Radix and number of areas and symbols
876 fprintf(ofp, "X%c\n", hilo ? 'H' : 'L');
877 fprintf(ofp, "H %X areas %X global symbols\n", narea, nglob);
880 fprintf(ofp, "Q%c\n", hilo ? 'H' : 'L');
881 fprintf(ofp, "H %o areas %o global symbols\n", narea, nglob);
884 fprintf(ofp, "D%c\n", hilo ? 'H' : 'L');
885 fprintf(ofp, "H %u areas %u global symbols\n", narea, nglob);
894 while (ptr < &module[NCPS]) {
895 if ((c = *ptr++) != 0)
902 * Sdcc compile options
904 if (strlen(optsdcc)) fprintf(ofp, "O %s\n", optsdcc);
907 * Global references and absolutes.
910 for (i=0; i<NHASH; ++i) {
913 if (sp->s_area==NULL && sp->s_flag&S_GBL) {
922 * Global relocatables.
924 for (i=0; i<narea; ++i) {
926 while (ap->a_ref != i)
929 for (j=0; j<NHASH; ++j) {
932 if (sp->s_area==ap && sp->s_flag&S_GBL) {
942 /*)Function VOID outarea(ap)
944 * area * ap pointer to an area structure
946 * The function outarea() outputs the A line to the .REL
947 * file. The A line contains the area's name, size, and
951 * char * ptr pointer to area id string
952 * int c character value
955 * FILE * ofp relocation output file handle
956 * int xflag -x, listing radix flag
959 * int fprintf() c_library
960 * int putc() c_library
963 * The A line is sent to the .REL file.
968 register struct area *ap;
975 while (ptr < &ap->a_id[NCPS]) {
976 if ((c = *ptr++) != 0)
980 fprintf(ofp, " size %X flags %X addr %X\n", ap->a_size, ap->a_flag, ap->a_addr);
983 fprintf(ofp, " size %o flags %o\n", ap->a_size, ap->a_flag);
986 fprintf(ofp, " size %u flags %u\n", ap->a_size, ap->a_flag);
990 /*)Function VOID outsym(sp)
992 * sym * sp pointer to a sym structure
994 * The function outsym() outputs the S line to the .REL
995 * file. The S line contains the symbols name and whether the
996 * the symbol is defined or referenced.
999 * char * ptr pointer to symbol id string
1000 * int c character value
1003 * FILE * ofp relocation output file handle
1004 * int xflag -x, listing radix flag
1007 * int fprintf() c_library
1008 * int putc() c_library
1011 * The S line is sent to the .REL file.
1016 register struct sym *sp;
1022 fprintf(ofp, "%s", ptr );
1023 fprintf(ofp, " %s", sp->s_type==S_NEW ? "Ref" : "Def");
1025 fprintf(ofp, "%04X\n", sp->s_addr);
1028 fprintf(ofp, "%06o\n", sp->s_addr);
1031 fprintf(ofp, "%05u\n", sp->s_addr);
1035 /*)Function VOID out(p, n)
1037 * int n number of words to output
1038 * int * p pointer to data words
1040 * The function out() outputs the data words to the .REL file
1041 * int the specified radix.
1047 * FILE * ofp relocation output file handle
1048 * int xflag -x, listing radix flag
1051 * int fprintf() c_library
1054 * Data is sent to the .REL file.
1062 fprintf(ofp, " %02X", (*p++)&0xff);
1065 fprintf(ofp, " %03o", (*p++)&0xff);
1068 fprintf(ofp, " %03u", (*p++)&0xff);
1073 /*)Function VOID out_lb(b, t)
1075 * int b assembled data
1076 * int t relocation type
1078 * The function out_lb() copies the assembled data and
1079 * its relocation type to the list data buffers.
1085 * int * cp pointer to assembler output array cb[]
1086 * int * cpt pointer to assembler relocation type
1087 * output array cbt[]
1093 * Pointers to data and relocation buffers incremented by 1.
1100 if (cp < &cb[NCODE]) {
1106 /*)Function VOID out_lw(n, t)
1108 * int n assembled data
1109 * int t relocation type
1111 * The function out_lw() copies the assembled data and
1112 * its relocation type to the list data buffers.
1118 * int * cp pointer to assembler output array cb[]
1119 * int * cpt pointer to assembler relocation type
1120 * output array cbt[]
1126 * Pointers to data and relocation buffers incremented by 2.
1134 out_lb(hibyte(n),t ? t|R_HIGH : 0);
1135 out_lb(lobyte(n),t);
1137 out_lb(lobyte(n),t);
1138 out_lb(hibyte(n),t ? t|R_HIGH : 0);
1142 /*)Function VOID out_l24(n, t)
1144 * int n assembled data
1145 * int t relocation type
1147 * The function out_l24() copies the assembled data and
1148 * its relocation type to the list data buffers.
1154 * int * cp pointer to assembler output array cb[]
1155 * int * cpt pointer to assembler relocation type
1156 * output array cbt[]
1162 * Pointers to data and relocation buffers incremented by 3.
1166 out_l24(int n, int t)
1169 out_lb(byte3(n),t ? t|R_HIGH : 0);
1170 out_lb(hibyte(n),t);
1171 out_lb(lobyte(n),t);
1173 out_lb(lobyte(n),t);
1174 out_lb(hibyte(n),t);
1175 out_lb(byte3(n),t ? t|R_HIGH : 0);
1179 /*)Function VOID out_rw(n)
1183 * The function out_rw() outputs the relocation (R)
1184 * data word as two bytes ordered according to hilo.
1187 * int * relp pointer to rel array
1193 * int lobyte() asout.c
1194 * int hibyte() asout.c
1197 * Pointer to relocation buffer incremented by 2.
1205 *relp++ = hibyte(n);
1206 *relp++ = lobyte(n);
1208 *relp++ = lobyte(n);
1209 *relp++ = hibyte(n);
1213 /*)Function VOID out_tw(n)
1217 * The function out_tw() outputs the text (T)
1218 * data word as two bytes ordered according to hilo.
1221 * int * txtp pointer to txt array
1227 * int lobyte() asout.c
1228 * int hibyte() asout.c
1231 * Pointer to relocation buffer incremented by 2.
1239 *txtp++ = hibyte(n);
1240 *txtp++ = lobyte(n);
1242 *txtp++ = lobyte(n);
1243 *txtp++ = hibyte(n);
1247 /*)Function VOID out_t24(n)
1251 * The function out_t24() outputs the text (T)
1252 * data word as three bytes ordered according to hilo.
1255 * int * txtp pointer to txt array
1261 * int lobyte() asout.c
1262 * int hibyte() asout.c
1265 * Pointer to relocation buffer incremented by 3.
1273 *txtp++ = hibyte(n);
1274 *txtp++ = lobyte(n);
1276 *txtp++ = lobyte(n);
1277 *txtp++ = hibyte(n);
1282 /*)Function int lobyte(n)
1286 * The function lobyte() returns the lower byte of
1308 /*)Function int hibyte(n)
1312 * The function hibyte() returns the higher byte of
1331 return ((n>>8)&0377);
1334 /*)Function int byte3(n)
1338 * The function byte3() returns the MSB of the
1356 return ((n >> 16) & 0xff);
1360 * JLH: Output relocatable 11 bit jump/call
1362 * This function is derived from outrw(), adding the parameter for the
1363 * 11 bit address. This form of address is used only on the 8051 and 8048.
1366 outr11(register struct expr *esp, int op, int r)
1371 if (esp->e_flag==0 && esp->e_base.e_ap==NULL) {
1372 /* Absolute destination.
1373 * Listing shows only the address.
1375 out_lw(esp->e_addr,0);
1378 out_tw(esp->e_addr);
1382 *relp++ = txtp - txt - 3;
1386 /* Relocatable destination. Build THREE
1387 * byte output: relocatable word, followed
1388 * by op-code. Linker will combine them.
1389 * Listing shows only the address.
1391 r |= R_WORD | esp->e_rlcf;
1392 out_lw(esp->e_addr,r|R_RELOC);
1395 out_tw(esp->e_addr);
1399 n = esp->e_base.e_sp->s_ref;
1402 n = esp->e_base.e_ap->a_ref;
1405 *relp++ = txtp - txt - 3;
1414 * Output relocatable 19 bit jump/call
1416 * This function is derived from outrw(), adding the parameter for the
1417 * 19 bit address. This form of address is used only in the DS80C390
1421 outr19(struct expr * esp, int op, int r)
1426 if (esp->e_flag==0 && esp->e_base.e_ap==NULL) {
1427 /* Absolute destination.
1428 * Listing shows only the address.
1430 out_lw(esp->e_addr,0);
1433 out_t24(esp->e_addr);
1437 *relp++ = txtp - txt - 4;
1441 /* Relocatable destination. Build FOUR
1442 * byte output: relocatable 24-bit entity, followed
1443 * by op-code. Linker will combine them.
1444 * Listing shows only the address.
1446 r |= R_WORD | esp->e_rlcf;
1447 out_l24(esp->e_addr,r|R_RELOC);
1450 out_t24(esp->e_addr);
1454 n = esp->e_base.e_sp->s_ref;
1457 n = esp->e_base.e_ap->a_ref;
1460 *relp++ = txtp - txt - 4;