Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. format ELF
  2. section '.text' executable
  3. public _msys_send_message
  4. _msys_send_message:
  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 _msys_define_receive_area
  19. _msys_define_receive_area:
  20. ;arg1 - area
  21. ;arg2 - size
  22.   push  ebx
  23.   mov   eax,60
  24.   mov   ebx,1
  25.   mov   ecx,[esp+8]
  26.   mov   edx,[esp+12]
  27.   int   0x40
  28.   pop   ebx
  29.   ret   8