bts

Bit Test and Set

BTS r/m, r

Stores bit in CF and sets bit to 1.

Details

The Bit Test and Set instruction stores bit in CF and sets bit to 1.

Pseudocode Operation

CF <- bit(DEST, offset); set bit(DEST, offset)

Example

BTS rbx, rax

Encoding

Binary Layout
0F
+0
AB
+1
 
Format Legacy
Opcode 0F AB
Extension Base

Operands

  • dest
    Register or memory operand
  • src
    General-purpose register