1 ; NASM macro set to make interfacing to 16-bit programs easier -*- nasm -*-
3 %imacro proc 1 ; begin a procedure definition
8 %ifdef FARCODE PASCAL ; arguments may start at bp+4 or bp+6
16 %imacro arg 0-1 2 ; used with the argument name as a label
18 %assign %$arg %1+%$arg
23 %error Mismatched `endproc'/`proc'
34 __end_%$procname: ; useful for calculating function size