DL205 User Manual, 4th Edition, Rev. B
5–173
Chapter 5: Standard RLL Instructions - Table
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Find Block (FINDB)
The Find Block instruction searches for an occurrence of a
specified block of values in a V-memory table. The function
parameters are loaded into the first and second levels of the
accumulator stack and the accumulator by three additional
instructions. If the block is found, its starting address will be
stored in the accumulator. If the block is not found, flag SP53
will be set.
The below steps are necessary to program the Find Block function.
Step 1: Load the number of bytes in the block to be located. This parameter must be a decimal value
from 1 to 256.
Step 2: Load the length of a table (number of words) to be searched. The Find Block will search
multiple tables that are adjacent in V-memory. This parameter must be a decimal value from 1
to 128.
Step 3: Load the ending location for all the tables into the accumulator. This parameter must be a
HEX value. You can use the LDA instruction to convert an octal address to hex.
Step 4: Load the table starting location for all the tables into the accumulator. This parameter must be
a HEX value. You can use the LDA instruction to convert an octal address to hex.
Step 5: Insert the Find Block instruction. This specifies the starting location of the block of data you
are trying to locate.
FINDB
Aaaa
ý
ý
ý
þ
230
240
2
5
0
-1
2
6
0
Discrete Bit Flags
Description
SP53
On when the Find Block instruction was executed but did not find the block of data in
table specified.
Operand Data Type
DL260 Range
A
aaa
V-memory V
All (See page 3 - 56)
V-memory P
All (See page 3 - 56)
Table 1
Table 2
Table 3
Table 32
Block
Start Addr.
End Addr.
32 bytes
Start Addr.
16 words
16 words
16 words
16 words
l
l
l
V
2
000
V
2
0
1
7
V
2
0
2
0
V
2
0
3
7
V
2
040
V
2
057
V
2
7
6
0
V
2
777
V
3
000
V
3
0
1
7
X
1
LD
K
32
LD
K
16
LD
A
O
2
777
LD
A
O
2
000
FIND
B
V
3
000
E
ND
Sa
mp
le
P
ro
g
ra
m
o
f
FIND
B
DS
Used
HPP
N/A