Subversion Repositories Kolibri OS

Rev

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

Rev 6412 Rev 6433
Line 6... Line 6...
6
public free
6
public free
7
public realloc
7
public realloc
Line 8... Line 8...
8
 
8
 
9
align 4
9
align 4
10
malloc:
10
malloc:
11
 
11
    push ebx
12
        mov eax,68
12
        mov eax,68
13
        mov ebx,12
13
        mov ebx,12
14
	mov ecx,[esp+4] ;size
14
	mov ecx,[esp+8] ;size
15
        int 0x40
15
        int 0x40
16
 
16
    pop ebx
Line 17... Line 17...
17
        ret 4
17
        ret 4
18
 
18
 
19
align 4
19
align 4
20
free:
20
free:
21
 
21
    push ebx
22
        mov eax,68
22
        mov eax,68
23
        mov ebx,13
23
        mov ebx,13
24
	mov ecx,[esp+4]
24
	mov ecx,[esp+8]
25
        int 0x40
25
        int 0x40
Line 26... Line 26...
26
 
26
    pop ebx
27
        ret 4
27
        ret 4
28
 
28
 
29
align 4
29
align 4
30
realloc:
30
realloc:
31
 
31
    push ebx
32
        mov ebx,20
32
        mov ebx,20
33
        mov eax,68
33
        mov eax,68
34
	mov edx,[esp+4]  ; pointer
34
	mov edx,[esp+8]  ; pointer
35
	mov ecx,[esp+8]  ; size
35
	mov ecx,[esp+12]  ; size