Subversion Repositories Kolibri OS

Rev

Rev 8196 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. KolibriHeapInit = @Kolibri@HeapInit$qv
  3. KolibriHeapAlloc = @Kolibri@Alloc$qul
  4. KolibriHeapReAlloc = @Kolibri@ReAlloc$qpvul
  5. KolibriHeapFree = @Kolibri@Free$qpv
  6.  
  7. @$bnwa$qui equ @Kolibri@Alloc$qul ;new variable
  8. @$bnew$qui equ @Kolibri@Alloc$qul ;new struct or class
  9. @$bdele$qpv equ @Kolibri@Free$qpv ;delete
  10.  
  11. align 4
  12. proc @Kolibri@HeapInit$qv uses ebx
  13.   mov  eax,SF_SYS_MISC
  14.   mov  ebx,SSF_HEAP_INIT
  15.   int  0x40
  16.   ret
  17. endp
  18.  
  19. align 4
  20. proc @Kolibri@Alloc$qul uses ebx
  21.   mov  eax,SF_SYS_MISC
  22.   mov  ebx,SSF_MEM_ALLOC
  23.   mov  ecx,[esp+8]
  24.   int  0x40
  25.   ret
  26. endp
  27.  
  28. align 4
  29. proc @Kolibri@ReAlloc$qpvul uses ebx
  30.   mov  eax,SF_SYS_MISC
  31.   mov  ebx,SSF_MEM_REALLOC
  32.   mov  ecx,[esp+12]
  33.   mov  edx,[esp+8]
  34.   int  0x40
  35.   ret
  36. endp
  37.  
  38. align 4
  39. proc @Kolibri@Free$qpv uses ebx
  40.   mov  eax,SF_SYS_MISC
  41.   mov  ebx,SSF_MEM_FREE
  42.   mov  ecx,[esp+8]
  43.   int  0x40
  44.   ret
  45. endp
  46.