Loop Control with CX Counter                         
  
    | 
       86/88  | 
    
       Y  | 
    
       186  | 
    
       Y  | 
    
       286  | 
    
       Y  | 
    
       386  | 
    
       Y  | 
    
       486  | 
    
       Y  | 
    
       LOOP short_label  | 
   
  
    | 
       Ovfl  | 
    
       N  | 
    
       Dir  | 
    
       N  | 
    
       Int  | 
    
       N  | 
    
       Trap  | 
    
       N  | 
    
       Sign  | 
    
       N  | 
    
       Zero  | 
    
       N  | 
    
       Aux  | 
    
       N  | 
    
       Prty  | 
    
       N  | 
    
       Carry  | 
    
       N  | 
   
     LOOP decrements CX by 1, then transfers control to short-label if CX
    is not 0.  Short-label must be within -128 to +127 bytes of the next
    instruction.
------------------------------------ Timing ----------------------------------
OpCode          Instruction             386     286     86
E2 cb           LOOP rel8               11+m    8,4     17,5
------------------------------------ Logic -----------------------------------
        CX = CX - 1
        if (CX <> 0) then
                JMP short_label
See Also LOOPE LOOPNE JCXZ JECXZ |