en:docs:dos:api:int21:21

Note: This API call is for DOS and Win16 personality only. Use Family API for portability.

2018/09/07 05:04 · prokushev · 0 Comments

Int 21H, AH=21H

Version

1 and higher

Brief

READ RANDOM RECORD FROM FCB FILE

Family API

Input

      AH = 21h
      DS:DX -> opened FCB (see #01345)

Return

AL = status

          00h successful
          01h end of file, no data read
          02h segment wrap in DTA, no data read
          03h end of file, partial record read
      Disk Tranfer Area filled with record read from file

Notes

the record is read from the current file position as specified by the random record and record size fields of the FCB

the file position is not updated after reading the record

if a partial record is read, it is zero-padded to the full size

not supported by MS Windows 3.0 DOSX.EXE DOS extender

See also

AH=14h,AH=22h,AH=27h,AH=3Fh

Note

2018/09/04 17:23 · prokushev · 0 Comments