Commit | Line | Data |
---|---|---|
93b5bd18 | 1 | |
2 | _text segment para public 'CODE' use32 | |
3 | ||
4 | sub_test proc near | |
5 | push ebp | |
6 | mov ebp, esp | |
7 | push esi | |
8 | mov esi, ptr_struct1 | |
9 | push 1 | |
10 | call dword ptr [esi] | |
11 | mov eax, [esi+4] | |
12 | push 2 | |
13 | call dword ptr [eax+4] | |
14 | pop esi | |
15 | pop ebp | |
16 | retn | |
17 | sub_test endp | |
18 | ||
19 | _text ends | |
20 | ||
21 | _rdata segment para public 'DATA' use32 | |
22 | ptr_struct1 dd 0 | |
23 | _rdata ends | |
24 | ||
25 | ; vim:expandtab |