Intrinsic-31 Read

Top  Previous  Next

31: Read(drive, sector, buffer, size);

 

This intrinsic reads data from disk to memory. "Drive" is 0=A:, 1=B: 2=C:, and so forth. "Sector" is the starting logical sector number. Logical sectors start at 0 (the boot sector). "Buffer" is the address of the data to write. "Size" is the number of sectors to write. There are 512 bytes per logical sector (even on a hard drive in this situation).