Table des matières
INT 0x21 - 0x3f - Read From File or Device Using Handle
Request/Call:
Return:
Notes & Comments
INT 0x21 - 0x3f - Read From File or Device Using Handle
Request/Call:
reg
value
descr
AH
0x3f
BX
file handle
CX
number of bytes to read
DS:DX
pointer to read buffer
Return:
CF is cleared : success
reg
descr
AX
number of bytes readed
CF is set: error
reg
descr
AX
error code (see
DOS Error Code
)
Notes & Comments
read specified number of bytes from file into buffer DS:DX
when AX is not equal to CX then a partial read occurred due to end of file
if AX is zero, no data was read, and
EOF
occurred before read
Back