On Thu, 12 Nov 1998, Nestor Soriano wrote:
> >> Use of #4010 allows DOS to be hardware independent. But then sector numbers
> >> are limited to 16 bit. How to solve this? With drivers?
> >What problem do you mean?
> >In general #4010 is only called by DOS kernel. In all other cases when
> >your own program makes use of #4010, you know what size the disk you want
> >to access has. So if it is >32MB, use the 'new diskio' otherwise use
> >#4010.
>
> Of course, #4010 is used by DOS kernel; then what happens when DOS needs
> access to 32 bit sectors for accessing files? We have the same problem:
> #4010 entry supports 16 bit sectors only!
eh.. you didn't understand me; DOS kernel uses both 4010 and the new entry
depending on the situation. When a disk is accessed for the first time (or
maybe when booting up the system) DOS can make a table with drivetypes:
4010 or new entry. To obtain the drivetype bootsector(=sector 0) can be
read by using normal 4010 even if it is drive >32MB.
Jon
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****