Does bseti access memory?
No. It reads integer register operands and writes rd only.
Set single bit by immediate index
BSETI uses opcode 0010011 (0x13), funct3 001, funct7 0010100. The rs1 field selects the source register, the 12-bit immediate provides the second operand, and rd selects the destination.
bseti is a Zbs single-bit set instruction. The bit index comes from the immediate field.
bseti is a Zbs single-bit set instruction. The bit index comes from the immediate field.
Understand this scenario with real code like «bseti x10, x11, 5 ; x10 = x11 | (1 << 5)».
No. It reads integer register operands and writes rd only.
The immediate encodes the bit position directly, with the legal range determined by XLEN.