41
2
3
4
5
6
7
8
2.4
B
asic instructio
ns
2.4.2
A
rithme
tic oper
ation instructions
Category
Inst
ructi
on Sym
b
o
l
Symbol
Processing Details
Execution
Condition
Num
b
er o
f Ba
sic S
tep
s
Sub
set
See f
o
r Des
cr
iptio
n
BCD 4-digit
addition and
subtraction
operations
B+
• (D)+(S) (D)
3
B+P
B+
• (S1)+(S2) (D)
4
-
B+P
B-
• (D)-(S) (D)
3
B-P
B-
• (S1)-(S2) (D)
4
-
B-P
BCD 8-digit
addition and
subtraction
operations
DB+
• (D+1, D)+(S+1, S) (D+1, D)
3
-
DB+P
DB+
• (S1+1, S1)+(S2+1, S2) (D+1, D)
4
-
DB+P
DB-
• (D+1, D)-(S+1, S) (D+1, D)
3
-
DB-P
DB-
• (S1+1, S1)-(S2+1, S2) (D+1, D)
4
-
DB-P
BCD 4-digit
multiplication
and
division
operations
B*
• (S1) (S2) (D+1,D)
4
B*P
B/
• (S1) / (S2) Quotient(D), Remainder (D+1)
4
B/P
BCD 8-digit
multiplication
and
division
operations
DB*
• (S1+1,S1) (S2+1,S2) (D+3,D+2,D+1,D)
4
-
DB*P
DB/
• (S1+1, S1) / (S2+1, S2) Quotient (D+1, D),
Remainder (D+3, D+2)
4
DB/P
B+
D
S
B+
P
S D
B+
S
1
S
2
D
B+
P
S
1
S
2
D
B
D
S
B
D
S
P
B
S
1
S
2
D
B
S
1
S
2
D
P
D
B+
S D
D
B+
P
S D
D
B+
S
1
S
2
D
D
B+
P
S
1
S
2
D
D
B
S D
D
B
S D
P
D
B
S
1
S
2
D
D
B
S
1
S
2
D
P
B
S
1
S
2
D
B
S
1
S
2
D
P
B/
S
1
S
2
D
B/
P
S
1
S
2
D
D
B
S
1
S
2
D
D
B
S
1
S
2
D
P
D
B/
S
1
S
2
D
D
B/
P
S
1
S
2
D