Chapter 5: Standard RLL Instructions - Accumulator/Stack Load and Output Data
Out Formatted (OUTF)
The Out Formatted instruction outputs 1 to 32 bits
230
from the accumulator to the specified discrete memory
240
locations. The instruction requires a starting location
250-1
(Aaaa) for the destination and the number of bits
260
(Kbbb) to be output.
DS
Used
Operand Data Type
HPP Used
Constant
In the following example, when C0 is on, the binary pattern of C10–C16 (7 bits) will be
loaded into the accumulator using the Load Formatted instruction. The lower 7 bits of the
accumulator are output to Y20–Y26 using the Out Formatted instruction.
DirectSOFT
C0
LDF
Load the status of 7
consecutive bits (C10–C16)
into the accumulator
OUTF
Copy the value of the
specified number of bits
from the accumulator to
Y20–Y26
Handheld Programmer Keystrokes
$
C
A
SHFT
STR
2
L
D
F
SHFT
ANDST
3
5
C
B
A
SHFT
2
1
0
GX
F
SHFT
OUT
5
C
A
H
ENT
2
0
7
DL240 Range
A
aaa
K
C10
K7
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
0
0 0
0 0 0 0 0 0 0 0 0
Y20
Accumulator
K7
ENT
0
H
ENT
7
DL250-1 Range
bbb
aaa
bbb
1-32
1-32
Location
Constant
C10
K7
The unused accumulator bits are set to zero
15 14 13 12 11 10 9 8 7
0 0 0 0
Location
Constant
Y20
K7
DL205 User Manual, 4th Edition, Rev. B
OUTF
A aaa
K
bbb
DL260 Range
aaa
bbb
1-32
C16 C15 C14 C13 C12 C11 C10
OFF
OFF
OFF
ON
ON
6 5
4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 0
Y26 Y25 Y24
Y23 Y22
OFF
OFF
OFF
ON
ON
1
2
3
4
5
6
7
8
ON
OFF
9
10
11
Y21 Y20
12
ON
OFF
13
14
A
B
C
D
5–67
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?