Reference Section


Use this section as a source of reference information for file operations.


File Operations

[ FILES ] - Displays a menu of file operations. The menu lets you save ( { PUT } ) programs and data as named files in one of two directories: the calculator's file space or an installed Constant Memory cartridge. You also use the menu to load ( { GET } ) a file you have saved, show a catalog of files in a directory ( { CAT } ), delete a specified file ( { DF } ), clear all files from a directory ( { CD } ), or name a Constant Memory cartridge ( { NAM } ).

Before carrying out a save or load operation, the calculator checks the destination to make sure enough room exists for the file. If insufficent room exists, the save or load is not performed, and the destination is not altered. When you replace an existing file with a new file of the same name, the new file need not be the same size as the old file. The calculator repositions other files to accomodate any difference in size.

Program Files

When you save a program as a file, you assign a three-character file name. The first character must not be a + (plus sign) because that character identifies a data file. The entire program is saved, starting with the instruction at program step 0000 and ending with the last instruction in the program. Because a program file is saved in multiples of eight bytes, the calculator might include a few NOP instructions at the end of the program. When you load a program file into program memory, the file is loaded starting at program address 0000.

Data Files

When you save a data file, you assign a three-character file name. The first character of the name must be a + (plus sign). This gives the calculator a way to identify the file as a data file. You specify the starting data register and the number of registers to save. When you load a data file, the entire file is loaded into data registers, beginning at the register you specify. You can load a data file into a different series of registers than those from which the data was saved.

File Directories

