CodeSel Make a selector execute/read type.

Inputs: AX = 0ff05h

BX = Selector

CL= Default operation size. (0=16-bit,1=32-bit)

Outputs: Carry set on error.

Errors: If an invalid selector is passed in BX, this function returns with carry set.

Notes: This functions allows a selector to be converted to a type suitable for execution.

cwcInfo Validate and get expanded length of CWC'ed file.

Inputs: AX = 0ff2bh

BX = file handle

Outputs: Carry set if not a CWC'ed file else,

ECX = expanded data size.

Errors: If the file handle is for a file which has not been compressed by CWC, the function returns with carry set.

Notes: The file pointer is not altered by this function.

cwcLoad Load/expand a CWC'ed data file into memory.

Inputs: AX = 0fffbh

BX = Source file handle

ES:EDI = Destination memory

Outputs: Carry set on error and EAX = error code else,

ECX = expanded data length

Errors: Error code 1 = Error during file access.

Error code 2 = Bad data (invalid compression information)

Error code 3 = Not a CWC'ed file.

Notes: The source file's file pointer does not have to be at zero. A single file might be several CWC'ed files lumped together. The proper one will be loaded as long as the file pointer is moved to the right place before calling this function.

If error codes 1 or 2 are reported, then the file pointer will be wherever it was last moved to by this function. For error code 3, the file pointer will be back at its original position on entry to this function. If no error occurs, then the file pointer will be moved to whatever comes after the compressed data.

Next Page

Previous Page

Go to Table of Contents