| 1 |
|
| 2 |
%macro FR_push 1 |
| 3 |
push %1 |
| 4 |
%assign frame frame+4 |
| 5 |
%endmacro |
| 6 |
|
| 7 |
%macro FR_pop 1 |
| 8 |
pop %1 |
| 9 |
%assign frame frame-4 |
| 10 |
%endmacro |
| 11 |
|
| 12 |
%macro FR_sesp 1 |
| 13 |
%assign frame frame+%1 |
| 14 |
%endmacro |
| 15 |
|
| 16 |
%macro FR_aesp 1 |
| 17 |
%assign frame frame-%1 |
| 18 |
%endmacro |
| 19 |
|
| 20 |
%assign frame 0 |
| 21 |
|
| 22 |
%macro do_name 2 |
| 23 |
|
| 24 |
%ifdef DLL |
| 25 |
export %1 |
| 26 |
%else |
| 27 |
export %1@%2 |
| 28 |
%endif |
| 29 |
|
| 30 |
%ifndef STDCALL |
| 31 |
global %1 |
| 32 |
%1: |
| 33 |
%else |
| 34 |
global %1@%2 |
| 35 |
%1@%2: |
| 36 |
%endif |
| 37 |
|
| 38 |
%endmacro |
| 39 |
|
| 40 |
%macro do_ret 1 |
| 41 |
%ifndef STDCALL |
| 42 |
ret |
| 43 |
%else |
| 44 |
ret %1 |
| 45 |
%endif |
| 46 |
%endmacro |