DL205 User Manual, 4th Edition, Rev. B
5–95
Chapter 5: Standard RLL Instructions - Math
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Multiply Double (MULD)
Multiply Double is a 32-bit instruction that multiplies the 8-
digit BCD value in the accumulator by the 8-digit BCD value
in the two consecutive V-memory locations specified in the
instruction. The lower 8 digits of the results reside in the
accumulator. Upper digits of the result reside in the
accumulator stack.
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on, the constant Kbc614e hex will be loaded into the
accumulator. When converted to BCD the number is ”12345678”. That number is stored in
V1400 and V1401. After loading the constant K2 into the accumulator, we multiply it times
12345678, which is 24691356.
Operand Data Type DL250-1 Range DL260 Range
A aaa aaa
V-memory V All V-mem (See page 3 - 55) All V-mem (See page 3 - 56)
Pointer P All V-mem (See page 3 - 55) All V-mem (See page 3 - 56)
Discrete Bit Flags Description
SP63 On when the result of the instruction causes the value in the accumulator to be zero.
SP70 On anytime the value in the accumulator is negative.
SP75 On when a BCD instruction is executed and a NON-BCD number was encountered.
DirectSOFT
Handheld Programmer Keystrokes
LDD
Kbc614e
X1
Load the hex equivalent
of 12345678 decimal into
the accumulator.
BCD
Convert the value to
BCD format. It will
occupy eight BCD digits
(32 bits).
OUTD
V1400
Output the number to
V1400 and V1401 using
the OUTD instruction.
3562469
678
(Accumulator)
1 2 3 4 5 6 7 8
1
(Accumulator)
V1402
1
5
V1400
356
V1403
2469
2
Acc.
LD
K2
Load the constant K2
into the accumulator.
MULD
V1400
Multiply the accumulator
contents (2) by the
8-digit number in V1400
and V1401.
OUTD
V1402
Move the result in the
accumulator to V1402
and V1403 using the
OUTD instruction.
2341
V1401
STR
$
SHFT
ANDST
L
3
D
SHFT
ORST
M
ISG
U
ANDST
L
OUT
GX
SHFT
3
D
1
B
ENT
6
G
1
B
4
E
ENT
ENT
ENT
3
D
PREV SHFT
1
B
2
C
SHFT SHFT
4
E
SHFT
1
B
2
C
3
D
OUT
GX
SHFT
3
D
1
B
4
E
0
A
ENT
0
A
ENT
SHFT
ANDST
L
3
D
PREV ENT
2
C
3
D
1
B
4
E
0
A
0
A
1
B
4
E
0
A
2
C
X
DS Used
HPP Used