Google

Mar 21, 2008

Invoke function

The Invoke function is used to specific to MASM, and it can call functions without
having to push the parameters beforehand. This saves us a lot of typing effort.

Here is an example
invoke SendMessage, [hWnd], WM_CLOSE, 0, 0

that is interpreted as

push 0
push 0
push WM_CLOSE
push [hWnd]
call [SendMessage]

You might be also interested in:
:: Find Square Root of a hexadecimal number in assembly language
:: common intreview questions on 8086
:: Assembly Language Source Codes

No comments: