Other Programming Functions

(HOLD)

DISP: takes a number that represents 1/5 of a second. DISP5 is

thus one second.

 

(HOLD) STOP: Stops the execution of the program. This instruction should be placed at the end of every program.

(HOLD) R/S: Pauses the program execution and returns to the normal system.

You can then resume program execution by pressing

again. This can be used,

for example, when you need to enter a number.

 

(HOLD)

DSE ( ) and

(HOLD)

ISG ( ), followed by 1 digit (0

to 9): Loop control function. Place a number of the form ccccc.eeeii where cccc is the counter,

eeeis the end value for the counter and ii is the increment in variable 1. For example, DSE 1 will decrement the counter part of the variable by ii (if ii is 0, it decrements by 1) and, if cccc is less or equal to eee, it will skip the next instruction (usually a GOTO).

For example, to loop from 0 to 50, incrementing by 3 each loop, use 0.05003 as start the value and the ISG instruction. The following program will loop from 0-50, incrementing by 3 each loop and pause shortly at each loop to show the counter. At the end, it will leave 12 with a blinking cursor. Once in Program mode, select an unused program number and press:

.05003:$1

(HOLD)

 

 

 

 

(HOLD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(HOLD)

 

 

(HOLD)

 

 

 

 

 

(HOLD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This program has 22 bytes, and the Checksum is 146.

Programming 83