Reference Section


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


External File Operations

[ I/O ] { Pad }

Displays the iPad STORAGE menu. The menu lets you write ( { WRT } ) programs and data as named files, as well as read ( { RD } ) or ( { VFY } ) files you have written. All the functions, whether used as keyboard commands or program instructions, show prompts to press OK at various stages of the file operation.

The write function saves a series of data registers or the program contained in memory as an external file in the shared documents area for the RPD-95 application.

The verify function compares an external file with a series of data registers or the program contained in memory. After the comparison, the calculator indicates whether the file matches the contents of memory.

The read function loads an external file into memory, replacing the data or program previously in memory. If there is insufficient room for the file, the read is not performed and the contents of memory are unchanged.

Before carrying out a read or verify function, the calculator must find the named file. If the calculator is unable to find the file, it will display an error message.

Program Files

A program file must be assigned a three-character file name. The first character of the name cannot be a + (plus sign) because that character identifies a data file.

When you write a program file, the entire program is written, starting with the instruction at program step 0000 and ending with the last instruction in the program. Because a program is written in multiples of eight bytes, the calculator might include NOP instructions at the end of the file. When you read a program file into program memory, program memory is cleared and the file is loaded into memory starting at program address 0000.

Data Files

A data file must be assigned a three-character file name. The first character of the name must be a + (plus sign). The + gives the calculator a way to identify the file as a data file.

Keyboard Commands

If you use the iPad STORAGE menu from the keyboard, the calculator prompts for information such as a file name or the number of registers.

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

Program Instructions

If you use the iPad STORAGE menu while the calculator is in the learn mode, the calculator does not prompt for file names or required numeric information. Instead, you must supply the required information as either a field following the instruction or a number in the numeric display register.

When you execute the external file function as a program instruction, the function uses the information you stored.

Write Program File to External Storage: Keyboard Command

[ I/O ] { Pad } { WRT } { PGM } aaa { ENT }

Begins the sequence for writing the program contained in the program memory as an external file named aaa. The first character of file name aaa must not be a + because that character identifies a data file.

Write Data File to External Storage: Keyboard Command

[ I/O ] { Pad } { WRT } { REG } nnn.sss { ENT } +aa { ENT }

Begins the sequence for writing a series of data registers as an external file named +aa. The calculator supplies the + as the first character of file name +aa. The number nnn.sss specifies the number of registers to be written ( nnn ) and the address of the starting register ( sss ). The number nnn must be greater than zero. You must include any leading zeros in sss. If you omit sss, the calculator uses 000 as the starting register.

Read Program File from External Storage: Keyboard Command

[ I/O ] { Pad } { RD } { PGM } aaa { ENT }

Begins the sequence for reading the program file named aaa from an external file into program memory. The first character of the file name must not be a +.

Read Data File from External Storage: Keyboard Command

[ I/O ] { Pad } { RD } { REG } sss { ENT } +aa { ENT }

Begins the sequence for reading the data file named +aa from an external file into a series of data registers. The calculator supplies the required + as the first character of +aa. The file contents replace any data already in the destination registers, starting at register sss. Register sss need not be the same register from which the data was written.

Verify Program File: Keyboard Command

[ I/O ] { Pad } { VFY } { PGM } aaa { ENT }

Begins the sequence for comparing the external program file named aaa with the contents of program memory, starting at step 0000. The first character in the file name must not be a +. The file is used only for comparison. After the comparison, the calculator displays a message indicating whether the file matches the program memory. When the file matches but memory contains additional instructions beyond the area compared, the message MORE DATA IN PGM is displayed.

Verify Data File: Keyboard Command

[ I/O ] { Pad } { VFY } { REG } sss { ENT } +aa { ENT }

Begins the sequence for comparing the external data file named +aa with a series of data registers. The calculator supplies the required + as the first character of +aa. The file is used only for comparison. The comparison is made starting at register sss. The calculator displays a message indicating whether the file matches the contents of the data registers.

For a verify that follows writing the file, register sss should be the starting register from which the data was written.

For a verify that follows reading the file, register sss should be the starting register into which the data was read.

Write Program File to External Storage: Program Instruction

[ I/O ] { Pad } { WRT } aaa

Begins the sequence for writing the program in program memory to the external file storage as a file named aaa. The first character of aaa must not be a +.

Write Data File to External Storage: Program Instruction

[ I/O ] { Pad } { WRT } +aa

Begins the sequence for writing a series of data registers as an external file named +aa. The first character of the file name must be a +. When the instruction is executed, the numeric display register must contain a number in the form nnn.sss, specifying the number of registers to be written ( nnn ) and the address of the starting register ( sss ). The number nnn must be greater than zero. You must include any leading zeros in sss. If you omit sss, the calculator uses 000 as the starting register.

Read Program File from External Storage: Program Instruction

[ I/O ] { Pad } { RD } aaa

Begins the sequence for reading program file aaa from the external storage into program memory. The first character in the name aaa must not be a +.

Read Data File from External Storage: Program Instruction

[ I/O ] { Pad } { RD } +aa

Begins the sequence for reading the data file named +aa from an external file into a series of data registers. You must use a + as the first character of the file name. When the instruction is executed, the numeric display register must contain a number in the form sss specifying the starting register into which the file data is to be read. Register sss need not be the same register from which data was written. The file data replaces any data already in the registers.

Verify Program File: Program Instruction

[ I/O ] { Pad } { VFY } { PGM } aaa

Begins the sequence for comparing the external program file named aaa with the contents of program memory, starting at step 0000. The first character in the file name must not be a +. The file is used only for comparison.

If the file matches and all program memory beyond the program contains NOP instructions, the calculator displays the message FILE aaa OK.

If the file does not match or if a problem occurs, the calculator displays a corresponding error message and halts the program.

Note:

The message MORE DATA IN PGM indicates that the file matches but memory contains additional instructions beyond the area compared.

Verify Data File: Program Instruction

[ I/O ] { Pad } { VFY } +aa

Begins the sequence for comparing the data file named +aa with a series of data registers. You must use a + as the first character of the file name. When the instruction is executed, the numeric display register must contain a number in the form sss specifying the starting register where the comparison is to begin. Register sss should be the same register from which the data was written or into which it was read. The file is used only for comparison.

If the file matches the contents of the specified registers, the calculator displays the message FILE +aa OK.

If the file does not match or if a problem occurs, the calculator displays a corresponding error message and halts the program.


Back