DL205 User Manual, 4th Edition, Rev. B
5–147
Chapter 5: Standard RLL Instructions - Table
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Copy Data From V-Memory to a Data Label Area
In the following example, data is copied from V-memory to a data label area. When X1 is on,
the constant value (K4) is loaded into the accumulator using the Load instruction. This value
specifies the length of the table and is placed in the second stack location after the next Load
and Load Address instructions are executed. The constant value (K2) is loaded into the
accumulator using the Load instruction. This value specifies the offset for the source and
destination data, and is placed in the first stack location after the Load Address instruction is
executed. The source address where data is being copied from is loaded into the accumulator
using the Load Address instruction. The MOVMC instruction specifies the destination
starting location and executes the copying of data from V-memory to the data label area.
WARNING: The offset for this usage of the instruction starts at 0. If the offset (or the specified data
table range) is large enough to cause data to be copied from V-memory to beyond the end of the DLBL
area, then anything after the specified DLBL area will be replaced with invalid instructions.
þ
þ
ý
ý
230
240
250-1
260
6 1 5 1
C O N
8 8 4 5
C O N
2 5 0 0
C O N
6 8 3 5
C O N
K
N
K
N
K
N
K
N
Direct
S
O
FT
Handheld Programmer
K
eystrokes
LD
K4
X
1
Load the value
4
into the
accumulator specifying the
number of locations to be
copied.
LD
K2
Load the value
2
into the
accumulator specifying the
offset for source and
destination locations.
LDA
O
2000
V
2001
4 5 3 2
V
2002
6 1 5 1
V
2003
8 8 4 5
V
2004
2 5 0 0
V
1
777
X X X X
V
2000
1 2 3 4
Data Label Area
Programmed
After the E
N
D
Instruction
M
O
VM
C
K1
K1
is the data label
destination area where the
data will be copied to
V
2005
6 8 3 5
V
2006
X X X X
DLBL
K1
O
ffset
7
0 4 1
C O N
4 6 4 8
C O N
K
N
K
N
O
ffset
C
onvert octal
2000
to HEX
400
and load the value into
the accumulator. This
specifies the source location
where the data will be
copied from
STR
$
SHFT
A
N
DST
L
3
D
SHFT
JMP
K
E
N
T
4
E
SHFT
A
N
DST
L
3
D
SHFT
O
RST
M
A
N
D
V
I
N
ST#
O
O
RST
M
2
C
SHFT
E
N
T
0
A
2
C
0
A
0
A
0
A
E
N
T
JMP
K
1
B
SHFT
A
N
DST
L
3
D
SHFT
JMP
K
E
N
T
2
C
1
B
E
N
T
DS
Used
HPP Used