Asmc Macro Assembler Reference
OPTION CSTACK
OPTION CSTACK
OPTION CSTACK:[ ON | OFF ]
The CSTACK option control the stack-frame creation by invoke. The default setting is OFF.
Example
OPTION CSTACK: ON cstack PROC USES esi edi ebx arg sub esp,arg ret cstack ENDP OPTION CSTACK: OFF astack PROC USES esi edi ebx arg sub esp,arg ret astack ENDP
Generated code
cstack PROC USES esi edi ebx arg push esi push edi push ebx push ebp mov ebp,esp sub esp,arg leave pop ebx pop edi pop esi retn 4 cstack ENDP OPTION CSTACK: OFF astack PROC USES esi edi ebx arg push ebp mov ebp,esp push esi push edi push ebx sub esp,arg pop ebx pop edi pop esi leave retn 4 astack ENDP