Section 8: Program Editing128
Running the Program
To run AREA you only have to execute it using XEQ or assign it to the keyboard for single-key execution. For ease of use, let’s assign it to the LOG key location and then execute it in USER mode. When you assign a program (that you have stored into program memory) to a key location, the calculator remembers the assignment by storing it with the LBL of the program.
Keystrokes Display    
g ASN 
  ASN _    
   
ALPHA AREA ALPHA 
  ASN _AREA    
   
LOG 
  11.0000    
  AREA is now assigned to the LOG key location for USER mode execution.
USER 
  11.0000    
  Places the HP-41C into USER mode so you can use the reassigned key.
AREA ( LOG
  4,216.0173    
  The area of the cylinder in square
inches.
Now compute the area of a cylindrical water heater that has a height of 58.185 inches and a radius of 9.25 inches.
Keystrokes Display    
58.185 ENTER  
  58.1850    
   
9.25
  9.25 _    
  AREA is initialized with a new set of data before execution.
AREA ( LOG
  3,919.2861    
  Total area of the cylinder in square
inches.
Let’s see how the HP-41C editing functions can be used to examine and modify AREA.
Resetting to the Beginning of a Program
To begin editing a program, you may need to set the calculator to the beginning of that program. There are several ways to do this, depending on the status of the calculator and your personal preference.
To reset to the beginning of the program:
  1. In normal or USER mode, if the calculator is already positioned to a line in the desired program (e.g., if you have just executed the program), press g RTN . This sets the calculator to line 0 of the current program.
  2. In normal, USER, or PRGM mode, if the calculator is already positioned to a line in the desired program (e.g., if you have just executed the program), press g GTO · 000. This sets the calculator to line 000 of the current program.