ctc1
Move control word to FPU
Copies integer register $t1 into an FPU control register.
Forms
ctc1 ,
Operands
$t1- Any general-purpose register,
$0to$31, using its numeric or named spelling, such as$8or$t0($zerois$0;$rais$31). $f31$f31here names the floating-point control and status register (FCSR), containing the rounding mode and exception flags.
Register 31 is FCSR and register 25 is FCCR. Only the condition code bits take effect; the rounding mode and exception fields are ignored because this simulator always rounds to nearest and does not track FP exceptions.
# Set FPU control/status to zero and read it back. Inspect $t1: 0.
li $t0, 0
ctc1 $t0, $f31
cfc1 $t1, $f31