# `ctc1`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/ctc1

**Move control word to FPU**

Category: Floating point

Copies the first register, an integer register, into the second, an FPU control register.

## Forms

- `ctc1 $t1, $f31`

## Operands

- `$t1`: Any general-purpose register, `$0` to `$31`, using its numeric or named spelling, such as `$8` or `$t0` (`$zero` is `$0`; `$ra` is `$31`).
- `$f31`: `$f31` here names the floating-point control and status register (FCSR), containing the rounding mode and exception flags.

## Description

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.

## Example

```mips
# Set FPU control/status to zero and read it back. Inspect $t1: 0.
li $t0, 0
ctc1 $t0, $f31
cfc1 $t1, $f31
```
