home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / SOFTWARE / LIBS / PMC101.ZIP / LIBSRC.ZIP / MALLOC.ASM (.txt) < prev    next >
Assembly Source File  |  1994-06-18  |  498b  |  32 lines

  1. .386p
  2. locals
  3.  
  4. extrn   _lowheapblock:dword, _extheapblock:dword
  5.  
  6. extrn   MBMALLOC:near
  7.  
  8. public  MALLOC
  9.  
  10. _TEXT           segment byte public use32 'CODE'
  11. assume  cs:_TEXT
  12.  
  13. MALLOC:
  14.         mov eax,[esp+4+0]
  15.         push offset _extheapblock
  16.         push eax
  17.         call MBMALLOC
  18.         or eax,eax
  19.         jnz short @@00
  20.  
  21.         mov eax,[esp+4+0]
  22.         push offset _lowheapblock
  23.         push eax
  24.         call MBMALLOC
  25.  
  26. @@00:
  27.         ret 4
  28.  
  29. _TEXT           ends
  30. end
  31.  
  32.