[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LOOPE            Loop While Equal                    Flags: not altered

LOOPE short-label

          Logic:    CX . CX - 1
                    If CX <> 0 and ZF = 1
                        JMP short-label

    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.

  --------------------------------------------------------------------------
   Operands                  Clocks   Transfers  Bytes   Example
   short-label              18 or 6       -        2     LOOPE AGAIN
  --------------------------------------------------------------------------

       Note:          LOOPZ, Loop if Zero, is the same instruction.

See Also: LOOP LOOPNE LOOPNZ LOOPZ JCXZ
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson