| 
 |  | 
                               Loop While Equal                               
  
    | 
       86/88  | 
    
       Y  | 
    
       186  | 
    
       Y  | 
    
       286  | 
    
       Y  | 
    
       386  | 
    
       Y  | 
    
       486  | 
    
       Y  | 
    
       LOOPE/LOOPZ short_label  | 
   
  
    | 
       Ovfl  | 
    
       N  | 
    
       Dir  | 
    
       N  | 
    
       Int  | 
    
       N  | 
    
       Trap  | 
    
       N  | 
    
       Sign  | 
    
       N  | 
    
       Zero  | 
    
       N  | 
    
       Aux  | 
    
       N  | 
    
       Prty  | 
    
       N  | 
    
       Carry  | 
    
       N  | 
   
     Used after a CMP or SUB, LOOPE decrements CX by 1, then transfers
    control to short-label if the first operand of the CMP or SUB is equal
    to the second operand. Short-label must be within -128 to +127 bytes
    of the next instruction.
------------------------------------ Timing ----------------------------------
OpCode          Instruction             386     286     86
E1 cb           LOOPE rel8              11+m    8,4     17,6
------------------------------------ Logic -----------------------------------
        CX = CX - 1
        If (CX <> 0) and (ZF = 1) then
                JMP short_label
See Also LOOP LOOPNE JCXZ JECXZ |