Add Binary
Add Binary is a 16 bit instruction that adds
(ADDB)
the unsigned 2's complement binary value
in the lower 16 bits of the accumulator with
an unsigned 2's complement binary value
(Aaaa), which is either a V memory
location or a 16-bit constant. The result
can be up to 32 bits (unsigned 2's
complement)
accumulator.
Operand Data Type
Vmemory
Pointer
Constant
Discrete Bit Flags
SP63
SP66
SP67
SP70
SP73
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 will be loaded into the
accumulator using the Load instruction. The binary value in the accumulator will be
added to the binary value in V1420 using the Add Binary instruction. The value in the
accumulator is copied to V1500 and V1501 using the Out instruction.
DirectSOFT Display
Handheld Programmer Keystrokes
$
B
B
and
resides
DL05 Range
A
aaa
V
All (See p. 4–28)
P
All V mem (See p. 4–28)
K
0–FFFF
Description
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 a incorrect sign bit.
X1
LD
V1400
Load the value in V1400 into the
lower 16 bits of the accumulator
ADDB
V1420
The binary value in the
accumulator is added to the
binary value in V1420
OUTD
V1500
Copy the value in the lower
16 bits of the accumulator to
V1500 and V1501
B
ENT
SHFT
STR
1
E
A
A
ENT
1
4
0
0
E
C
A
ENT
1
4
2
0
Standard RLL Instructions
in
the
V1400
0
A
0
The unused accumulator
bits are set to zero
0
0
0
0
0
A
0
+
1
2
C
1
C C
Acc.
1
C C
V1500
L
D
ANDST
3
A
D
D
B
SHFT
0
3
3
1
GX
D
B
SHFT
OUT
3
1
Math Instructions
ADDB
A aaa
5
5
(Accumulator)
(V1420)
4
9
9
F
A
A
ENT
5
0
0
5–73
Need help?
Do you have a question about the DL05 and is the answer not in the manual?