Programming instructions

47
Intermec Fingerprint 6.13 – Programmer's Guide
5. FINGERPRINT PROGRAMMING, cont'd.
Protecting the Program
When a program is SAVEd, it can optionally be protected, i.e. it
cannot be listed after being loaded and program lines cannot be
changed, added or deleted. Once a program has been protected, it
cannot be deprotected. Thus, make an unprotected backup copy as
a safety measure, should you need to make any changes later.
Example (saves and protects the program as PROGRAM1.PRG in
the current directory (by default "ram:"):
SAVE "PROGRAM1.PRG",P
Saving Without Line Numbers
A program can also be SAVEd without line numbers to make it
easier to MERGE it with another program without risking that the
line numbers interfere. Both programs should make use of line
labels for referring to other lines, e.g. in connection with loops and
branching instructions.
Example (saves the program as PROGRAM1.PRG without line
numbers in the current directory (by default "ram:"):
SAVE "PROGRAM1.PRG",L
Making Changes
If you LOAD a program, possibly make some changes and then
SAVE the program under the original name and in the original
directory, the original program will be replaced.
Example (changes the value of a variable in a program and
replaces the original version with the changed version):
LOAD "PROGRAM1.PRG"
50 A%=300
SAVE "PROGRAM1.PRG"
Making a Copy
The easiest way to copy a program is to use a COPY statement. You
can optionally include directory references in the statement.
Example (copies a program from the ROM memory to the RAM
memory and gives the copy a new name):
COPY "rom:FILELIST.PRG","ram:COPYTEST.PRG"
By LOADing a program and then SAVE it under a new name and/
or in another directory, you will create a copy of the original
program.
Example (creates a copy of the program LABEL1.PRG and gives
the copy the name LABEL2.PRG):
LOAD "LABEL1.PRG"
SAVE "LABEL2.PRG"
13. Saving the Program,
cont'd.
Continued!