The assembler repeats the statements in the block once for each character in the string. Each repetition substitutes the next character in the string for every occurrence of Parameter in the block.
Syntax
FORC Parameter, String (or <String>) . . . ENDMRemarks
The obsolete spelling for the FORC directive is IRPC.
The FORC directive is similar to the FOR/IRP directive except that a String is used instead of <Argument-List>, and the angle brackets around the string are optional. The string should be enclosed with angle brackets (<>) if it contains spaces, commas, or other separating characters.
The FORC/IRPC-ENDM block does not have to be within a macro definition.
In this example, the assembler produces the code DB 1 through DB 8:
FORC X,12345678 DB X ENDM