
Chapter 3. Instructions
3-13
3.2.9
BCD arithmetic instructions
Mnemonic
symbol
Function
No.
Ladder symbol
Unit
Contents of processing
CPU
Page
ADDB
ADDBP
130
131
16 bits
BCD addition
[ S1 ] + [ S2 ] [ D ]
○
5-52
DADDB
DADDBP
132
133
32 bits
BCD addition
[S1+1,S1]+[S2+1,S2] [D+1,D]
○
5-52
SUBB
SUBBP
134
135
16 bits
BCD subtraction
[ S1 ] - [ S2 ] [ D ]
○
5-54
DSUBB
DSUBBP
136
137
32 bits
BCD subtraction
[S1+1,S1]-[S2+1,S2] [D+1,D]
○
5-54
MULB
MULBP
140
141
16 bits
BCD multiplication
[ S1 ]
×
[ S2 ] [ D+1, D ]
[D+1] : High word, [D] : Low word
○
5-56
DMULB
DMULBP
142
143
32 bits
BCD multiplication
[S1+1, S1]
×
[S2+1, S2]
[D+3,D+2,D+1,D]
[D+3,D+2] = Higher 2 words
[D+1, D] = Lower 2 words
○
5-56
DIVB
DIVBP
144
145
16 bits
BCD division
[ S1 ]
÷
[ S2 ] [ D ]
[D+1] = Remainder
[D] = Quotient
○
5-58
DDIVB
DDIVBP
146
147
32 bits
BCD division
[S1+1, S1]
÷
[S2+1, S2]
[D+3, D+2, D+1, D]
[D+3, D+2] = Remainder
[D+1, D] = Quotient
○
5-58
S1 S2
D
DMULB
DMULBP
S1 S2 D
S1 S2
S1 S2
D
DIVB
DIVBP
D
S1 S2
D
DDIVB
DDIVBP
S1 S2
D
S1 S2
S1 S2
D
MULB
MULBP
D
S1 S2
S1 S2
D
ADDB
ADDBP
D
S1 S2
D
DADDB
DADDBP
S1 S2 D
S1 S2
S1 S2
D
SUBB
SUBBP
D
S1 S2
D
DSUBB
DSUBBP
S1 S2 D