1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
;--- macro with VARARG parameter attribute and % operator .386 .model flat, stdcall option casemap :none E2 equ 1 Check2 macro args:VARARG for arg, <args> mov eax, arg endm endm .code Check2 1, %2, %3, 4 end