| Sulaiman Chang Personal Website |
|
FASM Invoke Explanation
INVOKE is a macroinstruction that can be used for calling the procedures using STDCALL convention, arguments are pushed on stack in the reverse order. For example stdcall foo, 1, 2, 3 will be assembled as: push 3 push 2 push 1 call foo Here is another example how to call the WinAPI MessageBox: push MB_OK push _caption push _text push [hWnd] call [MessageBox] is equal with invoke MessageBox, [hWnd], _text, _caption, MB_OK |
| Copyright © 2004 Sulaiman Chang. All Rights Reserved. |