x86 Assembly Language Reference Manual

Bit Test And Set (bts)

bts{wl}      imm8, r/m[16|32]
bts{wl}      reg[16|32], r/m[16|32]
Operation

BIT[LeftSRC, RightSRC] -> CF

0 -> BIT[LeftSRC, RightSRC]

Description

The value of the first operand (base) and the second operand (bit offset) are saved by bts into the carry flag and then it stores 1 in the bit.

Example
btsl $253, 4(%edi)
 btsl $edx, 4(%edi)