English
Language : 

TSC87251G2D_14 Datasheet, PDF (29/77 Pages) ATMEL Corporation – Compare and Conditional Jump Instructions
AT/TSC8x251G2D
Table 24. Summary of Multiply, Divide and Decimal-adjust Instructions
MultiplyMUL AB(B:A) ← (A)×(B)
MUL <dest>, <src>extended dest opnd ← dest opnd × src opnd
DivideDIV AB(A) ← Quotient ((A) ⁄ (B))
(B) ← Remainder ((A) ⁄ (B))
DivideDIV <dest>, <src>ext. dest opnd high ← Quotient (dest opnd ⁄ src opnd)
ext. dest opnd low ← Remainder (dest opnd ⁄ src opnd)
Decimal-adjust ACCDA AIF [[(A)3:0 > 9] ∨ [(AC) = 1]]
for Addition (BCD) THEN (A)3:0 ← (A)3:0 + 6 !affects CY;
IF [[(A)7:4 > 9] ∨ [(CY) = 1]]
THEN (A)7:4 ← (A)7:4 + 6
Mnemonic
<dest>,
<src>(1)
Comments
Binary Mode Source Mode
Bytes States Bytes States
AB
Multiply A and B
1
5
1
5
MUL
Rmd, Rms Multiply byte register and byte register
3
6
2
5
WRjd, WRjs Multiply word register and word register
3
12
2
11
AB
Divide A and B
1
10
1
10
DIV
Rmd, Rms Divide byte register and byte register
3
11
2
10
WRjd, WRjs Divide word register and word register
3
21
2
20
DA
A
Decimal adjust ACC
1
1
1
1
Note: 1. A shaded cell denotes an instruction in the C51 Architecture.
29
4135F–8051–11/06