19.08.2013 Views

HP·38E/38C - Slide Rule Museum

HP·38E/38C - Slide Rule Museum

HP·38E/38C - Slide Rule Museum

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

What Is a Program? 85<br />

The illustration on the left shows the first IO lines of program memory<br />

immediately after pressing (]] @ill in program mode or turning the<br />

HP-38E on. The illustration on the right shows program memory after<br />

recording the eight-line example program.<br />

A [GTO I 00 instruction in the program tells the calculator to go to line 00<br />

and execute the automatic stop instruction there next. If []ill is pressed<br />

again in automatic run mode, the calculator will begin executing instructions<br />

from line 00 as it did the first time. Each time the calculator<br />

executes this program, it ends execution at line 00, ready to begin again.<br />

If you had recorded a 99-line program, after executing line 99 the<br />

calculator would go to line 00, the automatic stop instruction, and stop.<br />

Then you would have to press []ill to execute the program again.<br />

Now try an example.<br />

Example: Calculate the discounted price plus sales tax of a lamp<br />

marked $75 and an ottoman marked $115. (Remember, we are still<br />

assuming a 25% discount.and 6% sales tax.)<br />

Keystrokes<br />

75 []ill<br />

115 []ill<br />

Display<br />

59.63<br />

91.43<br />

Discounted price of lamp<br />

pi us sales tax.<br />

Discounted price of ottoman<br />

pi us sales tax .<br />

When you hold down the []ill key, the display will show the line where<br />

program execution begins.<br />

Each time you press []ill the calculator executes the sequence of<br />

keystrokes you have recorded. You calculate the same answers you<br />

would obtain if you did each problem manually, but without the time or<br />

the tedium.<br />

Automatic Memory Allocation<br />

When you clear the calculator of previous programs, you have eight lines<br />

of program memory available and 20 storage registers. The memory is

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!