Architecture

MADDU

Multiply/Add Unsigned

MADDU

 

31

26 25

21 20

16 15

11 10

6 5

0

 

 

MADD/MADDU

 

rs

 

rt

 

 

rd

 

0

 

MADDU

 

 

 

 

 

 

 

 

 

 

 

 

 

011100

 

 

 

 

 

 

 

 

00000

 

000001

 

 

6

5

5

 

 

5

 

5

 

6

 

Format :

MADDU rs, rt

MADDU rd, rs, rt

Description :

Multiplies the contents of general registers rs and rt, treating both values as unsigned , and puts the double-word result in special registers HI and LO. An overflow exception is never raised.

The low-order word of the multiplication result is put in general register rd and in special register LO, whereas the high-order word of the result is put in special register HI.

If rd is omitted in assembly language, 0 is used as the default value. To guarantee correct operation even if an interrupt occurs, neither of the two instructions following MADDU should be DIV or DIVU instructions which the HI and LO register contents.

Operation :

T:t (HI LO) + (0 GPR[rs])*( 0 GPR[rt])

LO t31..2 HI t63..32

GPR[rd] t31..0

Exceptions :

None

156

Page 167
Image 167
Toshiba TX39 user manual Maddu