# `bseti`

[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/bseti

**Set bit by immediate**

Category: Logic

Copies the second register into the first with the bit numbered by the immediate set.

[RISC-V manual: bseti](https://docs.riscv.org/reference/isa/v20260120/unpriv/b-st-ext.html#insns-bseti)

## Forms

- `bseti t1, t2, imm6`

## Operands

- `t1`: Any integer register, `x0` to `x31`, or its named alias, such as `zero`, `t0` or `t6`.
- `t2`: An integer register. It may be the same register as `t1`.
- `imm6`: An unsigned shift count or bit number: `0` to `63` in RV64, or `0` to `31` in RV32.

## Example

```riscv
.text
li t0, 9
# t0=9, immediate 2; bseti writes 13 to t2.
bseti t2, t0, 2
```
