Fujitsu FR81 Computer Hardware User Manual


 
FR81 Family
CM71-00105-1E FUJITSU MICROELECTRONICS LIMITED 31
CHAPTER 3 PROGRAMMING MODEL
3.3
Figure 3.3-19 Example of Multiplication Operation using Multiplication/Division Register (MDH, MDL)
Function during Division
Before starting the calculation, the dividend is stored in the Multiplication/Division register (MDH, MDL).
MDH: don’t care
MDL: dividend
When division is performed using any of the instructions DIV0S/DIV0U, DIVI1, DIV2, DIV3, DIV4S
meant for division, the result of division is stored in the Multiplication/Division register (MDH, MDL) as
follows.
MDH: remainder
MDL: quotient
Figure 3.3-20 shows an example of division operation using Multiplication/Division register (MDH, MDL).
Figure 3.3-20 Example of Division Operation using Multiplication/Division Register (MDH,MDL)
Before execution of instruction MUL R0,R1
12345678
H
76543210
H
R0
R1
???????? ????????
H
MDH, MDL
After execution of instruction MUL R0,R1
12345678
H
76543210
H
R0
R1
086A1C97 0B88D780
H
MDH, MDL
Before execution of stepwise division
12345678
H
Using R0
R0
???????? 76543210
H
MDH, MDL
After execution of s tepwise division
12345678
H
R0
091A2640 00000006
H
MDH, MDL