2020-11-06 13:04:25 +01:00
|
|
|
;/***
|
|
|
|
|
2020-11-12 17:00:31 +01:00
|
|
|
KolibriHeapInit = @@Kolibri@_HeapInit$qv
|
2020-11-06 13:04:25 +01:00
|
|
|
|
|
|
|
KolibriHeapAlloc = @@Kolibri@Alloc$qui
|
|
|
|
|
|
|
|
KolibriHeapReAlloc = @@Kolibri@ReAlloc$qpvui
|
|
|
|
|
|
|
|
KolibriHeapFree = @@Kolibri@Free$qpv
|
|
|
|
|
2020-11-12 17:00:31 +01:00
|
|
|
proc @MemoryHeap@mem_Init$qv uses ebx
|
|
|
|
mov eax,SF_SYS_MISC
|
|
|
|
mov ebx,SSF_HEAP_INIT
|
2020-11-06 13:04:25 +01:00
|
|
|
int 0x40
|
|
|
|
ret
|
|
|
|
endp
|
|
|
|
|
2020-11-12 17:00:31 +01:00
|
|
|
proc @MemoryHeap@mem_Alloc$qul uses ebx
|
|
|
|
mov eax,SF_SYS_MISC
|
|
|
|
mov ebx,SSF_MEM_ALLOC
|
|
|
|
int 0x40
|
2020-11-06 13:04:25 +01:00
|
|
|
ret
|
|
|
|
endp
|
|
|
|
|
2020-11-12 17:00:31 +01:00
|
|
|
proc @MemoryHeap@mem_ReAlloc$qulpv uses ebx
|
|
|
|
mov eax,SF_SYS_MISC
|
|
|
|
mov ebx,SSF_MEM_REALLOC
|
2020-11-06 13:04:25 +01:00
|
|
|
mov ecx,[esp+8]
|
2020-11-12 17:00:31 +01:00
|
|
|
mov edx,[esp+12]
|
2020-11-06 13:04:25 +01:00
|
|
|
int 0x40
|
2020-11-12 17:00:31 +01:00
|
|
|
ret
|
2020-11-06 13:04:25 +01:00
|
|
|
endp
|
|
|
|
|
2020-11-12 17:00:31 +01:00
|
|
|
proc @MemoryHeap@mem_Free$qpv uses ebx
|
|
|
|
mov eax,SF_SYS_MISC
|
|
|
|
mov ebx,SSF_MEM_FREE
|
2020-11-13 12:22:40 +01:00
|
|
|
mov ecx,[esp+8]
|
2020-11-12 17:00:31 +01:00
|
|
|
int 0x40
|
|
|
|
ret
|
|
|
|
endp
|
2020-11-06 13:04:25 +01:00
|
|
|
|
|
|
|
;/**/
|