Assembly Language Help (alang.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.
Iterative Macro (for Character)
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Syntax:   FORC parameter, <string>
              statements
            ENDM
 
  See also: ENDM, EXITM, FOR, REPEAT, WHILE, String Delimiters ("/'),
            MASM 5.1 Compatibility
 
  Description:
 
     Repeats <statements> once for each character in the string. The
     character replaces <parameter> in each repetition. IRPC is a synonym
     for FORC and is included for compatibility with previous versions
     of the assembler.
 
     Parameter      Description
 
     parameter      A valid symbol name. If <parameter> appears in
                    statements, then it is replaced by a different
                    character each iteration.
 
     string         A literal string or a symbol defined with a string
                    equate. All spaces are counted as characters. Angle
                    brackets are required.
 
     statements     Any valid assembler statements.
                                    -♦-