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

  Unlike function 21H, function 27H reads one or more records, starting at a
  random file location. DS:DX points to the FCB for the file to be read and
  the random-record number is then taken from this FCB. CX contains the
  number of records desired, which should be more than 0.

  The return codes are the same as they are for function 21H: AL = 00H means
  the read was successful; AL = 01H indicates end-of-file, with no more data
  (if the records were read, the last record is complete); AL = 02H
  indicates that the DTA segment was too small; and AL = 03H indicates the
  end-of-file, where the last record read is incomplete and padded with
  zeros.

  No matter what the result, CX is set to the number of records read,
  including any partial record, and the random-record field in the FCB is
  set to the next sequential record.

  Contrast this with function 21H, which reads only one record.

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