Win32asm Program Framework: . 386 Tells the compiler about the instruction set used by the program.
. Model flat, stdcall The memory mode is flat, and the function call method is Stdcall, Win32 only has this
. Data ;. Data contains initialized data.
<Your initialized DATA>
. Data? ;. Data? This includes uninitialized data.
<Your uninitialized data>
. Const ;. Const includes constant definitions.
<Your constants>
. Code ;. Code this is Code "Segmentation ". Code segments are separated by labels.
<Label>
<Your code>
..
End <label>
Two function call methods:
1. Invoke
Invoke exitprocess, null; check parameters
2. Call
Push null
Call exitprocess; parameters are not checked. You need to log on to the stack by yourself before use and restore the stack by yourself after use.
Add ESP, 4
The Return Value of the function is returned through the eax register.