2020-11-06 13:04:25 +01:00
|
|
|
|
2020-11-14 20:00:55 +01:00
|
|
|
KolibriHeapInit = @Kolibri@HeapInit$qv
|
|
|
|
KolibriHeapAlloc = @Kolibri@Alloc$qul
|
|
|
|
KolibriHeapReAlloc = @Kolibri@ReAlloc$qpvul
|
|
|
|
KolibriHeapFree = @Kolibri@Free$qpv
|
2020-11-06 13:04:25 +01:00
|
|
|
|
2021-06-12 13:58:55 +02:00
|
|
|
@$bnwa$qui equ @Kolibri@Alloc$qul ;new variable
|
|
|
|
@$bnew$qui equ @Kolibri@Alloc$qul ;new struct or class
|
|
|
|
@$bdele$qpv equ @Kolibri@Free$qpv ;delete
|
|
|
|
|
2020-11-14 20:00:55 +01:00
|
|
|
align 4
|
|
|
|
proc @Kolibri@HeapInit$qv uses ebx
|
2020-11-12 17:00:31 +01:00
|
|
|
mov eax,SF_SYS_MISC
|
|
|
|
mov ebx,SSF_HEAP_INIT
|
2020-11-06 13:04:25 +01:00
|
|
|
int 0x40
|
|
|
|
ret
|
|
|
|
endp
|
|
|
|
|
2020-11-14 20:00:55 +01:00
|
|
|
align 4
|
|
|
|
proc @Kolibri@Alloc$qul uses ebx
|
2020-11-12 17:00:31 +01:00
|
|
|
mov eax,SF_SYS_MISC
|
|
|
|
mov ebx,SSF_MEM_ALLOC
|
2020-11-14 20:00:55 +01:00
|
|
|
mov ecx,[esp+8]
|
2020-11-12 17:00:31 +01:00
|
|
|
int 0x40
|
2020-11-06 13:04:25 +01:00
|
|
|
ret
|
|
|
|
endp
|
|
|
|
|
2020-11-14 20:00:55 +01:00
|
|
|
align 4
|
|
|
|
proc @Kolibri@ReAlloc$qpvul uses ebx
|
2020-11-12 17:00:31 +01:00
|
|
|
mov eax,SF_SYS_MISC
|
|
|
|
mov ebx,SSF_MEM_REALLOC
|
2020-11-14 20:00:55 +01:00
|
|
|
mov ecx,[esp+12]
|
|
|
|
mov edx,[esp+8]
|
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-14 20:00:55 +01:00
|
|
|
align 4
|
|
|
|
proc @Kolibri@Free$qpv uses ebx
|
2020-11-12 17:00:31 +01:00
|
|
|
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
|