<<< FASTCALL Caller and Callee Summary | Index | ENTER and LEAVE commands >>> |
PROC directive may include parameter declarations: label PROC attributes USES reglist, parameter:tag, parameter:tag, ...
Parameter declarations allow assembler to
calculate necessary offsets for you
let you refer to parameters by name.
For example,
add2nums PROC NEAR32 C, arg1:DWORD, arg2:DWORD mov eax, arg1 add eax, arg2 ret add2nums ENDP
<<< FASTCALL Caller and Callee Summary | Index | ENTER and LEAVE commands >>> |