Rev 6887 | Rev 7773 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6887 | Rev 7160 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #ifndef INCLUDE_KOLIBRI_H |
4 | #ifndef INCLUDE_KOLIBRI_H |
5 | #include "../lib/kolibri.h" |
5 | #include "../lib/kolibri.h" |
Line 6... | Line 6... | ||
6 | #endif |
6 | #endif |
7 | 7 | ||
8 | dword mem_init() |
8 | :dword mem_init() |
9 | { |
9 | { |
10 | $push ebx |
10 | $push ebx |
11 | $mov eax, 68 |
11 | $mov eax, 68 |
Line 12... | Line 12... | ||
12 | $mov ebx, 11 |
12 | $mov ebx, 11 |
13 | $int 0x40 |
13 | $int 0x40 |
14 | 14 | ||
Line 15... | Line 15... | ||
15 | $pop ebx |
15 | $pop ebx |
16 | return EAX; |
16 | return EAX; |
17 | } |
17 | } |
18 | 18 | ||
Line 19... | Line 19... | ||
19 | dword malloc(dword size) |
19 | :dword malloc(dword size) |
Line 29... | Line 29... | ||
29 | $pop ecx |
29 | $pop ecx |
30 | $pop ebx |
30 | $pop ebx |
31 | return EAX; |
31 | return EAX; |
32 | } |
32 | } |
Line 33... | Line 33... | ||
33 | 33 | ||
34 | stdcall dword realloc(dword mptr, size) |
34 | :stdcall dword realloc(dword mptr, size) |
35 | { |
35 | { |
36 | $push ebx |
36 | $push ebx |
37 | $push ecx |
37 | $push ecx |
Line 47... | Line 47... | ||
47 | $pop ecx |
47 | $pop ecx |
48 | $pop ebx |
48 | $pop ebx |
49 | return EAX; |
49 | return EAX; |
50 | } |
50 | } |
Line 51... | Line 51... | ||
51 | 51 | ||
52 | dword free(dword mptr) |
52 | :dword free(dword mptr) |
53 | { |
53 | { |
54 | $push eax |
54 | $push eax |
55 | $push ebx |
55 | $push ebx |