INT 21 - DOS 2+ - WRITE TO FILE WITH HANDLE                  

Input

DOS1 N DOS2 Y

DOS3

Y DOS5 Y

Output

AX

40h   Bytes Written / Error Code AX

BX

File Handle     BX

CX

 Number of Bytes to Write     CX

 

        DX

DS:DX

Address of Buffer Set if Error CF
Note:   If CX is zero, no data is written, and the file is truncated or
        extended to the current position

See Also 15h 22h 28h 42h 59h Error Codes


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .