Rev 145 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 145 | Rev 159 | ||
---|---|---|---|
1 | format ELF |
1 | format ELF |
- | 2 | include "public_stdcall.inc" |
|
2 | section '.text' executable |
3 | section '.text' executable |
3 | public _msys_send_message |
4 | public_stdcall _msys_send_message,12 |
4 | _msys_send_message: |
- | |
5 | ;arg1 - pid |
5 | ;arg1 - pid |
6 | ;arg2 - msg |
6 | ;arg2 - msg |
7 | ;arg3 - size |
7 | ;arg3 - size |
8 | push ebx esi |
8 | push ebx esi |
9 | mov eax,60 |
9 | mov eax,60 |
10 | mov ebx,2 |
10 | mov ebx,2 |
11 | mov ecx,[esp+12] |
11 | mov ecx,[esp+12] |
12 | mov edx,[esp+16] |
12 | mov edx,[esp+16] |
13 | mov esi,[esp+20] |
13 | mov esi,[esp+20] |
14 | int 0x40 |
14 | int 0x40 |
15 | pop esi ebx |
15 | pop esi ebx |
16 | ret 12 |
16 | ret 12 |
17 | 17 | ||
18 | public _msys_define_receive_area |
- | |
19 | _msys_define_receive_area: |
18 | public_stdcall _msys_define_receive_area,8 |
20 | ;arg1 - area |
19 | ;arg1 - area |
21 | ;arg2 - size |
20 | ;arg2 - size |
22 | push ebx |
21 | push ebx |
23 | mov eax,60 |
22 | mov eax,60 |
24 | mov ebx,1 |
23 | mov ebx,1 |
25 | mov ecx,[esp+8] |
24 | mov ecx,[esp+8] |
26 | mov edx,[esp+12] |
25 | mov edx,[esp+12] |
27 | int 0x40 |
26 | int 0x40 |
28 | pop ebx |
27 | pop ebx |
29 | ret 8 |
28 | ret 8 |