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

           Logic:      CF . bit from destination at position source

     The Bit Test instructions manipulate individual bits. The source
     specifies a bit position in the destination operand. BT copies that
     bit to the carry flag.

  --------------------------------------------------------------------------
   Operands                   Clocks   Transfers  Bytes  Example
   BT register, immediate8    3  (386)     -        3    BT AX,3
   BT memory, immediate8      6  (386)     -        3    BT MEMLOC,3
   BT register, register      3  (386)     -        3    BT AX,BX
   BT memory, register        12 (386)     -        3    BT MEMLOC,AX
  --------------------------------------------------------------------------

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

See Also: BSF BSR BTC BTR BTS

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