Subversion Repositories Kolibri OS

Rev

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

  1. format ELF
  2. include "public_stdcall.inc"
  3. section '.text' executable
  4. public_stdcall _ksys_draw_window,36
  5. ;arg1 - xcoord
  6. ;arg2 - ycoord
  7. ;arg3 - xsize
  8. ;arg4 - ysize
  9. ;arg5 - workcolor
  10. ;arg6 - type
  11. ;arg7 - captioncolor
  12. ;arg8 - windowtype
  13. ;arg9 - bordercolor
  14.   push ebp
  15.   mov  ebp,esp
  16.   push ebx esi edi
  17.   mov  ebx,[ebp+8]
  18.   shl  ebx,16
  19.   mov  bx,[ebp+16]
  20.   mov  ecx,[ebp+12]
  21.   shl  ecx,16
  22.   mov  cx,[ebp+20]
  23.   mov  edx,[ebp+28]
  24.   shl  edx,24
  25.   add  edx,[ebp+24]
  26.   mov  esi,[ebp+36]
  27.   shl  esi,24
  28.   add  esi,[ebp+32]
  29.   mov  edi,[ebp+40]
  30.   xor  eax,eax
  31.   int  0x40
  32.   pop  edi esi ebx
  33.   pop  ebp
  34.   ret  36
  35.