Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Interrupts & Ports - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

        Write to file with handle (INT 21h, 40h)

        Entry:
           AH = 40h
           BX = file handle
           CX = number of bytes to write
           DS:DX = pointer to buffer
        Return:
           CF = 1 if error
                  AX = Error Code
           CF = 0 successful
                  AX = number of bytes written

        Note: If CX is zero, no data is written, and the file is
              truncated or extended to the current position

See Also: INT 21h, 3Eh Error codes

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson