[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Int 26  - DOS 1+ - Absolute Disk Write (except Partitions > 32m)           [D]

   AL = drive number (00h = A:, 01h = B:, etc)
   CX = number of sectors to write
   DX = starting logical sector number (0000h - highest sector on drive)
   DS:BX -> data to write

Return: CF clear if successful
   CF set on error
       AH = status
        80h device failed to respond (timeout)
        40h seek operation failed
        20h controller failed
        10h data error (bad CRC)
        08h DMA failure
        04h requested sector not found
        03h write-protected disk (INT 26 only)
        02h bad address mark
        01h bad command
       AL = error code (same as passed to INT 24 in DI)
       AX = 0207h if more than 64K sectors on drive
   may destroy all other registers except segment registers

Notes: original flags are left on stack, and must be popped by caller
   this call bypasses the DOS filesystem, though DOS 5+ invalidates any
     disk buffers referencing sectors which are written with this call
BUGS:  DOS 3.1 through 3.3 set the word at ES:[BP+1Eh] to FFFFh if AL is an
     invalid drive number
   DR-DOS 3.41 will return with a jump instead of RETF, leaving the
     wrong number of bytes on the stack; use the huge-partition version
     (INT 26/CX=FFFFh) for all partition sizes under DR-DOS 3.41

See Also: INT 13/AH=03h,INT 25,INT 26/CX=FFFFh

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson