mfc1
Move from FP register to integer register
Copies the raw 32-bit bit-pattern stored in FP register $f1 into integer register $t1.
Used in
- Floating point and Coprocessor 1MIPS assembly
Forms
mfc1 ,
Operands
$t1- Any general-purpose register,
$0to$31, using its numeric or named spelling, such as$8or$t0($zerois$0;$rais$31). $f1- Any floating-point register,
$f0to$f31.
Useful for reading a single-precision float's bits or the result of 'floor.w.s', 'cvt.w.s', etc.
# Read back the initialized single value 1.0. Inspect $t0: 0x3F800000.
li $t1, 0x3F800000
mtc1 $t1, $f0
mfc1 $t0, $f0