bext

Operands

reg, reg, reg

Extract bit : Set t1 to the single bit of t2 numbered by the low bits of t3, as 0 or 1

Variants

  • Extract bit : Set t1 to the single bit of t2 numbered by the low bits of t3, as 0 or 1 bext t1,t2,t3
.text
li t0, 13
li t1, 2
# t0=13, t1=2; bext writes 1 to t2.
bext t2, t0, t1