mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-24 17:59:38 +03:00
efd8f1922c
git-svn-id: svn://kolibrios.org@5266 a494cfbc-eb01-0410-851d-a64ba20cac60
35 lines
627 B
NASM
35 lines
627 B
NASM
format COFF
|
|
include "public_stdcall.inc"
|
|
section '.text' code
|
|
public_stdcall __ksys_draw_window,36
|
|
;arg1 - xcoord
|
|
;arg2 - ycoord
|
|
;arg3 - xsize
|
|
;arg4 - ysize
|
|
;arg5 - workcolor
|
|
;arg6 - type
|
|
;arg7 - captioncolor
|
|
;arg8 - windowtype
|
|
;arg9 - bordercolor
|
|
push ebp
|
|
mov ebp,esp
|
|
push ebx esi edi
|
|
mov ebx,[ebp+8]
|
|
shl ebx,16
|
|
mov bx,[ebp+16]
|
|
mov ecx,[ebp+12]
|
|
shl ecx,16
|
|
mov cx,[ebp+20]
|
|
mov edx,[ebp+28]
|
|
shl edx,24
|
|
add edx,[ebp+24]
|
|
mov esi,[ebp+36]
|
|
shl esi,24
|
|
add esi,[ebp+32]
|
|
mov edi,[ebp+40]
|
|
xor eax,eax
|
|
int 0x40
|
|
pop edi esi ebx
|
|
pop ebp
|
|
ret 36
|