Chapter 5: Standard RLL Instructions - Math
Add Binary Double (ADDBD)
1
Add Binary Double is a 32-bit instruction that adds the binary
230
value in the accumulator with the value (Aaaa), which is either
240
two consecutive V-memory locations or an 8-digit (max.) binary
2
250-1
constant. The result resides in the accumulator.
260
3
DS
Used
4
HPP Used
V-memory
Pointer
Constant.
5
Discrete Bit Flags
6
SP63
SP66
SP67
7
SP70
SP73
8
NOTE: Status flags are valid only until another instruction uses the same flag.
9
In the following example, when X1 is on, the value in V1400 and V1401 will be loaded into
the accumulator using the Load Double instruction. The binary value in the accumulator is
added with the binary value in V1420 and V1421 using the Add Binary Double instruction.
10
The value in the accumulator is copied to V1500 and V1501 using the Out Double
instruction.
11
12
13
14
A
B
C
D
5–102
DL205 User Manual, 4th Edition, Rev. B
Operand Data Type
A
V
P
K
On when the result of the instruction causes the value in the accumulator to be zero.
On when the 16-bit addition instruction results in a carry.
On when the 32-bit addition instruction results in a carry.
On anytime the value in the accumulator is negative
On when a signed addition or subtraction results in an incorrect sign bit.
Use either
V-memory
DirectSOFT
X1
LDD
V1400
Load the value in V1400
and V1401 into the
accumulator
ADDBD
V1420
The binary value in the
accumulator is added with the
value in V1420 and V1421
OUTD
V1500
Copy the value in the
accumulator to V1500
and V1501
Handheld Programmer Keystrokes
STR
1
LD
SHFT
D
SHFT
ADD
SHFT
B
OUT
SHFT
D
DL260 Range
aaa
All (See page 3 - 56)
All V mem (See page 3 - 56)
0-FFFFFFFF
Description
OR
Constant
L DD
K2561
BIN
+ 1
Acc.
1
4
0
D
SHFT
1
4
1
5
0
SHFT
ADDBD
V1401
V1400
0
0
0
0
0
A
0
1
(Accumulator)
0
0
0
0
0
A
0
1
0
0
0
C
0
1
0
(V1421 and V1420)
1
0
0
0
C
A
1
1
1
0
0
0
C
A
1
1
V1501
V1500
0
2
0
0
A aaa
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?