On Tue, 06 Jun 2000, Ricardo Bittencourt wrote:
> > Anyways, relocating the hook to #FD9F is a much, much nicer solution I
> > think.
>
> The only real advantage of this method would be the stop-drive,
> but that doesn't matter because I call 0FD9Fh 120 times at the
> startup of my program :)
DOS2 puts a "how long ago since last disk access" counter decrease routine
at #FD9F. If it is no longer called, DOS2 assumes the disk was accessed
very recently and therefore the disk in the drive must be the same as the
last disk read from.
Problem scenario:
- disable calling of #FD9F
- read something from disk 1
- remove disk 1, insert disk 2
- read directory
This will return the directory of disk 1, which was cached by DOS2. To
avoid this, either continue calling #FD9F, or call the "flush disk buffers"
routine of DOS2 before each series of reads.
Bye,
Maarten
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED]
and put "unsubscribe msx [EMAIL PROTECTED]" (without the quotes) in
the body (not the subject) of the message.
Problems? contact [EMAIL PROTECTED]
More information on MSX can be found in the following places:
The MSX faq: http://www.faq.msxnet.org/
The MSX newsgroup: comp.sys.msx
The MSX IRC channel: #MSX on Undernet
****