Subversion Repositories Kolibri OS

Rev

Rev 145 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 145 Rev 159
Line 1... Line 1...
1
format ELF
1
format ELF
-
 
2
include "public_stdcall.inc"
2
section '.text' executable
3
section '.text' executable
3
public _msys_set_background_size
4
public_stdcall _msys_set_background_size,8
4
_msys_set_background_size:
-
 
5
;arg1 - xsize
5
;arg1 - xsize
6
;arg2 - ysize
6
;arg2 - ysize
7
  push  ebx
7
  push  ebx
8
  mov   ecx,[esp+8]
8
  mov   ecx,[esp+8]
9
  mov   edx,[esp+12]
9
  mov   edx,[esp+12]
10
  mov   eax,15
10
  mov   eax,15
11
  mov   ebx,1
11
  mov   ebx,1
12
  int   0x40
12
  int   0x40
13
  pop   ebx
13
  pop   ebx
14
  ret   8
14
  ret   8
15
public _msys_write_background_mem
15
public_stdcall _msys_write_background_mem,8
16
_msys_write_background_mem:
-
 
17
;arg1 - pos
16
;arg1 - pos
18
;arg2 - color
17
;arg2 - color
19
  push  ebx
18
  push  ebx
20
  mov   eax,15
19
  mov   eax,15
21
  mov   ebx,2
20
  mov   ebx,2
22
  mov   ecx,[esp+8]
21
  mov   ecx,[esp+8]
23
  mov   edx,[esp+12]
22
  mov   edx,[esp+12]
24
  int   0x40
23
  int   0x40
25
  pop   ebx
24
  pop   ebx
26
  ret   8
25
  ret   8
27
public _msys_draw_background
26
public_stdcall _msys_draw_background,0
28
_msys_draw_background:
-
 
29
  mov   edx,ebx
27
  mov   edx,ebx
30
  mov   eax,15
28
  mov   eax,15
31
  mov   ebx,3
29
  mov   ebx,3
32
  int   0x40
30
  int   0x40
33
  mov   ebx,edx
31
  mov   ebx,edx
34
  ret    
32
  ret    
35
public _msys_set_background_draw_type
33
public_stdcall _msys_set_background_draw_type,4
36
_msys_set_background_draw_type:
-
 
37
;arg1 - type
34
;arg1 - type
38
  mov   edx,ebx
35
  mov   edx,ebx
39
  mov   eax,15
36
  mov   eax,15
40
  mov   ebx,4
37
  mov   ebx,4
41
  mov   ecx,[esp+4]
38
  mov   ecx,[esp+4]
42
  int   0x40
39
  int   0x40
43
  mov   ebx,edx
40
  mov   ebx,edx
44
  ret   4
41
  ret   4
45
public _msys_background_blockmove
42
public_stdcall _msys_background_blockmove,12
46
_msys_background_blockmove:
-
 
47
;arg1 - source
43
;arg1 - source
48
;arg2 - position in dest
44
;arg2 - position in dest
49
;arg3 - size
45
;arg3 - size
50
  push  ebx esi
46
  push  ebx esi
51
  mov   eax,15
47
  mov   eax,15