
Commands - 113
SAVE
Command
SYNTAX: SAVE
SAVE program
SAVE to Flash segme nt, to Flash address, from RA M segm ent, from RA M addres s, len gth
PURPOSE: Saves programs and data to flash EPROM.
REMARK S: Some cards, such as the RPC-150 and RP C-2300, only allow the fir st SAVE syntax. Cards with
128K or more of flash EPROM allow saving more than 1 program . These sam e cards also allow
saving binary data. Refer to your hardware manual to see if it supports 128K of flash. The RPC-
150 and RPC -2300 do not. The RPC-2350 does.
program is 0 or 1, when using a 128K Flash, 0 -7 when using a 512K Flash.
Both RAM and Flash address are in the range of 0 to &FF FF (65535).
Flash segment is from 8 to 15. Mem ory segm ents 0-7 ar e RAM while 8-15 are for Flash. Segments
may be limited depending upon the amount of memory installed.
RAM segment is 0 or 1 with 128K RAM installed and 0-7 with 512K RAM.
A simple SAVE transfers a program from RA M to Flash. It begins saving at Flash address 0.
SAVE program allows you to save programs as 0 or 1 using a 128K Flash or as 0-7 using a 512K.
program and Flash segment are related by the following formula:
Flash segment = program + 8
Be careful when saving data. It is possible to clobber a program by accessing the same location.
SAVE allows you to store information POKE’d into RAM . Data should be saved above where the
program is stored to prevent clobbering.
The 3rd syntax can be executed during run time. Use LOA D to transfer blocks of memor y from
Flash to RAM or RAM to RAM.
EXAMPLE: SAVE
SAVE 1 Saves a program to Flash segment 1
SAVE 9,SA,1,RA,5500 Saves data to Flash
ERROR: < Command not available> – if card does not support user serial EEPROM
< Data negative> – for addre ss
< Data > 65.535> – for address
Commentaires sur ces manuels