notaz.gp2x.de
/
ia32rtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
tools: better fastcall support
[ia32rtools.git]
/
tests
/
deref.expect.c
1
int sub_test()
2
{
3
void (__stdcall *i_f0)(int);
4
int (__stdcall *i_f1)(int);
5
u32 eax;
6
u32 esi;
7
8
esi = (u32)ptr_struct1;
9
i_f0 = (void *)*(u32 *)(esi);
10
i_f0(1);
11
eax = *(u32 *)(esi+4);
12
i_f1 = (void *)*(u32 *)(eax+4);
13
eax = i_f1(2);
14
return eax;
15
}
16