DL205 User Manual, 4th Edition, Rev. B
5–153
Chapter 5: Standard RLL Instructions - Table
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
NOTE:
Status flags are only valid until another instruction that uses the same flags is executed. The pointer
for this instruction starts at 0 and resides in the accumulator.
In the following example, when X1 is on, the constant value (K6) is loaded into the
accumulator using the Load instruction. This value specifies the length of the table and is
placed in the first stack location after the Load Address instruction is executed. The octal
address 1400 (V1400) is the starting location for the table and is loaded into the accumulator.
The greater than search value is specified in the Find Greater Than instruction. If a value is
found greater than the search value, the offset (from the starting location of the table) where
the value is located will reside in the accumulator. If there is no value in the table that is
greater than the search value, a zero is stored in the accumulator and SP53 will come ON.
Discrete Bit Flags
Description
SP53
On if there is no value in the table that is equal to the search value.
Operand Data Type
DL260 Range
A
aaa
V-memory V All (See page 3 - 56)
Constant K 0-FFFF
Load the constant value 6
(HEX) into the lower 16 bits
of the accumulator
LD
K6
X1
LDA
O1400
V1400 0
V1401 1
V1402 2
V1403 3
V1404 4
V1405 5
V1406
V1407
0 1 2 3
0 5 0 0
9 9 9 9
3 0 7 4
8 9 8 9
1 0 1 0
X X X X
X X X X
FDGT
K8989
Convert octal 1400 to HEX
300 and load the value into
the accumulator
Find the value in the table
greater than the specified value
Begin here
Table length
Accumulator
0 0 0 0 0 0 0 2
V1402 contains the location
where the first value greater
than the search value was
found. 9999 was the 2nd
location after the start of the
specified table.
Handheld Programmer Keystrokes
SHFT
ANDST
L
3
D
STR
$
5
F
SHFT
3
D
6
G
MLR
T
8
I
1
B
ENT
PREV
6
G
ENT
J
SHFT
ANDST
L
3
D
1
B
4
E
0
A
8
I
ENT
0
A
NEXT
J
9
9
0
A
ENT
Direct
SOFT