AH = 80h: Return File Location and Lock Card Port
This function searches the root directory of the plug-in card in drive A for the specified file. If the file is found, the file's location is returned and the card port is locked.
This function is intended to be used by an XIP loader program to locate an XIP program on a plug-in ROM card. If successful, the port is "locked," which means that a warm start will result if the card is removed prior to unlocking the port. Thus, the program is assured that the logical pages containing the file are available for mapping until the program explicitly unmaps the pages and unlocks the port.
- Input: AH = 80h
ES:BX = Pointer to an 11-byte buffer containing the file name in the same format as used in a DOS disk directory. That is, the file name left justified and blank filled in bytes 0 through 7 and the extension left justified and blank filled in bytes 8 through 10.
- Output: AH = Completion Status
00h = Success (No Error)
A2h = Error - File not found
BX = logical page which contains the beginning of the file
CX = offset from beginning of logical page to beginning of file
DX = port number of card that contains the file
- Error conditions: As given in AH
- Registers modified: AH, BX, CX, DX