Using memory cards¶
Set mode¶
If a memory card is inserted for the first time and has never be used before with this computer, the computer will ask to confirm to empty it.
To check the mode how the memory card is used, enter the following in RUN mode:
MEM$
The result is one of the following:
S1
- only internal memory will be used for programs, the memory card can be used as RAM diskF:
.S2
- only the memory card will be used for programs, the internal memory card can be used as RAM diskE:
.B
- the memory card will extend the internal memory.
To change the mode, assign a new value to MEM$
with one of the
following commands:
MEM$="S1"
MEM$="S2"
MEM$="B"
Initialize a RAM disk¶
To get a RAM disk, it has to be initialized first. For this you use
the command INIT
followed by the drive letter and the size you
want to reserve for the RAM disk.
Examples - a 32KB memory card is used in mode S1
and all available
space on it should be used as RAM disk:
INIT "F:31K"
If there is an error message Out of memory
, then the given size is too
big for the memory card. Usually you need to take into account that not
100% of the card can be used as storage.
Using files¶
The following examples assume you have a memory card in mode S1
which was initialized as RAM disk.
Save a file:
SAVE "F:DEMO.BAS"
Load a file:
LOAD "F:DEMO.BAS"
Show the list of available files:
FILES "F:"
This will show a list of files on the disk. You can scroll up and down
if needed. To load a file press L
and confirm that you want to load
it. To exit the list without loading a file, press the enter key.
Delete a file:
KILL "F:DEMO.BAS"