# `movf.s`

[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/movf.s

**Move single-precision if FP condition false**

Category: Floating point

Copies the single-precision value in the second register into the first if the FP condition flag (flag 0 by default) is false.

## Forms

- `movf.s $f0, $f1`

- `movf.s $f0, $f1, cc` · Copies the single-precision value in $f1 into $f0 if FP condition flag N (specified by the immediate) is false (0).

## Operands

- `$f0`: Any floating-point register, `$f0` to `$f31`.
- `$f1`: A floating-point register. It may be the same register as `$f0`.
- `cc`: A floating-point condition flag number, `0` to `7`. Comparisons set these flags; `bc1t` and `bc1f` test them.

## Example

```mips
.data
a: .float 1.0
b: .float 2.0
value: .float 2.0
.text
# movf.s copies only when condition flag 0 is false. Inspect $f6 remains 0 because flag 0 is true.
l.s $f0, a
l.s $f2, b
c.lt.s $f0, $f2
l.s $f2, value
movf.s $f6, $f2, 0
```
