Macros | |
| #define | stdcall(proc, arg) |
| Directly call STDCALL procedure. More... | |
| #define | invoke(proc, arg) |
| Indirectly call STDCALL procedure. More... | |
| #define | ccall(proc, arg) |
| Directly call CDECL procedure. More... | |
| #define | cinvoke(proc, arg) |
| Indirectly call CDECL procedure. More... | |
| #define | proc(args) |
| Define a procedure. Calling convention for the procedure may be defined before parameter list using stdcall or c word like this:proc name stdcall, param0, param1List of registers used in the procedure may be specified before parameter list using uses word like this:proc name uses eax ebx ecx, param0, param1If you need to specify both calling convention and used registers put calling convention first and then uses statement like this:proc name stdcall uses ebx ecx edx, param0, param1The defined procedure should be ended using endp macro. More... | |
| #define | endp |
Mark the end of a procedure created by proc macro. More... | |
| #define | local(var) |
Variables | |
| label | struc |
| #define ccall | ( | proc, | |
| arg | |||
| ) |
| #define cinvoke | ( | proc, | |
| arg | |||
| ) |
Indirectly call CDECL procedure.
| proc | Callee name |
| arg | Arguments to pass |
| #define endp |
Mark the end of a procedure created by proc macro.
| #define invoke | ( | proc, | |
| arg | |||
| ) |
Indirectly call STDCALL procedure.
| proc | Callee name |
| arg | Arguments to pass |
| #define local | ( | var | ) |
| #define proc | ( | args | ) |
Define a procedure.
Calling convention for the procedure may be defined before parameter list using stdcall or c word like this:
proc name stdcall, param0, param1
List of registers used in the procedure may be specified before parameter list using uses word like this:
proc name uses eax ebx ecx, param0, param1
If you need to specify both calling convention and used registers put calling convention first and then uses statement like this:
proc name stdcall uses ebx ecx edx, param0, param1
The defined procedure should be ended using endp macro.
| args | Name of the procedure and a comma-separated argument list. Type of any parameter may be specified by semicolon after its name like this:proc name param0:dword, param1:qword. |
| #define stdcall | ( | proc, | |
| arg | |||
| ) |
| label struc |