home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / utils / asmutl / spasm201.lbr / SLINK-F.DZC / SLINK-F.DOC
Text File  |  1988-09-02  |  3KB  |  75 lines

  1. Copyright 1986,1987 by Harris Landsberg               For reference use only
  2.  
  3. SLINK OBJECT FORMAT:                                            Version 2.00
  4.  
  5.  
  6. Pre-fix bit:
  7.  
  8.    0 = absolute c_field only
  9.    1 = 5 bit control + fields
  10.  
  11. Control field:
  12.  
  13. Binary  Hex  Dec  Description                   Fields
  14. ------  ---  ---  -----------                   ------
  15.  00000   00    0  Module Name                   a_field
  16.  00001   01    1  Import Module                 a_field
  17.  00010   02    2  Location Label                a_field
  18.  00011   03    3  Library Request               a_field
  19.  00100   04    4  Label Load (8)                a_field
  20.  00101   05    5  Label Load (16)               a_field
  21.  00110   06    6  Define Storage                b_field
  22.  00111   07    7  Relative to base              b_field
  23.  01000   08    8  word(16+16)                   b_field,d_field,b_field
  24.  01001   09    9  byte(Label+8)                 a_field,d_field,c_field
  25.  01010   0A   10  byte(8+Label)                 c_field,d_field,a_field
  26.  01011   0B   11  byte(Label+Label)             a_field,d_field,a_field
  27.  01100   0C   12  Module End                    none (byte boundry)
  28.  01101   0D   13  word(Label+16)                a_field,d_field,b_field
  29.  01110   0E   14  word(16+Label)                b_field,d_field,a_field
  30.  01111   0F   15  byte(Label+Label)             a_field,d_field,a_field
  31.  10000   10   16  Equate Label                  a_field,b_field
  32.  10001   11   17  Variable Label                a_field,b_field
  33.  10010   12   18  Link Conditional              a_field
  34.  10011   13   19  End Conditional               none
  35.  10100   14   20
  36.  10101   15   21
  37.  10110   16   22
  38.  10111   17   23
  39.  11000   18   24
  40.  11001   19   25
  41.  11010   1A   26
  42.  11011   1B   27
  43.  11100   1C   28  End of File                   none (byte boundry)
  44.  11101   1D   29
  45.  11110   1E   30
  46.  11111   1F   31
  47.  
  48.  
  49. Optional fields:
  50.  
  51.    a_field = 5 bit length + 1-31 (7 bit characters)
  52.    b_field = 2 bit relocation type + 16 bit (low/high)
  53.    c_field = 8 bit byte absolute
  54.    d_field = 3 bit operation (0=+,1=-,2=*,3=/)
  55.  
  56.    Relocation type:
  57.  
  58.         00 = absolute word
  59.         01 = counter relative
  60.         10 = module relative
  61.         11 = variable relative
  62.  
  63.         Unused control fields are reserved for future expansion
  64.                        and overlay support
  65.  
  66.  
  67. For further information contact:
  68.                         HARRIS LANDSBERG
  69.                       1350 East 5th Street
  70.                            Suite 1-J
  71.                     Brooklyn, New York 11230
  72.                         (718) 951-7075
  73. t
  74.                            Suite 1-J
  75.