mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-15 11:22:34 +03:00
aaf3c424a7
git-svn-id: svn://kolibrios.org@903 a494cfbc-eb01-0410-851d-a64ba20cac60
37 lines
477 B
Plaintext
37 lines
477 B
Plaintext
#code32 TRUE
|
|
|
|
inline fastcall dword malloc(dword ECX){
|
|
dword size, heap;
|
|
#speed
|
|
size = ECX;
|
|
EAX = 68;
|
|
EBX = 11;
|
|
$int 0x40;
|
|
heap = EAX;
|
|
IF (size<=heap)
|
|
{
|
|
EAX = 68;
|
|
EBX = 12;
|
|
ECX = size;
|
|
$int 0x40;
|
|
}
|
|
ELSE EAX=-1;
|
|
#codesize
|
|
}
|
|
|
|
inline fastcall dword free(dword ECX){
|
|
#speed
|
|
EAX = 68;
|
|
EBX = 13;
|
|
$int 0x40;
|
|
#codesize
|
|
}
|
|
|
|
inline fastcall dword realloc(dword ECX, EDX){
|
|
#speed
|
|
EAX = 68;
|
|
EBX = 20;
|
|
$int 0x40;
|
|
#codesize
|
|
}
|