Subversion Repositories Kolibri OS

Rev

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

Rev 5676 Rev 6021
Line 19... Line 19...
19
 
19
 
20
dword malloc(dword size)
20
dword malloc(dword size)
21
{
21
{
22
        $push    ebx
22
	$push    ebx
-
 
23
	$push    ecx
23
        $push    ecx
24
 
24
        $mov     eax, 68
25
	$mov     eax, 68
25
        $mov     ebx, 12
26
	$mov     ebx, 12
26
        $mov     ecx, size
27
	$mov     ecx, size
Line 34... Line 35...
34
stdcall dword realloc(dword mptr, size)
35
stdcall dword realloc(dword mptr, size)
35
{
36
{
36
        $push    ebx
37
	$push    ebx
37
        $push    ecx
38
	$push    ecx
38
        $push    edx
39
	$push    edx
-
 
40
 
39
        $mov     eax, 68
41
	$mov     eax, 68
40
        $mov     ebx, 20
42
	$mov     ebx, 20
41
        $mov     ecx, size
43
	$mov     ecx, size
42
        $mov     edx, mptr
44
	$mov     edx, mptr
43
        $int     0x40
45
	$int     0x40
Line 51... Line 53...
51
dword free(dword mptr)
53
dword free(dword mptr)
52
{
54
{
53
        $push    eax
55
	$push    eax
54
        $push    ebx
56
	$push    ebx
55
        $push    ecx
57
	$push    ecx
-
 
58
	
56
        $mov     eax, 68
59
	$mov     eax, 68
57
        $mov     ebx, 13
60
	$mov     ebx, 13
58
        $mov     ecx, mptr
61
	$mov     ecx, mptr
59
        $test    ecx, ecx
62
	$test    ecx, ecx
60
        $jz      end0
63
	$jz      end0