Multiply/Divide Instructions - NEC uPD98502 User Manual

Network controller
Table of Contents

Advertisement

Instruction
Multiply
MULT rs, rt
The contents of registers rt and rs are multiplied, treating both operands as 32-bit signed integers. The
64-bit result is stored into special registers HI and LO. In the 64-bit mode, the operand must be sign
extended.
Multiply Unsigned
MULTU rs, rt
The contents of registers rt and rs are multiplied, treating both operands as 32-bit unsigned integers.
The 64-bit result is stored into special registers HI and LO. In the 64-bit mode, the operand must be
sign extended.
Divide
DIV rs, rt
The contents of register rs are divided by that of register rt, treating both operands as 32-bit signed
integers. The 32-bit quotient is stored into special register LO, and the 32-bit remainder is stored into
special register HI. In the 64-bit mode, the operand must be sign extended.
Divide Unsigned
DIVU rs, rt
The contents of register rs are divided by that of register rt, treating both operands as 32-bit unsigned
integers. The 32-bit quotient is stored into special register LO, and the 32-bit remainder is stored into
special register HI. In the 64-bit mode, the operand must be sign extended.
Move From HI
MFHI rd
The contents of special register HI are loaded into register rd.
Move From LO
MFLO rd
The contents of special register LO are loaded into register rd.
Move To HI
MTHI rs
The contents of register rs are loaded into special register HI.
Move To LO
MTLO rs
The contents of register rs are loaded into special register LO.
CHAPTER 2 V
Table 2-12. Multiply/Divide Instructions
Format and Description
Preliminary User's Manual S15543EJ1V0UM
4120A
R
rs
rt
op
rd
sa
funct
75

Advertisement

Table of Contents
loading

Table of Contents