BoSTUG Sinclair Timex Newsletter May/June 1988
RAMdisking capabilities can increase the versatility of a computer by providing temporary file storage.
RAMdisk reserves a portion of memory for files. Thereafter you access the file the same way you access it on disk or on microcartridge. There are two differences: The device is called ram as in ‘ram1_fred’. The other difference is that access to the file is very much quicker than to files stored on magnetic media.
A practical application is in exporting and importing files between PSION programs.
QDOS anticipated ram disking and allows for up to eight ram disks to be addressed.
Of the two types of ramdisking the first is called dynamic ramdisking and creates eight zero sectored ramdisks. As files are stored in a ramdisk its size expands up to the available free memory in ram; a ‘DIR ram1_’ might show -22/0 for a file of 22 sectors. The advantage is that only as much free memory is allocated for ramdisking as is required.
The other type, published here, is a static ramdisk. You determine how many sectors you want when formating the ramdisk. A certain amount of guessing is necesary.
Key-in the following SuperBASIC program. There is a lot of hex data but it would be 50% greater in decimal code.
When done, RUN the program with a formatted cartridge in mdv1_. Two things happen: You create “ramdisk_bin”, a binary file, and a SuperBASIC file called ram_boot that loads the binary code and generates a sample of ramdisking speed.
To be continued in the next issue