2006-09-07 16:14:53 +02:00
|
|
|
format ELF
|
2006-09-23 16:00:36 +02:00
|
|
|
include "public_stdcall.inc"
|
2006-09-07 16:14:53 +02:00
|
|
|
section '.text' executable
|
2007-10-15 11:42:17 +02:00
|
|
|
public_stdcall _ksys_draw_window,36
|
2006-09-07 16:14:53 +02:00
|
|
|
;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
|