]> git.gag.com Git - fw/sdcc/blob - as/mcs51/aslink.h
* src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing...
[fw/sdcc] / as / mcs51 / aslink.h
1 /* aslink.h */
2
3 /*
4  * (C) Copyright 1989-1995
5  * All Rights Reserved
6  *
7  * Alan R. Baldwin
8  * 721 Berkeley St.
9  * Kent, Ohio  44240
10  *
11  * 28-Oct-97 JLH: 
12  *           - add proto for StoreString
13  *           - change s_id from [NCPS] to pointer
14  *           - change NCPS to 80
15  *           - case sensitive
16  *           - add R_J11 for 8051 assembler
17  * 31-Oct-97 JLH: 
18  *           - add jflag and jfp for NoICE output
19  * 30-Jan-98 JLH:
20  *           - add memory space flags to a_flag for 8051
21  */
22
23 #define VERSION "V01.70 + NoICE + SDCC Feb 1999"
24
25 /*
26  * Case Sensitivity Flag
27  */
28 #define CASE_SENSITIVE  1
29
30 /*)Module       asmlnk.h
31  *
32  *      The module asmlnk.h contains the definitions for constants,
33  *      structures, global variables, and LKxxxx functions
34  *      contained in the LKxxxx.c files.
35  */
36
37 /*)BUILD
38         $(PROGRAM) =    ASLINK
39         $(INCLUDE) =    ASLINK.H
40         $(FILES) = {
41                 LKMAIN.C
42                 LKLEX.C
43                 LKAREA.C
44                 LKHEAD.C
45                 LKSYM.C
46                 LKEVAL.C
47                 LKDATA.C
48                 LKLIST.C
49                 LKRLOC.C
50                 LKLIBR.C
51                 LKS19.C
52                 LKIHX.C
53         }
54         $(STACK) = 2000
55 */
56
57 /* DECUS C void definition */
58 /* File/extension seperator */
59
60 #ifdef  decus
61 #define VOID    char
62 #define FSEPX   '.'
63 #endif
64
65 /* PDOS C void definition */
66 /* File/extension seperator */
67
68 #ifdef  PDOS
69 #define VOID    char
70 #define FSEPX   ':'
71 #endif
72
73 /* Default void definition */
74 /* File/extension seperator */
75
76 #ifndef VOID
77 #define VOID    void
78 #define FSEPX   '.'
79 #define OTHERSYSTEM 
80 #endif
81
82 /*
83  * This file defines the format of the
84  * relocatable binary file.
85  */
86
87 #define NCPS    80              /* characters per symbol (JLH: change from 8) */
88 #define NDATA   16              /* actual data */
89 #define NINPUT  FILENAME_MAX    /* Input buffer size (BH: change from 128) */
90 #define NHASH   64              /* Buckets in hash table */
91 #define HMASK   077             /* Hash mask */
92 #define NLPP    60              /* Lines per page */
93 #define NTXT    16              /* T values */
94
95 /*
96  *      The "R_" relocation constants define values used in
97  *      generating the assembler relocation output data for
98  *      areas, symbols, and code.
99  *
100  *
101  *      Relocation types.
102  *
103  *             7     6     5     4     3     2     1     0
104  *          +-----+-----+-----+-----+-----+-----+-----+-----+
105  *          | MSB | PAGn| PAG0| USGN| BYT2| PCR | SYM | BYT |
106  *          +-----+-----+-----+-----+-----+-----+-----+-----+
107  */
108
109 #define R_WORD  0x00            /* 16 bit */
110 #define R_BYTE  0x01            /*  8 bit */
111
112 #define R_AREA  0x00            /* Base type */
113 #define R_SYM   0x02
114
115 #define R_NORM  0x00            /* PC adjust */
116 #define R_PCR   0x04
117
118 #define R_BYT1  0x00            /* Byte count for R_BYTE = 1 */
119 #define R_BYT2  0x08            /* Byte count for R_BYTE = 2 */
120
121 #define R_SGND  0x00            /* Signed Byte */
122 #define R_USGN  0x10            /* Unsigned Byte */
123
124 #define R_NOPAG 0x00            /* Page Mode */
125 #define R_PAG0  0x20            /* Page '0' */
126 #define R_PAG   0x40            /* Page 'nnn' */
127
128 #define R_LSB   0x00            /* low byte */
129 #define R_MSB   0x80            /* high byte */
130
131 #define R_BYT3  0x100           /* if R_BYTE is set, this is a 
132                                  * 3 byte address, of which
133                                  * the linker must select one byte.
134                                  */
135 #define R_HIB   0x200           /* If R_BYTE & R_BYT3 are set, linker
136                                  * will select byte 3 of the relocated
137                                  * 24 bit address.
138                                  */
139
140 #define R_J11   (R_WORD|R_BYT2) /* JLH: 11 bit JMP and CALL (8051) */
141 #define R_J19   (R_WORD|R_BYT2|R_MSB) /* 19 bit JMP/CALL (DS80C390) */
142 #define R_C24   (R_WORD|R_BYT1|R_MSB) /* 24 bit address (DS80C390) */
143 #define R_J19_MASK (R_BYTE|R_BYT2|R_MSB)
144
145 #define IS_R_J19(x) (((x) & R_J19_MASK) == R_J19)
146 #define IS_R_J11(x) (((x) & R_J19_MASK) == R_J11)
147 #define IS_C24(x) (((x) & R_J19_MASK) == R_C24)
148
149 #define R_ESCAPE_MASK   0xf0    /* Used to escape relocation modes
150                                  * greater than 0xff in the .rel
151                                  * file.
152                                  */
153
154 /*
155  * Global symbol types.
156  */
157 #define S_REF   1               /* referenced */
158 #define S_DEF   2               /* defined */
159
160 /*
161  * Area type flags
162  */
163 #define A_CON   0000            /* concatenate */
164 #define A_OVR   0004            /* overlay */
165 #define A_REL   0000            /* relocatable */
166 #define A_ABS   0010            /* absolute */
167 #define A_NOPAG 0000            /* non-paged */
168 #define A_PAG   0020            /* paged */
169
170 /* Additional flags for 8051 address spaces */
171 #define A_DATA  0000            /* data space (default)*/
172 #define A_CODE  0040            /* code space */
173 #define A_XDATA 0100            /* external data space */
174 #define A_BIT   0200            /* bit addressable space */
175
176 /*
177  * File types
178  */
179 #define F_STD   1               /* stdin */
180 #define F_LNK   2               /* File.lnk */
181 #define F_REL   3               /* File.rel */
182
183 /*
184  *      General assembler address type
185  */
186 typedef unsigned int Addr_T;
187
188 /*
189  *      The structures of head, area, areax, and sym are created
190  *      as the REL files are read during the first pass of the
191  *      linker.  The struct head is created upon encountering a
192  *      H directive in the REL file.  The structure contains a
193  *      link to a link file structure (struct lfile) which describes
194  *      the file containing the H directive, the number of data/code
195  *      areas contained in this header segment, the number of
196  *      symbols referenced/defined in this header segment, a pointer
197  *      to an array of pointers to areax structures (struct areax)
198  *      created as each A directive is read, and a pointer to an
199  *      array of pointers to symbol structures (struct sym) for
200  *      all referenced/defined symbols.  As H directives are read
201  *      from the REL files a linked list of head structures is
202  *      created by placing a link to the new head structure
203  *      in the previous head structure.
204  */
205 struct  head
206 {
207         struct  head   *h_hp;   /* Header link */
208         struct  lfile  *h_lfile;/* Associated file */
209         int     h_narea;        /* # of areas */
210         struct  areax **a_list; /* Area list */
211         int     h_nglob;        /* # of global symbols */
212         struct  sym   **s_list; /* Globle symbol list */
213         char    m_id[NCPS];     /* Module name */
214 };
215
216 /*
217  *      A structure area is created for each 'unique' data/code
218  *      area definition found as the REL files are read.  The
219  *      struct area contains the name of the area, a flag byte
220  *      which contains the area attributes (REL/CON/OVR/ABS),
221  *      an area subtype (not used in this assembler), and the
222  *      area base address and total size which will be filled
223  *      in at the end of the first pass through the REL files.
224  *      As A directives are read from the REL files a linked
225  *      list of unique area structures is created by placing a
226  *      link to the new area structure in the previous area structure.
227  */
228 struct  area
229 {
230         struct  area    *a_ap;  /* Area link */
231         struct  areax   *a_axp; /* Area extension link */
232         Addr_T  a_addr;         /* Beginning address of area */
233         Addr_T  a_size;         /* Total size of the area */
234         char    a_type;         /* Area subtype */
235         char    a_flag;         /* Flag byte */
236         char    a_id[NCPS];     /* Name */
237 };
238
239 /*
240  *      An areax structure is created for every A directive found
241  *      while reading the REL files.  The struct areax contains a
242  *      link to the 'unique' area structure referenced by the A
243  *      directive and to the head structure this area segment is
244  *      a part of.  The size of this area segment as read from the
245  *      A directive is placed in the areax structure.  The beginning
246  *      address of this segment will be filled in at the end of the
247  *      first pass through the REL files.  As A directives are read
248  *      from the REL files a linked list of areax structures is
249  *      created for each unique area.  The final areax linked
250  *      list has at its head the 'unique' area structure linked
251  *      to the linked areax structures (one areax structure for
252  *      each A directive for this area).
253  */
254 struct  areax
255 {
256         struct  areax   *a_axp; /* Area extension link */
257         struct  area    *a_bap; /* Base area link */
258         struct  head    *a_bhp; /* Base header link */
259         Addr_T  a_addr;         /* Beginning address of section */
260         Addr_T  a_size;         /* Size of the area in section */
261 };
262
263 /*
264  *      A sym structure is created for every unique symbol
265  *      referenced/defined while reading the REL files.  The
266  *      struct sym contains the symbol's name, a flag value
267  *      (not used in this linker), a symbol type denoting
268  *      referenced/defined, and an address which is loaded
269  *      with the relative address within the area in which
270  *      the symbol was defined.  The sym structure also
271  *      contains a link to the area where the symbol was defined.
272  *      The sym structures are linked into linked lists using
273  *      the symbol link element.
274  */
275 struct  sym
276 {
277         struct  sym     *s_sp;  /* Symbol link */
278         struct  areax   *s_axp; /* Symbol area link */
279         char    s_type;         /* Symbol subtype */
280         char    s_flag;         /* Flag byte */
281         Addr_T  s_addr;         /* Address */
282         char    *s_id;          /* Name: JLH change from [NCPS] */
283 };
284
285 /*
286  *      The structure lfile contains a pointer to a
287  *      file specification string, the file type, and
288  *      a link to the next lfile structure.
289  */
290 struct  lfile
291 {
292         struct  lfile   *f_flp; /* lfile link */
293         int     f_type;         /* File type */
294         char    *f_idp;         /* Pointer to file spec */
295 };
296
297 /*
298  *      The struct base contains a pointer to a
299  *      base definition string and a link to the next
300  *      base structure.
301  */
302 struct  base
303 {
304         struct  base  *b_base;  /* Base link */
305         char          *b_strp;  /* String pointer */
306 };
307
308 /*
309  *      The struct globl contains a pointer to a
310  *      global definition string and a link to the next
311  *      global structure.
312  */
313 struct  globl
314 {
315         struct  globl *g_globl; /* Global link */
316         char          *g_strp;  /* String pointer */
317 };
318
319 /*
320  *      A structure sdp is created for each 'unique' paged
321  *      area definition found as the REL files are read.
322  *      As P directives are read from the REL files a linked
323  *      list of unique sdp structures is created by placing a
324  *      link to the new sdp structure in the previous area structure.
325  */
326 struct  sdp
327 {
328         struct  area  *s_area;  /* Paged Area link */
329         struct  areax *s_areax; /* Paged Area Extension Link */
330         Addr_T  s_addr;         /* Page address offset */
331 };
332
333 /*
334  *      The structure rerr is loaded with the information
335  *      required to report an error during the linking
336  *      process.  The structure contains an index value
337  *      which selects the areax structure from the header
338  *      areax structure list, a mode value which selects
339  *      symbol or area relocation, the base address in the
340  *      area section, an area/symbol list index value, and
341  *      an area/symbol offset value.
342  */
343 struct  rerr
344 {
345         int     aindex;         /* Linking area */
346         int     mode;           /* Relocation mode */
347         Addr_T  rtbase;         /* Base address in section */
348         int     rindex;         /* Area/Symbol reloaction index */
349         Addr_T  rval;           /* Area/Symbol offset value */
350 };
351
352 /*
353  *      The structure lbpath is created for each library
354  *      path specification input by the -k option.  The
355  *      lbpath structures are linked into a list using
356  *      the next link element.
357  */
358 struct lbpath {
359         struct  lbpath  *next;
360         char            *path;
361 };
362
363 /*
364  *      The structure lbname is created for all combinations of the
365  *      library path specifications (input by the -k option) and the
366  *      library file specifications (input by the -l option) that
367  *      lead to an existing file.  The element path points to
368  *      the path string, element libfil points to the library
369  *      file string, and the element libspc is the concatenation
370  *      of the valid path and libfil strings.
371  *
372  *      The lbpath structures are linked into a list
373  *      using the next link element.
374  *
375  *      Each library file contains a list of object files
376  *      that are contained in the particular library. e.g.:
377  *
378  *              \iolib\termio
379  *              \inilib\termio
380  *
381  *      Only one specification per line is allowed.
382  */
383 struct lbname {
384         struct  lbname  *next;
385         char            *path;
386         char            *libfil;
387         char            *libspc;
388 };
389
390 /*
391  *      The function fndsym() searches through all combinations of the
392  *      library path specifications (input by the -k option) and the
393  *      library file specifications (input by the -l option) that
394  *      lead to an existing file for a symbol definition.
395  *
396  *      The structure lbfile is created for the first library
397  *      object file which contains the definition for the
398  *      specified undefined symbol.
399  *
400  *      The element libspc points to the library file path specification
401  *      and element relfil points to the object file specification string.
402  *      The element filspc is the complete path/file specification for
403  *      the library file to be imported into the linker.  The
404  *      file specicifation may be formed in one of two ways:
405  *
406  *      (1)     If the library file contained an absolute
407  *              path/file specification then this becomes filspc.
408  *              (i.e. C:\...)
409  *
410  *      (2)     If the library file contains a relative path/file
411  *              specification then the concatenation of the path
412  *              and this file specification becomes filspc.
413  *              (i.e. \...)
414  *
415  *      The lbpath structures are linked into a list
416  *      using the next link element.
417  */
418 struct lbfile {
419         struct  lbfile  *next;
420         char            *libspc;
421         char            *relfil;
422         char            *filspc;
423 };
424
425 /*
426  *      External Definitions for all Global Variables
427  */
428
429 extern  char    *_abs_;         /*      = { ".  .ABS." };
430                                  */
431 extern  int     lkerr;          /*      ASLink error flag
432                                  */
433 extern  char    *ip;            /*      pointer into the REL file
434                                  *      text line in ib[]
435                                  */
436 extern  char    ib[NINPUT];     /*      REL file text line
437                                  */
438 extern  char    *rp;            /*      pointer into the LST file
439                                  *      text line in rb[]
440                                  */
441 extern  char    rb[NINPUT];     /*      LST file text line being
442                                  *      address relocated
443                                  */
444 extern  char    ctype[];        /*      array of character types, one per
445                                  *      ASCII character
446                                  */
447
448 /*
449  *      Character Type Definitions
450  */
451 #define SPACE   0000
452 #define ETC     0000
453 #define LETTER  0001
454 #define DIGIT   0002
455 #define BINOP   0004
456 #define RAD2    0010
457 #define RAD8    0020
458 #define RAD10   0040
459 #define RAD16   0100
460 #define ILL     0200
461
462 #define DGT2    DIGIT|RAD16|RAD10|RAD8|RAD2
463 #define DGT8    DIGIT|RAD16|RAD10|RAD8
464 #define DGT10   DIGIT|RAD16|RAD10
465 #define LTR16   LETTER|RAD16
466
467 #if     CASE_SENSITIVE
468 #else
469 extern  char    ccase[];        /*      an array of characters which
470                                  *      perform the case translation function
471                                  */
472 #endif
473
474 extern  struct  lfile   *filep; /*      The pointers (lfile *) filep,
475                                  *      (lfile *) cfp, and (FILE *) sfp
476                                  *      are used in conjunction with
477                                  *      the routine getline() to read
478                                  *      asmlnk commands from
479                                  *      (1) the standard input or
480                                  *      (2) or a command file
481                                  *      and to read the REL files
482                                  *      sequentially as defined by the
483                                  *      asmlnk input commands.
484                                  *
485                                  *      The pointer *filep points to the
486                                  *      beginning of a linked list of
487                                  *      lfile structures.
488                                  */
489 extern  struct  lfile   *cfp;   /*      The pointer *cfp points to the
490                                  *      current lfile structure
491                                  */
492 extern  struct  lfile   *startp;/*      asmlnk startup file structure
493                                  */
494 extern  struct  lfile   *linkp; /*      pointer to first lfile structure
495                                  *      containing an input REL file
496                                  *      specification
497                                  */
498 extern  struct  lfile   *lfp;   /*      pointer to current lfile structure
499                                  *      being processed by parse()
500                                  */
501 extern  struct  head    *headp; /*      The pointer to the first
502                                  *      head structure of a linked list
503                                  */
504 extern  struct  head    *hp;    /*      Pointer to the current
505                                  *      head structure
506                                  */
507 extern  struct  area    *areap; /*      The pointer to the first
508                                  *      area structure of a linked list
509                                  */
510 extern  struct  area    *ap;    /*      Pointer to the current
511                                  *      area structure
512                                  */
513 extern  struct  areax   *axp;   /*      Pointer to the current
514                                  *      areax structure
515                                  */
516 extern  struct  sym *symhash[NHASH]; /* array of pointers to NHASH
517                                       * linked symbol lists
518                                       */
519 extern  struct  base    *basep; /*      The pointer to the first
520                                  *      base structure
521                                  */
522 extern  struct  base    *bsp;   /*      Pointer to the current
523                                  *      base structure
524                                  */
525 extern  struct  globl   *globlp;/*      The pointer to the first
526                                  *      globl structure
527                                  */
528 extern  struct  globl   *gsp;   /*      Pointer to the current
529                                  *      globl structure
530                                  */
531 extern  struct  sdp     sdp;    /*      Base Paged structure
532                                  */
533 extern  struct  rerr    rerr;   /*      Structure containing the
534                                  *      linker error information
535                                  */
536 extern  FILE    *ofp;           /*      Linker Output file handle
537                                  */
538 extern  FILE    *mfp;           /*      Map output file handle
539                                  */
540 extern  FILE    *jfp;           /*      NoICE output file handle
541                                  */
542 extern  FILE    *rfp;           /*      File handle for output
543                                  *      address relocated ASxxxx
544                                  *      listing file
545                                  */
546 extern  FILE    *sfp;           /*      The file handle sfp points to the
547                                  *      currently open file
548                                  */
549 extern  FILE    *tfp;           /*      File handle for input
550                                  *      ASxxxx listing file
551                                  */
552 extern  FILE    *dfp;           /*      File handle for debug info output
553                                  */
554 extern  int     dflag;          /*      Output debug information flag
555                                  */
556 extern  int     oflag;          /*      Output file type flag
557                                  */
558 extern  int     mflag;          /*      Map output flag
559                                  */
560 extern  int     jflag;          /*      NoICE output flag
561                                  */
562 extern  int     xflag;          /*      Map file radix type flag
563                                  */
564 extern  int     pflag;          /*      print linker command file flag
565                                  */
566 extern  int     uflag;          /*      Listing relocation flag
567                                  */
568 extern int      rflag;          /*      Extended linear address record flag.
569                                 */                               
570 extern  int     radix;          /*      current number conversion radix:
571                                  *      2 (binary), 8 (octal), 10 (decimal),
572                                  *      16 (hexadecimal)
573                                  */
574 extern  int     line;           /*      current line number
575                                  */
576 extern  int     page;           /*      current page number
577                                  */
578 extern  int     lop;            /*      current line number on page
579                                  */
580 extern  int     pass;           /*      linker pass number
581                                  */
582 extern  int     rtcnt;          /*      count of elements in the
583                                  *      rtval[] and rtflg[] arrays
584                                  */
585 extern  Addr_T  rtval[];        /*      data associated with relocation
586                                  */
587 extern  int     rtflg[];        /*      indicates if rtval[] value is
588                                  *      to be sent to the output file.
589                                  *      (always set in this linker)
590                                  */
591 extern  int     hilo;           /*      REL file byte ordering
592                                  */
593 extern  int     gline;          /*      LST file relocation active
594                                  *      for current line
595                                  */
596 extern  int     gcntr;          /*      LST file relocation active
597                                  *      counter
598                                  */
599 extern  struct lbpath *lbphead; /*      pointer to the first
600                                  *      library path structure
601                                  */
602 extern  struct lbname *lbnhead; /*      pointer to the first
603                                  *      library name structure
604                                  */
605 extern  struct lbfile *lbfhead; /*      pointer to the first
606                                  *      library file structure
607                                  */
608 extern  Addr_T iram_size;       /*      internal ram size
609                                  */
610
611
612 /* C Library function definitions */
613 /* for reference only
614 extern  VOID            exit();
615 extern  int             fclose();
616 extern  char *          fgets();
617 extern  FILE *          fopen();
618 extern  int             fprintf();
619 extern  VOID            free();
620 extern  VOID *          malloc();
621 extern  char            putc();
622 extern  char *          strcpy();
623 extern  int             strlen();
624 extern  char *          strncpy();
625 */
626
627 /* Program function definitions */
628
629 /* lkmain.c */
630 extern  FILE *          afile();
631 extern  VOID            bassav();
632 extern  VOID            gblsav();
633 extern  VOID            iramsav();
634 extern  VOID            iramcheck();
635 extern  VOID            link_main();
636 extern  VOID            lkexit();
637 extern  int             main();
638 extern  VOID            map();
639 extern  int             parse();
640 extern  VOID            setbas();
641 extern  VOID            setgbl();
642 extern  VOID            usage();
643 extern  VOID            copyfile();
644
645 /* lklex.c */
646 extern  char            endline();
647 extern  char            get();
648 extern  VOID            getfid();
649 extern  VOID            getid();
650 extern  VOID            getSid();
651 extern  int             getline();
652 extern  int             getmap();
653 extern  char            getnb();
654 extern  int             more();
655 extern  VOID            skip();
656 extern  VOID            unget();
657 extern  VOID            chop_crlf();
658
659 /* lkarea.c */
660 extern  VOID            lkparea();
661 extern  VOID            lnkarea();
662 extern  VOID            lnksect();
663 extern  VOID            newarea();
664
665 /* lkhead.c */
666 extern  VOID            module();
667 extern  VOID            newhead();
668
669 /* lksym.c */
670 extern  int             hash();
671 extern  struct  sym *   lkpsym();
672 extern  VOID *          new();
673 extern  struct  sym *   newsym();
674 extern  VOID            symdef();
675 extern  int             symeq();
676 extern  VOID            syminit();
677 extern  VOID            symmod();
678 extern  Addr_T          symval();
679
680 /* lkeval.c */
681 extern  int             digit();
682 extern  Addr_T          eval();
683 extern  Addr_T          expr();
684 extern  int             oprio();
685 extern  Addr_T          term();
686
687 /* lklist.c */
688 extern  int             dgt();
689 extern  VOID            lkulist();
690 extern  VOID            lkalist();
691 extern  VOID            lkglist();
692 extern  VOID            lstarea();
693 extern  VOID            newpag();
694 extern  VOID            slew();
695
696 /* lkrloc.c */
697 extern  Addr_T          adb_b();
698 extern  Addr_T          adb_hi();
699 extern  Addr_T          adb_lo();
700 extern  Addr_T          adb_24_hi(Addr_T v, int i);
701 extern  Addr_T          adb_24_mid(Addr_T v, int i);
702 extern  Addr_T          adb_24_lo(Addr_T v, int i);
703 extern  Addr_T          adw_w();
704 extern  Addr_T          adw_24(Addr_T, int);
705 extern  Addr_T          adw_hi();
706 extern  Addr_T          adw_lo();
707 extern  Addr_T          evword();
708 extern  VOID            rele();
709 extern  VOID            reloc();
710 extern  VOID            relt();
711 extern  VOID            relr();
712 extern  VOID            relp();
713 extern  VOID            relerr();
714 extern  char *          errmsg[];
715 extern  VOID            errdmp();
716 extern  VOID            relerp();
717 extern  VOID            erpdmp();
718 extern  VOID            prntval();
719 extern  int             lastExtendedAddress;
720
721 /* lklibr.c */
722 extern  VOID            addfile();
723 extern  VOID            addlib();
724 extern  VOID            addpath();
725 extern  int             fndsym();
726 extern  VOID            library();
727 extern  VOID            loadfile();
728 extern  VOID            search();
729
730 /* lks19.c */
731 extern  VOID            s19();
732
733 /* lkihx.c */
734 extern  VOID            ihx();
735 extern  VOID            ihxEntendedLinearAddress(Addr_T);
736 /* lkstore.c */
737 extern char             *StoreString( char *str );
738
739 /* lknoice.c */
740 extern void             DefineNoICE( char *name, Addr_T value, int page );
741
742 /* SD added this to change
743         strcmpi --> strcmp (strcmpi NOT ANSI) */
744 #define strcmpi strcmp
745