# `csrc`

[RISC-V Documentation](https://asm-editor.specy.app/documentation/risc-v.md) › [Instructions](https://asm-editor.specy.app/documentation/risc-v/instruction.md)

Web page: https://asm-editor.specy.app/documentation/risc-v/instruction/csrc

**Clear bits in control and status register** · Pseudo-instruction

Category: System

Clears the CSR bits that are set in a register, leaving the other bits unchanged.

[RISC-V manual: csrrc](https://docs.riscv.org/reference/isa/v20260120/unpriv/zicsr.html#norm:csrrc_op)

## Forms

- `csrc t1, csr`
  - `csrc t1, fcsr` → `csrrc zero, csr, t1`

## Operands

- `t1`: Any integer register, `x0` to `x31`, or its named alias, such as `zero`, `t0` or `t6`.
- `csr`: A control and status register, written by name or number, such as `fcsr`, `fflags`, `frm`, `cycle`, `time`, `instret`, `ustatus`, `uepc`, `ucause` or `utval`. See the [supported registers](https://asm-editor.specy.app/documentation/risc-v/registers.md).

## Example

```riscv
# Initialize fcsr to 1, apply csrc with mask 1, then read fcsr into t2 (0).
.text
li t3, 1
csrw t3, fcsr
li t1, 1
csrc t1, fcsr
csrr t2, fcsr
```
