Toshiba TX39 user manual MFHI, Mflo Instruction Format and Description

Models: TX39

1 246
Download 246 pages 24.89 Kb
Page 39
Image 39

Architecture

Table 3-7. Multiply/Divide Instructions

(a) MULT, MULTU, DIV, DIVU

Instruction

Format and Description

 

 

 

 

 

 

 

 

 

op

 

rs

 

rt

 

0

funct

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Multiply

MULT rs, rt

 

 

 

 

 

 

 

 

 

 

Multiply the contents of registers rs and rt as two's complement integers, and

 

store the doubleword (64-bit) result in multiply/divide registers HI and LO.

Multiply

MULTU rs, rt

 

 

 

 

 

 

 

 

 

Unsigned

Multiply the contents of registers rs and rt as unsigned integers, and store the

 

doubleword (64-bit) result in multiply/divide registers HI and LO.

 

 

Divide

DIV rs, rt

 

 

 

 

 

 

 

 

 

 

Divide register rs by register rt as two's complement integers. Store the 32-bit

 

quotient in LO, and the 32-bit remainder in HI.

 

 

 

 

 

Divide

DIVU rs, rt

 

 

 

 

 

 

 

 

 

Unsigned

Divide register rs by register rt as unsigned integers.

Store the 32-bit quotient

 

in LO, and the 32-bit remainder in HI.

 

 

 

 

 

 

 

 

(b) MFHI, MFLO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction

Format and Description

 

 

 

 

 

 

 

 

 

op

 

0

 

rd

 

0

funct

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Move From HI

MFHI rd

 

 

 

 

 

 

 

 

 

 

Store the contents of multiply/divide register HI in register rd.

 

 

Move From

MFLO rd

 

 

 

 

 

 

 

 

 

LO

Store the contents of multiply/divide register LO in register rd.

 

 

 

(c) MTHI, MTLO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction

Format and Description

 

 

 

 

 

 

 

 

 

op

 

rs

 

 

 

0

funct

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Move To HI

MTHI rs

 

 

 

 

 

 

 

 

 

 

Store the contents of register rs in multiply/divide register HI.

 

 

Move To LO

MTLO rs

 

 

 

 

 

 

 

 

 

 

Store the contents of register rs in multiply/divide register LO.

 

 

30

Page 39
Image 39
Toshiba TX39 user manual MFHI, Mflo Instruction Format and Description, MTHI, Mtlo Instruction Format and Description