Hello,
Here are some macros for quick procedure definition. The PROCX macro sets automatically the PARMAREA value :
PROCX MACRO functionname:REQ,args:VARARG
fname TEXTEQU functionname
functionname PROC args PARMAREA=16*QWORD
ENDM
ENDPX MACRO
fname ENDP
ENDM
The maximum number of parameters which is 16 by default can be modified easily.
An example :
PROCX start
LOCAL hModule:QWORD
invoke GetModuleHandle,NULL
mov hModule,rax
invoke DialogBoxParam,hModule,\
ADDR Resource,NULL,ADDR DlgProc,NULL
invoke ExitProcess,rax
ENDPX