14H FUNCTION
Use:
To sequentially read an FCB file.
Call registers:
AH = 14H
DS:DX = Pointer to an FCB already opened.
Return registers:
AL = 0 if there were no errors, otherwise the corresponding error code will be returned: 1 error at the end of the file, 2 error on the FCB structure and 3 partial reading error.
What this function does is that it reads the next block of information from the address given by DS:DX,
What this function does is that it reads the next block of information from the address given by DS:DX, and dates this register.
15H FUNCTION
Use:
To sequentially write and FCB file.
Call registers:
AH = 15H
DS:DX = Pointer to an FCB already opened.
Return registers:
AL = 00H if there were no errors, otherwise it will contain the error code: 1 full disk or read-only file, 2 error on the formation or on the specification of the FCB.
The 15H function dates the FCB after writing the register to the present
block.
16H FUNCTION
Use:
To create an FCB file.
Call registers:
AH = 16H
DS:DX = Pointer to an already opened FCB.
Return registers:
AL = 00H if there were no errors, otherwise it will contain the 0FFH value.
It is based on the information which comes on an FCB to create a file on a disk.
21H FUNCTION
Use:
To read in an random manner an FCB file.
Call registers:
AH = 21H
DS:DX = Pointer to and opened FCB.
Return registers:
A = 00H if there was no error, otherwise AH will contain the code of the error: 1 if it is the end of file, 2 if there is an FCB specification error and 3 if a partial register was read or the file pointer is at the end of the same.
This function reads the specified register by the fields of the actual block and register of an opened FCB and places the information on the DTA, Disk Transfer Area.
22H FUNCTION
Use:
To write in an random manner an FCB file.
Call registers:
AH = 22H
DS:DX = Pointer to an opened FCB.
Return registers:
AL = 00H if there was no error, otherwise it will contain the error code: 1 if the disk is full or the file is an only read and 2 if there is an error on the
It writes the register specified by the fields of the actual block and register of an opened FCB. It writes this information from the content of the DTA.
No comments:
Post a Comment