131
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
Example: DIV0U R2
Example: Actual use MDL ÷ R2 = MDL (quotient) ... MDH (remainder), unsigned calculation
MDH
MDL
D1 D0 T
SCR SCR
xx0
D1 D0 T
000
R2
00FF FFFF
MDH
MDL
R2
0FFF FFF0
0000 0000
0FFF FFF0
0000 0000
00FF FFFF
Before execution After execution
Instruction bit pattern : 1001 0111 0101 0010
DIV0U R2
DIV1 R2
32 DIV1s are arranged
DIV1 R2
...
...
DIV1 R2
MDH
MDL
D1 D0 T
SCR SCR
xx0
D1 D0 T
000
R2
0123 4567
MDH
MDL
R2
0000 00E0
0000 0078
FEDC BA98
xxxx xxxx
0123 4567
Before execution After execution