# `orc.b`

[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/orc.b

**Bitwise OR combine within bytes**

Category: Logic

Sets each byte of the first register to all 1 bits if the matching byte of the second is nonzero, and to 0 otherwise.

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

## Forms

- `orc.b t1, t2`

## 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`.

## Description

Used to find a zero byte inside a word

## Example

```riscv
.text
li t0, 16777728
# t0=0x01000200; orc.b writes 4278255360 (0xFF00FF00) to t2.
orc.b t2, t0
```
