Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
647 | andrew_pro | 1 | format ELF |
2 | include "public_stdcall.inc" |
||
3 | section '.text' executable |
||
4 | public_stdcall _ksys_send_message,12 |
||
5 | ;arg1 - pid |
||
6 | ;arg2 - msg |
||
7 | ;arg3 - size |
||
8 | push ebx esi |
||
9 | mov eax,60 |
||
10 | mov ebx,2 |
||
11 | mov ecx,[esp+12] |
||
12 | mov edx,[esp+16] |
||
13 | mov esi,[esp+20] |
||
14 | int 0x40 |
||
15 | pop esi ebx |
||
16 | ret 12 |
||
17 | |||
18 | public_stdcall _ksys_define_receive_area,8 |
||
19 | ;arg1 - area |
||
20 | ;arg2 - size |
||
21 | push ebx |
||
22 | mov eax,60 |
||
23 | mov ebx,1 |
||
24 | mov ecx,[esp+8] |
||
25 | mov edx,[esp+12] |
||
26 | int 0x40 |
||
27 | pop ebx |
||
28 | ret 8 |