Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
BT Instruction
 Detail Key                               Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Title:    Bit Tests                             Flags: O D I T S Z A P C
            80386/486 Only                               ═════════════════
                                                                         ±
  Syntax:   BT dest,src
            BTC dest,src
            BTR dest,src
            BTS dest,src
 
  See also: .386
 
  Description:
 
     Copies the value of a specified bit into the carry flag, where it
     can be tested by a JC or JNC instruction. The destination operand
     specifies the value in which the bit is located; the source
     operand specifies the bit position.
 
     BT copies the bit to the flag. BTC copies the bit and complements
     (toggles) it in the destination. BTR copies the bit and resets
     (clears) it in the destination. BTS copies the bit and sets it in
     the destination.
                                    -♦-