minor fixes
[ia32rtools.git] / tests / deref.asm
CommitLineData
93b5bd18 1
2_text segment para public 'CODE' use32
3
4sub_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
17sub_test endp
18
19_text ends
20
21_rdata segment para public 'DATA' use32
22ptr_struct1 dd 0
23_rdata ends
24
25; vim:expandtab