DL205 User Manual, 4th Edition, Rev. B
5–171
Chapter 5: Standard RLL Instructions - Table
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
AND Move (ANDMOV)
The AND Move instruction copies data from a table to the
specified memory location, ANDing each word with the
accumulator data as it is written.
OR Move (ORMOV)
The Or Move instruction copies data from a table to the
specified memory location, ORing each word with the
accumulator contents as it is written.
Exclusive OR Move (XORMOV)
The Exclusive OR Move instruction copies data from a table to
the specified memory location, XORing each word with the accululator value as it is written.
The following description applies to the AND Move, OR Move, and Exclusive OR Move
instructions. A table is just a range of V-memory locations. These instructions copy the data
of a table to another specified location, preforming a logical operation on each word with the
accumulator contents as the new table is written.
Step 1: Load the length of the table (number of V-memory locations) into the first level of the
accumulator stack. This parameter must be a HEX value, 0 to FF.
Step 2: Load the starting V-memory location for the table into the accumulator. This parameter must
be a HEX value. You can use the LDA instruction to convert an octal address to hex.
Step 3: Load the BCD/hex bit pattern into the accumulator which will be logically combined with
the table contents as they are copied.
Step 4: Insert the AND Move, OR Move, or XOR Move instruction. This specifies the starting
location of the copy of the original table. This new table will automatically be the same length
as the original table.
The example table to the right contains BCD data as
shown (for demonstration purposes). Suppose we want to
move a table of two words at V3000 and AND it with
K6666. The copy of the table at V3100 shows the result
of the AND operation for each word.
The program on the next page performs the ANDMOV operation example above. It assumes
that the data in the table at V3000 – V3001 already exists. First we load the table length (two
words) into the accumulator. Next we load the starting addrss of the source table, using the
LDA instruction. Then we load the data into the accumulator to be ANDed with the table.
In the ANDMOV command, we specify the table destination, V3100.
Vaaa
ANDMOV
Vaaa
ORMOV
ý
ý
ý
þ
230
240
2
5
0
-1
2
6
0
Vaaa
XORMOV
3 3 3 3
F F F F
2 2 2 2
6 6 6 6
V
3
000
V
3
1
00
A
N
D
M
O
V
K
6666
Operand Data Type
DL260 Range
aaa
V-memory V
All (See page 3 - 56)
ý
ý
ý
þ
230
240
2
5
0
-1
2
6
0
DS
Used
HPP Used