Afaik the difference with the ramdisk in Basic v2.0 and v2.1 had indeed to
do with the ramdisk. I think that in the one version the size was given in
number of kB and in the other version in nr. of bytes. Or something like
that, I don't know exactly. Anyways the error sounds strange indeed...

About the _memini(value)syntax, the ramdisk uses the ram which is normally
paged 'behind' the bios and the basic rom. The number of bytes allocated
must be at least 1023, and the actual number of bytes available should be
decreased with 768 which is needed for the file allocation table (so 1023 is
a pretty small ramdisk). Also, the total number of bytes used for the
ramdisk is always a multiple of 256, so the given value +1 (don't ask me
why) is rounded down. So the final size calculation is:

((value + 1) and &HFF00) - 768

The maximum value which can be specified is 32767. If you specify a number <
1023 then the ramdisk will be removed. Also, apparantly the files on basic's
ramdisk can only be accessed sequentially, so no open "" as #1 len=n random
access. And without a specified size the allocated ramdisk size will be the
maximum size, with 32000 bytes available.


~Grauw

---
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!

_______________________________________________
MSX mailing list ([EMAIL PROTECTED])
Info page: http://lists.stack.nl/mailman/listinfo/msx

Reply via email to