Hca.geocities.com/JLABELLE@rogers.com/nsasm/docs/r1732.htmlca.geocities.com/JLABELLE_rogers.com/nsasm/docs/r1732.htmldelayedx nJOKtext/html@'b.HTue, 07 Dec 2004 00:52:34 GMT:Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)en, *nJ.doparm

.doparm

Name

.doparm --  repeats a one parameter macro for each argument in a list

Syntax

.doparm formal , argument [,argument...]
statements
...
.enddo

Description

The .doparm directive repeats a macro block a number of times depending upon the number of parameters in list. During each expansion, the formal parameter is replaced by the next actual parameter in the list. The list may be empty, in which case one expansion takes place with a null actual parameter. Parameters in the list are treated like macro actual arguments and may be enclosed in quotation marks.

Example

		.doparm P1,FLAG1,FLAG2,FLAG3
			ld P1,#0
		.enddo
	

Is equivalent to writing this:

			ld FLAG1,#0
			ld FLAG2,#0
			ld FLAG3,#0