DL205 User Manual, 4th Edition, Rev. B
5–104
Chapter 5: Standard RLL Instructions - Math
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Subtract Binary Double (SUBBD)
Subtract Binary Double is a 32-bit instruction that subtracts
the binary value (Aaaa), which is either two consecutive
V-memory locations or an 8-digit (max.) binary constant,
from the binary value in the accumulator. 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 V1420 and V1421 is
subtracted from the binary value in the accumulator using the Subtract 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
SUBBD
A aaa
LDD
V1400
X1
SUBBD
V1420
The binary value in V1420 and
V1421 is subtracted from the
binary value in the accumulator
OUTD
V1500
Copy the value in the
accumulator to V1500
and V1501
F E
0 0 0 5
F F
0 0 0 6
6
0
(V1421 and V1420)
0
0
E
0 0
E
6
0 0 F F (Accumulator)
V1500
0
V1400
6 F E
V1401
V1501
0 0 0 5
0 0 0
1 A 0 1
Acc.
Use either OR Constant
V-memory
LDD
BIN
K393471
Load the value in V1400
and V1401 into the
accumulator
-
Direct
SOFT
STR
S
H
FT
S
H
FT
S
H
FT
S
H
FT
OUT
ENT
ENT
ENT
ENT
1
S
L
D
1
4
2
D
D
1
4
U
B
0
1
0
B
5
0
D
0
0
H
andheld
P
ro
g
rammer Keystro
k
es
Discrete Bit Flags
Description
SP63
On when the result of the instruction causes the value in the accumulator to be zero.
SP64
On when the 16-bit subtraction instruction results in a borrow.
SP65
On when the 32-bit subtraction instruction results in a borrow.
SP70
On anytime the value in the accumulator is negative.
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