DL205 User Manual, 4th Edition, Rev. B
5–150
Chapter 5: Standard RLL Instructions - Table
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Fill (FILL)
The Fill instruction fills a table of up to 255 V-memory
locations with a value (Aaaa), which is either a V-memory
location or a 4-digit constant. The function parameters are
loaded into the first level of the accumulator stack and the
accumulator by two additional instructions. Listed below are the steps necessary to program
the Fill function.
Step 1: Load the number of V-memory locations to be filled into the first level of the accumulator
stack. This parameter must be a HEX value, 0 to FFFF.
Step 2: Load the starting V-memory location for the table into the accumulator. This parameter must
be a HEX value.
Step 3: Insert the Fill instructions which specifies the value to fill the table with.
Helpful hint: — For parameters that require HEX values when referencing memory locations,
the LDA instruction can be used to convert an octal address to the HEX equivalent and load
the value into the accumulator.
In the following example, 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 on the first level of the accumulator stack when the Load Address instruction is
executed. The octal address 1600 (V1600) is the starting location for the table and is loaded
into the accumulator using the Load Address instruction. The value to fill the table with
(V1400) is specified in the Fill instruction.
FILL
A aaa
ý
ý
ý
þ
230
240
2
5
0
-1
2
6
0
S
ta
n
d
a
rd
R
L
L
In
s
tr
u
c
ti
o
n
s
Handheld Programmer Keystrokes
Direct
SOFT
LD
K
4
X1
L
oad the
c
onstant
v
al
u
e
4
(
H
EX)
i
nto the lo
w
er
16
bi
ts
o
f
the a
ccu
m
u
lator
LDA
O
1600
C
on
v
ert the o
c
tal address
1600
to H
EX
380
and load the
v
al
u
e
i
nto the a
ccu
m
u
lator
FILL
V1400
Fi
ll the ta
b
le
wi
th the
v
al
u
e
i
n
V1400
V1576
V1577
V1600
V1601
V1602
V1603
V1604
V1605
V1400
STR
$
S
H
FT
ANDST
L
3
D
S
H
FT
5
F
8
I
ANDST
L
P
REV
ANDST
L
1
B
ENT
4
E
0
A
0
A
ENT
S
H
FT
ANDST
L
3
D
1
B
6
G
0
A
ENT
0
A
1
B
4
E
0
A
ENT
2
5
0
0
2
5
0
0
2
5
0
0
2
5
0
0
2
5
0
0
Operand Data Type
DL260 Range
A
aaa
V-memory V All (See page 3 - 56)
Pointer P All V mem (See page 3 - 56)
Constant K 0-FFFF
Discrete Bit Flag
Description
SP53
On if V-memory address is out of range
DS
Used
HPP Used