home *** CD-ROM | disk | FTP | other *** search
- ; Import the variable giving the base address of the code
-
- IMPORT Expand
-
- ; Import the address of the code to which to branch
- ; eg. BL Expand_Code
-
- IMPORT Expand_Code ; entry point for code
-
- ; Define names for offsets into the header.
-
- Expand_SampleType * 4 ; filetype for compressed samples
- Expand_SequenceType * 8 ; filetype for sequences
- Expand_SrcBufferPtr * 12 ; source buffer pointer
- Expand_SrcLength * 16 ; source buffer length
- Expand_DestBufferPtr * 20 ; destination buffer pointer
- Expand_DestLength * 24 ; destination buffer length
- Expand_BytesWritten * 28 ; number of bytes written to buffer
- Expand_ReasonCode * 32 ; reason code word
- Expand_OutputFlags * 36 ; output flags
- Expand_SampleLength * 40 ; total sample length
- Expand_Counter * 44 ; operation counter
- Expand_SamplePeriod * 48 ; sample period
- Expand_FileFormat * 52 ; file format of sample
-
- ; Reason codes
-
- ALL_DONE * 0 ; Decompression complete
- SRC_EMPTY * 1 ; Src buffer request
- DEST_FULL * 2 ; Dest buffer output
- INIT_DONE * 3 ; Initialisation complete
- SRC_ERROR * 5 ; ERROR = bad src buffer
- DEST_ERROR * 6 ; ERROR = bad dest buffer
- UNKNOWN_FORMAT * 8 ; Unrecognised sample format
-
- ; Output flags for this version
-
- OUTPUT_LINEAR * (1<<0)
- OUTPUT_ENHANCE * (1<<1)
- OUTPUT_16BIT * (1<<2)
- USING_16BIT * (1<<28)
- USING_ENHANCE * (1<<29)
- FILE_IS_LINEAR * (1<<30)
- FILE_IS_16BIT * (1<<31)
-
- END
-