Download User Manual for the HE150ASC200 ASCII Basic
Transcript
CHAPTER 4: COMMANDS 5-19-98 PAGE 28 SAVE SYNTAX: SAVE [integer] MODE: Command The SAVE command will copy the currently selected program into the specified program number in the PROGRAM file. The integer value must be between 1 and 254 inclusive. If no integer is specified, or if storing the program using the specified number would leave a "gap" in program numbers, the program is copied into the next available program space in the PROGRAM file. PROGRAM NUMBERS IN PROGRAM FILE MEMORY WILL ALWAYS REMAIN CONTIGUOUS STARTING WITH PROGRAM NUMBER 1. After SAVE is entered, the ASCII BASIC Module will respond with the program number that the stored program will occupy in the PROGRAM file memory. This number is used when accessing the program with the AUTORUN, SELECT, CHAIN, EDIT and DELPGM commands. If the program number specified already exists in the PROGRAM file, the existing program and all subsequent programs in the PROGRAM file are moved and the selected program will be "inserted" as program number integer. For Example, if there are 6 programs in the PROGRAM file (1 through 6), and the currently selected program were SAVEd as number 4, programs 4, 5 and 6 in the PROGRAM file would be moved to 5, 6 and 7 respectively, making room for the new program 4. SEE ALSO : DELPGM, AUTORUN, SELECT, EDIT, CHAIN SELECT SYNTAX: SELECT integer MODE: Command The SELECT command causes the ASCII BASIC Module to select the specified program as the default program. The integer specifies the program number assigned to the program when it was SAVED. If an integer is specified for a program in the PROGRAM FILE that does not exist, a "Program does not exist" error is generated. If no integer is specified, the module will default to program 0. The SELECT command does not cause the specified program to be transferred into program 0. It is possible to have several different programs in the PROGRAM FILE memory as well as a separate program 0 in DATA memory. When a program is SELECTed, it may be RUN or LISTed, but only program 0 may be edited. If an attempt is made to modify a program in the PROGRAM FILE memory, an error will be generated. Note that the COMMAND mode prompt will always contain a number that represents the currently SELECTed program. SEE ALSO : SAVE, DELPGM, CHAIN, AUTORUN