home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / applications / sattrack / ifflib20.lzh / iff.i < prev    next >
Text File  |  1990-10-09  |  2KB  |  79 lines

  1. *  Assembler include file for the iff library 
  2. *  by Christian A. Weber, Zürich/Switzerland            V19.1  09-Oct-90
  3.  
  4.         XREF    _IFFBase
  5.  
  6. IFFVERSION:    EQU    19    ; Use this for the OpenLibrary() call
  7.  
  8. IFF:          MACRO
  9.         movea.l    _IFFBase,a6
  10.         jsr    \1(a6)
  11.           ENDM
  12.  
  13.  
  14. *************** LIBRARY OFFSETS ******************************************
  15.  
  16. OpenIFF:    EQU    -30    ; (filename)            (A0)
  17. CloseIFF:    EQU    -36    ; (ifffile)            (A1)
  18. FindChunk:    EQU    -42    ; (ifffile,chunkname)        (A1,D0)
  19. GetBMHD:    EQU    -48    ; (ifffile)            (A1)
  20. GetColorTab:    EQU    -54    ; (ifffile,colortable)        (A1/A0)
  21. DecodePic:    EQU    -60    ; (ifffile,bitmap)        (A1/A0)
  22. SaveBitMap:    EQU    -66    ; (name,bmap,ctab,crmd)        (A0-A2,D0)
  23. SaveClip:    EQU    -72    ; (name,bmap,ctab,crmd,x,y,w,h)    (A0-A2,D0-D4)
  24. IFFError:    EQU    -78    ; ()                ()
  25. GetViewModes:    EQU    -84    ; (ifffile)            (A1)
  26. NewOpenIFF:    EQU    -90    ; (filename,memtype)        (A0,D0)
  27. ModifyFrame:    EQU    -96    ; (modifyform,bitmap)        (A1/A0)
  28.  
  29.  
  30. *************** ERROR CODES **********************************************
  31.  
  32. IFF_BADTASK:        EQU    -1    ; IffError() called by wrong task
  33.  
  34. IFF_CANTOPENFILE:    EQU    16    ; File not found
  35. IFF_READERROR:        EQU    17    ; Error reading file
  36. IFF_NOMEM:        EQU    18    ; Not enough memory
  37. IFF_NOTIFF:        EQU    19    ; File is not an IFF file
  38. IFF_WRITEERROR:        EQU    20    ; Error writing file
  39.  
  40. IFF_NOILBM:        EQU    24    ; IFF file is not of type ILBM
  41. IFF_NOBMHD:        EQU    25    ; BMHD chunk not found
  42. IFF_NOBODY:        EQU    26    ; BODY chunk not found
  43. IFF_TOOMANYPLANES:    EQU    27    ; Obsolete since V18.6
  44. IFF_UNKNOWNCOMPRESSION:    EQU    28    ; Unknown compression type
  45.  
  46. IFF_NOANHD:        EQU    29    ; ANHD chunk not found (since V18.1)
  47. IFF_NODLTA:        EQU    30    ; DLTA chunk not found (since V18.1)
  48.  
  49.  
  50. bmh_Width:        EQU    0    ; struct BitMapHeader
  51. bmh_Height:        EQU    $2
  52. bmh_XPos:        EQU    $4
  53. bmh_YPos:        EQU    $6
  54. bmh_nPlanes:        EQU    $8
  55. bmh_Masking:        EQU    $9
  56. bmh_Compression:    EQU    $A
  57. bmh_Pad1:        EQU    $B
  58. bmh_TranspCol:        EQU    $C
  59. bmh_XAspect:        EQU    $E
  60. bmh_YAspect:        EQU    $F
  61. bmh_PageWidth:        EQU    $10
  62. bmh_PageHeight:        EQU    $12
  63. bmh_SIZEOF:        EQU    $14
  64.  
  65. anh_Operation:        EQU    0    ; struct AnimHeader
  66. anh_Mask:        EQU    $1
  67. anh_W:            EQU    $2
  68. anh_H:            EQU    $4
  69. anh_X:            EQU    $6
  70. anh_Y:            EQU    $8
  71. anh_AbsTime:        EQU    $A
  72. anh_RelTime:        EQU    $E
  73. anh_Interleave:        EQU    $12
  74. anh_pad0:        EQU    $13
  75. anh_Bits:        EQU    $14
  76. anh_pad:        EQU    $18
  77. anh_SIZEOF:        EQU    $28
  78.  
  79.