qa.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.
REP
   Summary  Detail  Example  Key to Flags
──────────────────────────────────────────────────────────────────────────────
 
Repeat String                                    Flags:  O D I T S Z A P C
                                                         ═════════════════
Syntax:  REP instruction
 
  Repeats the string instruction the number of times indicated by CX.
  For each string element, the string instruction is performed and CX
  is decremented. When CX reaches 0, execution continues with the next
  instruction. REP is normally used with MOVS and STOS. (REP
  LODS is legal, but has the same effect as LODS.) REP is addi-
  tionally used with INS and OUTS on the 80186-80386 processors. On
  all processors except the 80386, combining a repeat prefix with a segment
  override may cause errors if an interrupt occurs during a string operation.
                                    -♦-