Function 6 - read the file from ramdisk.
Parameters:
- eax = 6 - function number
- ebx = pointer to the filename
- ecx = number of start block, beginning from 1;
ecx=0 - read from the beginning of the file (same as ecx=1)
- edx = number of blocks to read;
edx=0 - read one block (same as edx=1)
- esi = pointer to memory area for the data
Returned value:
- eax = file size in bytes, if the file was successfully read
- eax = -1, if the file was not found
Remarks:
- This function is out-of-date; function 70 allows
to fulfil the same operations with the extended possibilities.
- Block = 512 bytes.
- For reading all file you can specify the certainly large value
in edx, for example, edx = -1; but in this case be ready that
the program will "fall", if the file will appear too large and can
not be placed in the program memory.
- The filename must be either in the format 8+3 characters
(first 8 characters - name itself, last 3 - extension,
the short names and extensions are supplemented with spaces),
or in the format 8.3 characters "FILE.EXT"/"FILE.EX "
(name no more than 8 characters, dot, extension 3 characters
supplemented if necessary by spaces).
The filename must be written with capital letters. The terminating
character with code 0 is not necessary (not ASCIIZ-string).
- This function does not support folders on the ramdisk.