Outils pour utilisateurs

Outils du site


back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_3f

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_3f [2023/01/10 11:55] – supprimée - modification externe (Unknown date) 127.0.0.1back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_3f [2023/01/16 17:54] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +====== INT 0x21 - 0x3f - Read From File or Device Using Handle ======
 +
 +===== Request/Call: =====
 +
 +{{tablelayout?rowsHeaderSource=Auto&colwidth=""}}
 +^  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 **
 +
 +{{tablelayout?rowsHeaderSource=Auto&colwidth=""}}
 +^  reg  ^   descr  ^
 +|  AX   | number of bytes readed |
 +
 +**CF is set: error **
 +
 +{{tablelayout?rowsHeaderSource=Auto&colwidth=""}}
 +^  reg  ^   descr  ^
 +|  AX   | error code (see [[back2root:ibm-pc-ms-dos:hardware:informations:dos_error_code|DOS Error Code]])  |
 +
 +===== Notes & Comments =====
 +
 +<WRAP round box>
 +  * 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
 +</WRAP>
 + 
 +[[start|Back]]