Find Block (FINDB)
The Find Block instruction searches for an occurrence of a
230
specified block of values in a V-memory table. The function
240
parameters are loaded into the first and second levels of the
250-1
accumulator stack and the accumulator by three additional
260
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.
DS
Used
HPP
N/A
Discrete Bit Flags
SP53
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.
Start Addr.
V2000
16 words
Table 1
V2017
V2020
16 words
Table 2
V2037
V2040
16 words
Table 3
V2057
V2760
Table 32
16 words
V2777
End Addr.
Chapter 5: Standard RLL Instructions - Table
Operand Data Type
V-memory
V-memory
On when the Find Block instruction was executed but did not find the block of data in
table specified.
Start Addr.
V3000
32 bytes
Block
V3017
DL205 User Manual, 4th Edition, Rev. B
DL260 Range
A
aaa
V
All (See page 3 - 56)
P
All (See page 3 - 56)
Description
Sample Program of FINDB
X1
FINDB
Aaaa
LD
K32
LD
K16
LDA
O2777
LDA
O2000
FINDB
V3000
END
5–173
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?