The calculator treats each file-storage area (either a Constant Memory cartridge or the calculator's file space) as a named directory.

The directory name MEM refers to the calculator's file space. The name NEW is assigned by the calculator to any Constant Memory cartridge when you first use the cartridge. You can assign a different name to a cartridge. If you use { CD } (clear directory) to clear all files in the cartridge, the calculator reassigns the name NEW to the cartridge.

Keyboard Commands

When you use the FILE STORAGE menu from the keyboard, you are prompted for information such as a file name or the number of a starting register.

If you specify fewer than three characters for a file name or a directory name, the calculator supplies trailing spaces. If you make a mistake while entering such information, you must press [ CLEAR ] to restart the entry.

Program Instructions

If you press [ FILES ] while the calculator is in learn mode, the calculator displays the menu but does not prompt for file names, directory names, or numeric information such as a starting register. Instead, you must supply the required information as either an instruction field or a number in the numeric display register. When you execute the function as a program instruction, the function uses the information you stored.

If you specify fewer than three characters for a file name or directory name, the calculator supplies trailing spaces.

Save Program File: Keyboard Command

[ FILES ] { PUT } { PGM } aaa { ENT }

Saves the program contained in program memory as a file named aaa in the current directory. If a Constant Memory cartridge is installed and file space is partitioned, you are prompted to select either the cartridge or the file space as the current directory. The first character of file name aaa must not be a + (plus sign) because that character identifies a data file.

If file aaa already exists, the calculator prompts you to choose whether you want to replace the file or cancel the file save function.

Save Data File: Keyboard Command

[ FILES ] { PUT } { REG } nnn.sss { ENT } +aa { ENT }

Saves a series of data registers as a file named +aa in the current directory. If a Constant Memory cartridge is installed and file space is partitioned, you are prompted to select either the cartridge or the file space as the current directory. The calculator supplies the + as the first character of file name +aa. The number nnn.sss specifies the number of registers to be saved ( nnn ) and the address of the starting register ( sss ). You must include any leading zeros in sss. If you omit sss, the calculator uses 000 as the starting register.

If file +aa already exists, the calculator prompts you to choose whether you want to replace the file or cancel the file save function.

Load Program File: Keyboard Command

[ FILES ] { GET } { PGM } aaa { ENT }

Clears any program currently contained in program memory and loads program file aaa from the current directory into program memory. If a Constant Memory cartridge is installed and file space is partitioned, you are prompted to select either the cartridge or the file space as the current directory. The first character in the file name must not be a + (plus sign).

Load Data File: Keyboard Command

[ FILES ] { GET } { REG } sss { ENT } +aa { ENT }

Loads the data file name +aa from the current directory into a series of data registers. If a Constant Memory cartridge is installed and file space is partitioned, you are prompted to select either the cartridge or the file space as the current directory. The file data is loaded starting at register sss and replaces any data already in the destination registers. Register sss need not be the same register from which the data was saved. The calculator supplies the required + (plus sign) as the first character of +aa.

Name Cartridge: Keyboard Command

[ FILES ] { NAM } aaa { ENT }

Assigns the name aaa to the currently installed Constant Memory cartridge. You should not use the names MEM and PGM because these names refer specifically to the file space and program memory.

Show Directory Catalog: Keyboard Command

[ FILES ] { CAT }

Displays the name of the current directory, the name of each file in the directory, the file's size in bytes, and the total number of bytes free in the directory. If a Constant Memory cartridge is installed and file space is partitioned, you are prompted to select either the cartridge or the file space as the current directory. The calculator places the number of bytes of free space in the numeric display register.

To stop the listing before it finishes, press the [ BREAK ] or [ HALT ] key.

If the printer is enabled, the list is automatically printed. Otherwise, the calculator pauses one second after displaying each item. Holding down [ ] pauses the listing indefinitely. Pressing and releasing [ ] advances immediately to the next item.

Delete File: Keyboard Command

[ FILES ] { DF } aaa { ENT }

Deletes the data or program file named aaa from the current directory. If a Constant Memory cartridge is installed and file space is partitioned, you are prompted to select either the cartridge or the file space as the current directory. If the file is a data file, you must specify + (plus sign) as the first character of the file name.

You cannot recover a file after deleting it.

Clear Directory: Keyboard Command

[ FILES ] { CD } { Directory }

Clears the directory named { Directory } by deleting all the files in that directory. The directory can be either the calculator's file space ( { MEM } ) or a Constant Memory cartridge ( the name of the directory appears as a menu selection ). When you use { CD } with a cartridge, the calculator renames the cartridge as NEW.

You cannot recover files from a cleared directory.

Save Program File: Program Instruction

[ FILES ] { PUT } aaa
[ FILES ] [ INV ] { PUT } aaa

Saves the program contained in program memory as a file named aaa. { PUT } ( without [ INV ] ) saves the file in the calculator's file space. [ INV ] { PUT } saves the file in the installed Constant Memory cartridge. The first character of the aaa must not be a + (plus sign) because that character identifies a data file.

If file aaa already exists, the calculator replaces the file.

Save Data File: Program Instruction

[ FILES ] { PUT } +aa
[ FILES ] [ INV ] { PUT } +aa

Saves a series of data registers as a file named +aa. { PUT } ( without [ INV ] ) saves the file in the calculator's file space. [ INV ] { PUT } saves the file in the currently installed Constant Memory cartridge. You must use + (plus sign) as the first character of the file name. When the function is executed, the numeric display register must contain a number in the form nnn.sss, specifying the number of registers to be saved (nnn) and the address of the starting register (sss). You must include any leading zeros in sss. If you omit sss, the calculator uses 000 as the starting register.

If file +aa already exists, the calculator replaces the file.

Load Program File: Program Instruction

[ FILES ] { GET } aaa
[ FILES ] [ INV ] { GET } aaa

Clears the program currently contained in program memory and loads program file aaa into program memory. { GET } ( without [ INV ] ) loads the file from the calculator's file space. [ INV ] { GET } loads the file from the installed Constant Memory cartridge. The first character in the file name must not be a + (plus sign).

Load Data File: Program Instruction

[ FILES ] { GET } +aa
[ FILES ] [ INV ] { GET } +aa

Loads the data file named +aa into a series of registers. { GET } ( without [ INV ] ) loads the data from the calculator's file space. [ INV ] { GET } loads the data from the installed Constant Memory cartridge. You must use + (plus sign) as the first character of the file name. When the function is executed, the numeric display register must contain a number in the form sss specifying the starting register. The file data replaces any data already in the registers. Register sss need not be the same register from which the data was saved.

Name Cartridge: Program Instruction

[ FILES ] { NAM } aaa

Assigns the name aaa to the currently installed Constant Memory cartridge.

The calculator assigns the name NEW to a Constant Memory cartridge until you assign another name.

Show Directory Catalog: Program Instruction

[ FILES ] { CAT }
[ FILES ] [ INV ] { CAT }

Displays the catalog of the specified directory, including the name of the directory, the name and size of each file in the directory, and the total number of bytes free in the directory. { CAT } ( without [ INV ] ) specifies the calculator's file space as the directory. [ INV ] { CAT } specifies the installed Constant Memory cartridge as the directory. The calculator places the number of bytes of free space in the numeric display register.

If the printer is enabled, the list is automatically printed. Otherwise, the calculator pauses one second after displaying each item. Holding down [ ] pauses the listing indefinitely. Pressing and releasing [ ] advances immediately to the next item.

Delete File: Program Instruction

[ FILES ] { DF } aaa
[ FILES ] [ INV ] { DF } aaa

Deletes data or program file aaa. { DF } ( without [ INV ] ) deletes the file from the calculator's file space. [ INV ] { DF } deletes the file from the installed Constant Memory cartridge. If the file is a data file, you must specify + (plus sign) as the first character of the file name.

You cannot recover a file after deleting it.

Clear Directory: Program Instruction

[ FILES ] { CD }
[ FILES ] [ INV ] { CD }

Clears all files from the specified directory. { CD } ( without [ INV ] ) clears all files from the calculator's file space. [ INV ] { CD } clears files from the installed Constant Memory cartridge and renames the cartridge as NEW.

You cannot recover files from a directory you have cleared.

Run Program File: Keyboard Command

[ RUN ] { MEM } { filename }
[ RUN ] { directory } { filename }

Begins execution of the program named { filename } in either the calculator's file space ( { MEM } ) or the installed Constant Memory cartridge named { directory }. (The actualy directory and filename appear as menu selections.) The program runs directly from file space or from the cartridge; it is not loaded into program memory.

Note:

If the program expects a number to be in the numeric display register, you can enter the number anytime before selecting { filename }.

Execute Routine: Program Instruction

[ RUN ] [ 2nd ] [ GTL ] aa
[ RUN ] [ 2nd ] [ SBL ] aa
[ RUN ] [ INV ] [ 2nd ] [ GTL ] nnnn
[ RUN ] [ INV ] [ 2nd ] [ SBL ] nnnn

Transfers control to a routine or calls a subroutine in either the calculator's file space, the installed Constant Memory cartridge, or program memory. This instruction lets your program execute routines that are not located in the same area in which your program is running. A program running from the file space, for example, can call a subroutine in a cartridge, or in program memory. You cannot use this function as a keyboard command.

When the routine is part of a file located in the file space or in a cartridge, the first six characters in the alpha register must contain the names of the directory and the file in the form DIRFIL where DIR is the directory name and FIL is the file name (for example, MEM+SB).

When the routine is in program memory, the first three characters in the alpha register must contain the characters PGM before RUN is executed. Any remaining characters in the register are ignored.

Note:

If the routine expects a number to be in the numeric display register, you must enter the number before executing this instruction.


Back