Using System-Menu Functions


When you include a function from a system menu in a program, the calculator stores only the function. The menu key is not stored in the program


Storing Menu Functions

To store a system-menu function in a program, press the menu key and make the selection you want. The calculator displays the mnemonic for the function you select, but the keystrokes that you use to access the menu function are not stored in the program.

For example, if you press [ CONV ] { MET } { G-L } in the learn mode, the following mnemonic is displayed.
D_3A1G9e

The calculator stores the function to convert gallons to liters in the program, but it does not store [ CONV ] and { MET }.

Restoring the Program Counter Display

Pressing a system-menu key displays the menu functions on the second line of the display. If the calculator is in the learn mode, the menu functions replace the program counter. To restore the program counter, press [ 2nd ] [ PC ]. [ 2nd ] [ PC ] alternately displays and erases the program counter.
  • If the counter is in the display when you press [ 2nd ] [ PC ], the calculator erases the counter.
  • If the counter is not displayed when you press [ 2nd ] [ PC ], the calculator displays the counter.

Example

The random-number function of the calculator generates numbers that are fractional values. By using the expression given below, you can generate random integers that lie between 1 adn a given upper limit:
     N = INT( L x R# + 1 )
where N = the generated random integer, L= the selected upper limit, and R# = the random number produced by the calculator.

Using the format given above, write a program that generates random integers between 1 and 6.

Procedure

Press

Display

Activate learn mode[ LEARN ]
{ 1st }
D_etQdQc
Clear program[ 2nd ]
[ CP ]
D_etQdQc
Enter upper limit[ ( ]
6
[ × ]
D_8bouFE
Random number[ NUM ]
{ R# }
D_aDCFjL
Add 1[ + ]
1
[ ) ]
D_PxM0TV
Integer{ INT }D_BL1zyk
Restore PC[ 2nd ]
[ PC ]
D_kZahoJ
Stop execution[ HALT ]D_nG5hUu
Exit learn mode[ LEARN ]D_Gm1NTN


Running the Example

Run the program. The sequence of numbers shown by your calculator will probably differ from the sample shown below.

Procedure

Press

Display

Display RUN menu[ RUN ]D_6bcFWA
Generate number{ PGM }D_Ah1LTA
Generate number{ PGM }D_Zjpikv
Generate number{ PGM }D_sReOWC


Back