reg | value | descr |
---|---|---|
AH | 0x40 | |
BX | File Handle | |
CX | number of bytes to write, a zero value truncates/extends the file to the current file position | |
DS:DX | pointer to data buffer to write |
CF cleared : success
reg | descr |
---|---|
AX | number of written bytes |
CF Set: error
reg | descr |
---|---|
AX | error code (see (see DOS Error Code)) |