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
FFFFFFF0
FFFFFFFF
FFFFFFF0
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
01234567
MDH
MDL
R2
FFFFFFFF
FFFFFFFF
FEDC BA98
xxxx xxxx
01234567
Before execution After execution