1 ; NASM macro set to make interfacing to 16-bit programs easier -*- nasm -*-
5 %imacro proc 1 ; begin a procedure definition
15 %ifdef FARCODE PASCAL ; arguments may start at bp+4 or bp+6
35 %imacro arg 0-1 2 ; used with the argument name as a label
39 ; we could possibly be adding some
41 ; debug information at this point...?
43 %assign %$arg %1+%$arg
53 %error Mismatched `endproc'/`proc'
63 retf %$arg - %$firstarg
75 __end_%$procname: ; useful for calculating function size