Assembler






,

. REPT, IRT IRPC.

,
ENDM.
 

REPT.
 
REPT
;... REPT
ENDM
 
, .
.
 
IRP
.
 
IRP ,<>
;... IRP
ENDM
 
,
.

. .
,
IRPC.
IRPC ,
;... IRPC
ENDM
 

.
. . 6.7
.

Microsoft (R) Macro Assembler Version 5.00 4/2/89 16:06:54
. 6.7 Page 1-1
 
PAGE ,132
TITLE . 6.7
 
0000 CODE SEGMENT
ASSUME CS:CODE,DS:CODE
 
REPT 3 ; 3
INC AX
ENDM
0000 40 1 INC AX
0001 40 1 INC AX
0002 40 1 INC AX
 
IRP VALUE,<5,10,15,20>
ADD AX,VALUE
ENDM
0003 05 0005 1 ADD AX,5
0006 05 000A 1 ADD AX,10
0009 05 000F 1 ADD AX,15
000C 05 0014 1 ADD AX,20
 
IRPC CHAR, ABCD
ADD AX,CHAR&X
ENDM
000F 03 C0 1 ADD AX,AX
0011 03 C3 1 ADD AX,BX
0013 03 C1 1 ADD AX,CX
0015 03 C2 1 ADD AX,DX
 
0017 CODE ENDS
END
. 6.7