Subversion Repositories Kolibri OS

Rev

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

Rev 376 Rev 570
Line 16... Line 16...
16
public _make_button@24
16
public _make_button@24
17
public _draw_bar@20
17
public _draw_bar@20
18
public _write_text@20
18
public _write_text@20
19
public _debug_out@4
19
public _debug_out@4
20
public _debug_out_hex@4
20
public _debug_out_hex@4
-
 
21
public _create_thread@12
-
 
22
 
Line 21... Line 23...
21
 
23
 
Line 22... Line 24...
22
public _memset
24
public _memset
23
 
25
 
Line 30... Line 32...
30
                    db ?
32
                    db ?
31
    .name           dd ?
33
    .name           dd ?
32
};
34
};
Line 33... Line 35...
33
 
35
 
-
 
36
align 4
-
 
37
_create_thread@12:
-
 
38
.thr_proc    equ esp+4
-
 
39
.param       equ esp+8
-
 
40
.stack_size  equ esp+12
-
 
41
 
-
 
42
           mov eax, 68
-
 
43
           mov ebx, 12
-
 
44
           mov ecx, [.stack_size]
-
 
45
           add ecx, 4095
-
 
46
           and ecx, -4096
-
 
47
           int 0x40
-
 
48
           test eax, eax
-
 
49
           jz .fail
-
 
50
 
-
 
51
           lea edx, [eax+ecx-12]
-
 
52
           mov [edx], dword .exit_point
-
 
53
           mov ebx, [.param]
-
 
54
           mov [edx+4], ebx
-
 
55
           mov [edx+8], ecx
-
 
56
 
-
 
57
           mov eax, 51
-
 
58
           mov ebx, 1
-
 
59
           mov ecx, [.thr_proc]
-
 
60
           int 0x40
-
 
61
           ret 12
-
 
62
.fail:
-
 
63
           not eax
-
 
64
           ret 12
-
 
65
align 4
-
 
66
.exit_point:
-
 
67
           pop ecx
-
 
68
           mov eax, 68
-
 
69
           mov ebx, 13
-
 
70
           int 0x40
-
 
71
           mov eax, -1
-
 
72
           int 0x40
-
 
73
 
-
 
74
restore .thr_proc
-
 
75
restore .param
-
 
76
restore .stack_size
-
 
77
 
-
 
78
 
34
align 4
79
align 4
35
proc _get_button_id
80
proc _get_button_id
36
           mov   eax,17
81
           mov   eax,17
37
           int   0x40
82
           int   0x40
38
           test  al,al
83
           test  al,al