home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsc / computils / !CompUtils / Resources / Expand / asm / h / Universal
Encoding:
Text File  |  1995-07-31  |  1.5 KB  |  47 lines

  1. ; Import the variable giving the base address of the code
  2.  
  3.     IMPORT    Expand
  4.  
  5. ; Import the address of the code to which to branch
  6. ; eg. BL Expand_Code
  7.  
  8.     IMPORT    Expand_Code             ; entry point for code
  9.  
  10. ; Define names for offsets into the header.
  11.  
  12. Expand_SampleType       *     4   ; filetype for compressed samples
  13. Expand_SequenceType    *     8   ; filetype for sequences
  14. Expand_SrcBufferPtr     *    12   ; source buffer pointer
  15. Expand_SrcLength        *    16   ; source buffer length
  16. Expand_DestBufferPtr    *    20   ; destination buffer pointer
  17. Expand_DestLength       *    24   ; destination buffer length
  18. Expand_BytesWritten     *    28   ; number of bytes written to buffer
  19. Expand_ReasonCode       *    32   ; reason code word
  20. Expand_OutputFlags      *    36   ; output flags
  21. Expand_SampleLength     *    40   ; total sample length
  22. Expand_Counter          *    44   ; operation counter
  23. Expand_SamplePeriod     *    48   ; sample period
  24. Expand_FileFormat       *    52   ; file format of sample
  25.  
  26. ; Reason codes
  27.  
  28. ALL_DONE        *    0   ; Decompression complete
  29. SRC_EMPTY       *    1   ; Src buffer request
  30. DEST_FULL       *    2   ; Dest buffer output
  31. INIT_DONE       *    3   ; Initialisation complete
  32. SRC_ERROR      *    5   ; ERROR = bad src buffer
  33. DEST_ERROR      *    6   ; ERROR = bad dest buffer
  34. UNKNOWN_FORMAT    *    8   ; Unrecognised sample format
  35.  
  36. ; Output flags for this version
  37.  
  38. OUTPUT_LINEAR    *    (1<<0)
  39. OUTPUT_ENHANCE    *    (1<<1)
  40. OUTPUT_16BIT    *    (1<<2)
  41. USING_16BIT    *    (1<<28)
  42. USING_ENHANCE   *    (1<<29)
  43. FILE_IS_LINEAR  *    (1<<30)
  44. FILE_IS_16BIT    *    (1<<31)
  45.  
  46.     END
  47.