68 Section 6: Programming Basics

Keystrokes

Display

 

2

002-

2

*

003-

20

9

004-

9

.

005-

48

8

006-

8

÷

007-

10

¤

008-

11

Given h in the X-register, lines 002 to 008 calculate

2h .

9.8

Program End. There are three possible endings for a program:

n(return) will end a program, return to line 000, and halt.

¦will stop a program without moving to line 000.

The end of program memory contains an automatic n.

Keystrokes

Display

 

 

n

009-

43 32

Optional if this is the last

 

 

 

program in memory.

Intermediate Program Stops

Use ´ © (pause) as a program instruction to momentarily stop a program and display an intermediate result. (Use more than one ©for a longer pause.)

Use a ¦ (run/stop) instruction to stop the program indefinitely. The program will remain positioned at that line. You can resume program execution (from that line) by pressing ¦during Run mode, that is, from the keyboard.

Running a Program

Run Mode. Switch back to Run mode when you are done programming: ¥. Program execution must take place in Run mode.

Page 68
Image 68
HP 15c Scientific manual Intermediate Program Stops, Running a Program, 002 003 004 005 006 007 008