DL205 User Manual, 4th Edition, Rev. B
5–172
Chapter 5: Standard RLL Instructions - Table
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The example to the right shows a table of two words at V3000
and logically ORs it with K8888. The copy of the table at
V3100 shows the result of the OR operation for each word.
The program to the right performs the ORMOV 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 address of the
source table, using the LDA instruction. Then we load
the data into the accumulator to be ORed with the table.
In the ORMOV command, we specify the table
destination, V3100.
The example to the right shows a table of two words at V3000
and logicall XORs it with K3333. The copy of the table at
V3100 shows the result of the XOR operation for each word.
The ladder program example for the XORMOV is similar to
the one above for the ORMOV. Just use the XORMOV
instruction. On the handheld programmer, you must use the
SHFT key and spell “XORMOV” explicitly.
1 1 1 1
1 1 1 1
9 9 9 9
9 9 9 9
V
3
000
V
3
1
00
O
R
M
O
V
K
8888
Handheld Programmer Keystrokes
STR
$
S
H
F
T
AND
ST
L
3
D
O
RST
M
I
N
ST
#
O
P
R
EV
0
A
E
N
T
2
C
0
A
0
A
E
N
T
S
H
F
T
AND
ST
L
3
D
3
D
0
A
0
A
E
N
T
S
H
F
T
AND
ST
L
3
D
P
R
EV
8
I
E
N
T
8
I
8
I
8
I
O
R
Q
3
D
S
H
F
T
AND
V
1
B
0
A
0
A
E
N
T
1 1 1 1
1 1 1 1
2 2 2 2
2 2 2 2
V
3
000
V
3
1
00
X
O
R
M
O
V
K
3333
X0
DirectSOFT 32
L
D
K
2
L
D
A
0
3
000
L
D
K
8888
O
RM
O
V
0
3
1
00
L
oad
t
h
e c
ons
t
an
t
valu
e 2
(H
e
x)
i
n
t
o
t
h
e
low
er
1
6
b
it
s
of
t
h
e
a
cc
umula
t
o
r
.
C
onv
ert
o
ct
al
3
000
t
o
H
E
X
and
load
t
h
e
valu
e i
n
t
o
t
h
e
a
cc
umula
t
o
r
.
T
h
i
s
i
s
t
h
e
t
abl
e
b
e
g
i
nn
i
n
g
.
L
oad
t
h
e c
ons
t
an
t
valu
e
8888
(H
e
x.)
i
n
t
o
t
h
e
low
er
1
6
b
it
s
of
t
h
e
a
cc
umula
t
o
r
.
C
o
py
t
h
e t
abl
e t
o
V
3
1
00
,
O
R
i
n
g
it
s
c
on
te
n
t
s
w
it
h
t
h
e
a
cc
umula
t
o
r
as
it i
s
w
ritte
n.
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
ORST
M
INST#
O
PREV
0
A
ENT
2
C
0
A
0
A
ENT
SHFT
ANDST
L
3
D
3
D
0
A
0
A
ENT
SHFT
ANDST
L
3
D
PREV
6
G
ENT
6
G
6
G
6
G
AND
V
3
D
SHFT
AND
V
1
B
0
A
0
A
ENT
LD
K2
X0
Direct
SOFT
Load the constant value 2
(Hex.) into the lower 16
bits of the accumulator.
Convert otal 3000 to HEX
and load the value into the
accumulator. This is the
table beginning.
Load the constant value
6666 (Hex.) into the lower
16 bits of the accumulator.
Copy the table to V3100,
ANDing its contents with the
accumulator as it is written.
LDA
0 3000
LD
K6666
ANDMOV
0 3100