129
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
Example: DIV0S R2
Example: Actual use MDL ÷ R2 = MDL (quotient) ... MDH (remainder), signed calculation
MDH
MDL
D1 D0 T
SCR SCR
xx0
D1 D0 T
110
R2
0FFF FFFF
MDH
MDL
R2
FFFF FFF0
FFFF FFFF
FFFF FFF0
0000 0000
0FFF FFFF
Before execution After execution
Instruction bit pattern : 1001 0111 0100 0010
DIV0S R2
DIV1 R2
32 DIV1s are arranged
DIV1 R2
...
...
DIV1 R2
DIV2 R2
DIV3
DIV4S
MDH
MDL
D1 D0 T
SCR SCR
xx0
D1 D0 T
110
R2
0123 4567
MDH
MDL
R2
FFFF FFFF
FFFF FFFF
FEDC BA98
xxxx xxxx
0123 4567
Before execution After execution