|Re: [WP34s] New flash handling?|
Message #2 Posted by Marcus von Cube, Germany on 17 Dec 2011, 8:55 a.m.,
in response to message #1 by fhub
Here is a short description:
There are no longer any regions (copies of the RAM program structure) which can be individually accessed by number. There are just four program areas:
Each area (except ROM) can be divided into individual programs delimited by END. To make any program (in any area except ROM) the current program you can use CAT and navigate to a label within the program. ENTER will just position the PC while R/S or XEQ will run the program. P/R lets you inspect the program.
The following commands act on a single program only:
CLP - removes current program from RAM or library. CLP can be directly accessed from the CAT browser.
PSTO - stores the current program in the library. The program must start with a LBL'xyz' instruction which serves as kind of a file name. Programs are always appended to the end of the flash area. If a program with the same name exists, it will be deleted first. PSTO is mapped to STO in the CAT browser.
PRCL - Creates a copy of the current program at the end of RAM. The source may even be RAM so you can make a duplicate of your code on the device. No automatic removal of duplicate labels is attempted. XROM cannot be copied, all other programs are available to PRCL. Single program size is bound by some 900 steps. If needed, room in RAM is increased by clearing the statistical sums and reducing the number of registers before PRCL is performed. PRCL is mapped to RCL in the CAT browser.
LOAD and SAVE have not changed. SAVE is the only way to store something in the backup (PSTO 0 is no longer available).
In case of trouble do a manual RTN to force the PC to location zero in RAM. There may still be situations where the internal pointers get a bit mixed up.