DL205 User Manual, 4th Edition, Rev. B
5–102
Chapter 5: Standard RLL Instructions - Math
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Add Binary Double (ADDBD)
Add Binary Double is a 32-bit instruction that adds the binary
value in the accumulator with the value (Aaaa), which is either
two consecutive V-memory locations or an 8-digit (max.) binary
constant. The result resides in the accumulator.
NOTE:
Status flags are valid only until another instruction uses the same flag.
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.
The value in the accumulator is copied to V1500 and V1501 using the Out Double
instruction.
ý
ý
ý
þ
230
240
2
5
0
-1
2
6
0
ADDBD
A aaa
LDD
V1400
X1
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
1 1
1 0 0 0
0 1
0 0 0 0
A
A
(Accumulator)
+ 1
0
0 0
C
0
0 A 0 1
V1500
0
(V1421 and V1420)
C
V1400
A 1 1
V1401
V1501
1 0 0 0
0 0 0
C 0 1 0
Acc.
Load the value in V1400
and V1401 into the
accumulator
LDD
BIN
K2561
Use either OR Constant
V-memory
Direct
S
O
F
T
STR
LD
OUT
ADD
SHFT
D
SHFT
SHFT
D
SHFT
SHFT
D
SHFT
B
H
andheld
P
ro
g
rammer Keystro
k
es
1
1
1
4
0
0
2
1
4
0
5
0
0
Discrete Bit Flags
Description
SP63
On when the result of the instruction causes the value in the accumulator to be zero.
SP66
On when the 16-bit addition instruction results in a carry.
SP67
On when the 32-bit addition instruction results in a carry.
SP70
On anytime the value in the accumulator is negative
SP73
On when a signed addition or subtraction results in an incorrect sign bit.
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-FFFFFFFF
DS
Used
HPP Used