| 
 |  | 
                               Bit Test and Set                               
  
    | 
       86/88  | 
    
       N  | 
    
       186  | 
    
       N  | 
    
       286  | 
    
       N  | 
    
       386  | 
    
       Y  | 
    
       486  | 
    
       Y  | 
    
       BTS destination, source  | 
   
  
    | 
       Ovfl  | 
    
       N  | 
    
       Dir  | 
    
       N  | 
    
       Int  | 
    
       N  | 
    
       Trap  | 
    
       N  | 
    
       Sign  | 
    
       N  | 
    
       Zero  | 
    
       N  | 
    
       Aux  | 
    
       N  | 
    
       Prty  | 
    
       N  | 
    
       Carry  | 
    
       Y  | 
   
     The destination bit indexed by the source value is copied into the
    Carry Flag and then set in the destination.
------------------------------------ Timing ----------------------------------
OpCode          Instruction             386     286     86
0F AB           BTS r/m16, r16          6/13
0F AB           BTS r/m32, r32          6/13
0F BA/5 ib      BTS r/m16, imm8         6/8
0F BA/5 ib      BTS r/m32, imm8         6/8
------------------------------------ Logic -----------------------------------
        CF = bit (source) of destination
        bit (source) of destination = 1
See Also BSF BSR BT BTC BTR SETxx Flags |