mflo
Move from LO
Copies the special LO register into $t1.
Used in
- Arithmetic, logic and bitsMIPS assembly
- Multiply and divide with hi and loMIPS assembly
- Print a number in any base without helpMIPS assembly
- A bouncing ballMIPS assembly
Forms
mflo
Operands
$t1- Any general-purpose register,
$0to$31, using its numeric or named spelling, such as$8or$t0($zerois$0;$rais$31).
LO holds the lower 32 bits of a multiply result or the quotient from a divide. Always read HI/LO before executing another multiply or divide, as those instructions overwrite them.
# Read the initialized HI/LO result after multiplication. Inspect $t2: 42.
li $t0, 6
li $t1, 7
mult $t0, $t1
mflo $t2