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>btr bit test and reset (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]
BTR               Bit Test and Reset (386)           Flags: O D I T S Z A P C
                                                                            *
BTR destination, source

           Logic:          CF . bit, bit . 0

     The Bit Test instructions manipulate individual bits. The source
     operand specifies the bit position in the destination operand. BTR
     copies that bit to the carry flag, and then resets it (sets it to 0) in
     destination.

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

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

See Also: BSF BSR BT BTC BTS

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