Card Services Argument Binding

Parameters are passed in registers following the recommended binding in the PCMCIA Standards manual for 0:32 protected mode clients.

Register Description
[AL] Function
[DX] Handle
[ESI] Pointer (32 bit offset)
[CX] ArgLength
[EBX] ArgPointer (32 bit offset)
[AX] Status
[CF] Reset to zero when request was successful, set to one when request has failed.

All calls and returns are near.

All entry registers are preserved unless the same register is used for a return value.

The following table gives the arguments for callback handlers.

Register Description
[AL] Function
[CX] Socket
[DX] Info
[DI] First word of RegisterClient argument packet ClientData field
[ESI] Third and fourth word of RegisterClient argument packet ClientData field
[EBP] MTD request
[EBX] Buffer
[BX] Misc. (when no buffer is specified)
[AX] Status on return to Card Services
[CF] Returned reset to zero when the callback completed successfully, set to one if Status is not SUCCESS.