Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>bts bit test and set (386) flags: o d i t s z a p c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
BTS               Bit Test and Set (386)             Flags: O D I T S Z A P C
                                                                            *
BTS destination, source

           Logic:          CF . bit, bit . 1

     The Bit Test instructions manipulate individual bits. The source
     operand specifies the bit position in the destination operand. BTS
     copies that bit to the carry flag and then sets it (makes it 1) in
     destination.

  --------------------------------------------------------------------------
   Operands                    Clocks  Transfers  Bytes  Example
   BTS register, immediate8    6  (386)    -        3    BTS AX,3
   BTS memory, immediate8      8  (386)    -        3    BTS MEMLOC,3
   BTS register, register      6  (386)    -        3    BTS AX,BX
   BTS memory, register        13 (386)    -        3    BTS MEMLOC,AX
  --------------------------------------------------------------------------

        Note:          Both memory and register operands can be either
                       16 bits or 32 bits.

See Also: BSF BSR BT BTC BTR

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson