types.i 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. IFND EXEC_TYPES_I
  2. EXEC_TYPES_I SET 1
  3. **
  4. ** $Filename: exec/types.i $
  5. ** $Release: 1.3 $
  6. **
  7. **
  8. **
  9. ** (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. ** All Rights Reserved
  11. **
  12. EXTERN_LIB MACRO
  13. XREF _LVO\1
  14. ENDM
  15. STRUCTURE MACRO
  16. \1 EQU 0 * for assembler's sake
  17. SOFFSET SET \2
  18. ENDM
  19. BOOL MACRO
  20. \1 EQU SOFFSET
  21. SOFFSET SET SOFFSET+2
  22. ENDM
  23. BYTE MACRO
  24. \1 EQU SOFFSET
  25. SOFFSET SET SOFFSET+1
  26. ENDM
  27. UBYTE MACRO
  28. \1 EQU SOFFSET
  29. SOFFSET SET SOFFSET+1
  30. ENDM
  31. WORD MACRO
  32. \1 EQU SOFFSET
  33. SOFFSET SET SOFFSET+2
  34. ENDM
  35. UWORD MACRO
  36. \1 EQU SOFFSET
  37. SOFFSET SET SOFFSET+2
  38. ENDM
  39. SHORT MACRO
  40. \1 EQU SOFFSET
  41. SOFFSET SET SOFFSET+2
  42. ENDM
  43. USHORT MACRO
  44. \1 EQU SOFFSET
  45. SOFFSET SET SOFFSET+2
  46. ENDM
  47. LONG MACRO
  48. \1 EQU SOFFSET
  49. SOFFSET SET SOFFSET+4
  50. ENDM
  51. ULONG MACRO
  52. \1 EQU SOFFSET
  53. SOFFSET SET SOFFSET+4
  54. ENDM
  55. FLOAT MACRO
  56. \1 EQU SOFFSET
  57. SOFFSET SET SOFFSET+4
  58. ENDM
  59. APTR MACRO
  60. \1 EQU SOFFSET
  61. SOFFSET SET SOFFSET+4
  62. ENDM
  63. CPTR MACRO
  64. \1 EQU SOFFSET
  65. SOFFSET SET SOFFSET+4
  66. ENDM
  67. RPTR MACRO
  68. \1 EQU SOFFSET
  69. SOFFSET SET SOFFSET+2
  70. ENDM
  71. STRUCT MACRO
  72. \1 EQU SOFFSET
  73. SOFFSET SET SOFFSET+\2
  74. ENDM
  75. LABEL MACRO
  76. \1 EQU SOFFSET
  77. ENDM
  78. *------ bit definition macro ------------------------------------
  79. *
  80. * Given:
  81. *
  82. * BITDEF MEM,CLEAR,16
  83. *
  84. * Yields:
  85. *
  86. * MEMB_CLEAR EQU 16
  87. * MEMF_CLEAR EQU (1.SL.MEMB_CLEAR)
  88. *
  89. BITDEF MACRO * prefix,&name,&bitnum
  90. BITDEF0 \1,\2,B_,\3
  91. \@BITDEF SET 1<<\3
  92. BITDEF0 \1,\2,F_,\@BITDEF
  93. ENDM
  94. BITDEF0 MACRO * prefix,&name,&type,&value
  95. \1\3\2 EQU \4
  96. ENDM
  97. LIBRARY_VERSION EQU 34
  98. ENDC ; EXEC_TYPES_I