|
Sample program
Here's a simple example. It will display the sum and difference of two numbers. Press New, then press...
| Read | Read a number from the keypad into the register
| | Store A | Store the contents of the register in bucket A
| | Read | Read another number from the keypad into the register
| | Store B | Store the contents of the register in bucket B
| | Load A | Copy the contents of bucket A to the register
| | Add B | Add the contents of bucket B to the contents of the register
| | Write | Write the contents of the register to the display
| | Load A | Copy the contents of bucket A to the register
| | Sub B | Add the contents of bucket B to the contents of the register
| | Write | Write the contents of the register to the display
| | End | Stop execution when you get here
|
Key point: Every operation uses the register!
Running it
You have several options for running your program...
| Run | Run the program, stopping only for Read statements. Continue running when the user presses Enter on the keypad.
| | Step | Run the program one line at a time. Press Step after each instruction. A great way to learn! Watch the register and watch the buckets!
| | Stop | Stop the program wherever it happens to be. The program will remain in the code display.
| | New | Clear everything and start a new program.
|
Comments?
Email me at bill_qualls@hotmail.com
•
Copyright © 2009 by Bill Qualls.
|