BTS Bit Test and Set Flags: O D I T S Z A P C
- - - - - - - - *
BTS destination,source CPU: 386+
Logic CF ← bit, bit ← 1
The source specifies a bit index in the destination operand.
BTS copies that bit to the carry flag and then sets it in
destination.
Opcode Format
0F AB BTS r/m16,r16
0F AB BTS r/m32,r32
0F BA /5 ib BTS r/m16,imm8
0F BA /5 ib BTS r/m32,imm8
Length and timing
Operands Bytes 8088 186 286 386 486 Pentium
reg, reg 3 6 6 7 NP
mem, reg 3+d(0,1,2,4) 13 13 13 NP
reg, imm8 3+i(1) 6 6 7 NP
mem, imm8 3+d(0,1,2,4)+i(1) 8 8 8 NP