home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / os-include / dos / doshunks.i < prev    next >
Text File  |  1993-10-15  |  3KB  |  95 lines

  1.     IFND    DOS_DOSHUNKS_I
  2. DOS_DOSHUNKS_I    SET    1
  3. **
  4. **    $VER: doshunks.i 36.13 (12.8.93)
  5. **    Includes Release 40.15
  6. **
  7. **    Hunk definitions for object and load modules.
  8. **
  9. **    (C) Copyright 1989-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     INCLUDE    "exec/types.i"
  14.  
  15. * hunk types
  16.  
  17. HUNK_UNIT    EQU    999
  18. HUNK_NAME    EQU    1000
  19. HUNK_CODE    EQU    1001
  20. HUNK_DATA    EQU    1002
  21. HUNK_BSS    EQU    1003
  22. HUNK_RELOC32    EQU    1004
  23. HUNK_ABSRELOC32    EQU    HUNK_RELOC32
  24. HUNK_RELOC16    EQU    1005
  25. HUNK_RELRELOC16    EQU    HUNK_RELOC16
  26. HUNK_RELOC8    EQU    1006
  27. HUNK_RELRELOC8    EQU    HUNK_RELOC8
  28. HUNK_EXT    EQU    1007
  29. HUNK_SYMBOL    EQU    1008
  30. HUNK_DEBUG    EQU    1009
  31. HUNK_END    EQU    1010
  32. HUNK_HEADER    EQU    1011
  33.  
  34. HUNK_OVERLAY    EQU    1013
  35. HUNK_BREAK    EQU    1014
  36.  
  37. HUNK_DREL32    EQU    1015
  38. HUNK_DREL16    EQU    1016
  39. HUNK_DREL8    EQU    1017
  40.  
  41. HUNK_LIB    EQU    1018
  42. HUNK_INDEX    EQU    1019
  43.  
  44. * Note: V37 LoadSeg uses 1015 (HUNK_DREL32) by mistake.  This will continue
  45. * to be supported in future versions, since HUNK_DREL32 is illegal in load files
  46. * anyways.  Future versions will support both 1015 and 1020, though anything
  47. * that should be usable under V37 should use 1015.
  48. HUNK_RELOC32SHORT EQU    1020
  49.  
  50. * see ext_xxx below.  New for V39 (note that LoadSeg only handles RELRELOC32).
  51. HUNK_RELRELOC32    EQU    1021
  52. HUNK_ABSRELOC16    EQU    1022
  53.  
  54. *
  55. * Any hunks that have the HUNKB_ADVISORY bit set will be ignored if they
  56. * aren't understood.  When ignored, they're treated like HUNK_DEBUG hunks.
  57. * NOTE: this handling of HUNKB_ADVISORY started as of V39 dos.library!    If
  58. * lading such executables is attempted under <V39 dos, it will fail with a
  59. * bad hunk type.
  60. *
  61.     BITDEF    HUNK,ADVISORY,29
  62.     BITDEF    HUNK,CHIP,30
  63.     BITDEF    HUNK,FAST,31
  64.  
  65. * hunk_ext sub-types
  66.  
  67. EXT_SYMB    EQU    0    ; symbol table
  68. EXT_DEF        EQU    1    ; relocatable definition
  69. EXT_ABS        EQU    2    ; Absolute definition
  70. EXT_RES        EQU    3    ; no longer supported
  71. EXT_COMMONDEF    EQU    4    ; Common definition (value is size in bytes)
  72. EXT_REF32    EQU    129    ; 32 bit absolute reference to symbol
  73. EXT_ABSREF32    EQU    EXT_REF32
  74. EXT_COMMON    EQU    130    ; 32 bit absolute reference to COMMON block
  75. EXT_ABSCOMMON    EQU    EXT_COMMON
  76. EXT_REF16    EQU    131    ; 16 bit PC-relative reference to symbol
  77. EXT_RELREF16    EQU    EXT_REF16
  78. EXT_REF8    EQU    132    ;  8 bit PC-relative reference to symbol
  79. EXT_RELREF8    EQU    EXT_REF8
  80. EXT_DEXT32    EQU    133    ; 32 bit data relative reference
  81. EXT_DEXT16    EQU    134    ; 16 bit data relative reference
  82. EXT_DEXT8    EQU    135    ;  8 bit data relative reference
  83.  
  84. * These are to support some of the '020 and up modes that are rarely used
  85. EXT_RELREF32    EQU    136    ; 32 bit PC-relative reference to symbol
  86. EXT_RELCOMMON    EQU    137    ; 32 bit PC-relative reference to COMMON block
  87.  
  88. * for completeness... All 680x0's support this
  89. EXT_ABSREF16    EQU    138    ; 16 bit absolute reference to symbol
  90.  
  91. * this only exists on '020's and above, in the (d8,An,Xn) address mode
  92. EXT_ABSREF8    EQU    139    ; 8 bit absolute reference to symbol
  93.  
  94.     ENDC    ; DOS_DOSHUNKS_I
  95.