home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
SOFTWARE
/
LIBS
/
PMC101.ZIP
/
LIBSRC.ZIP
/
MALLOC.ASM
(
.txt
)
< prev
next >
Wrap
Assembly Source File
|
1994-06-18
|
498b
|
32 lines
.386p
locals
extrn _lowheapblock:dword, _extheapblock:dword
extrn MBMALLOC:near
public MALLOC
_TEXT segment byte public use32 'CODE'
assume cs:_TEXT
MALLOC:
mov eax,[esp+4+0]
push offset _extheapblock
push eax
call MBMALLOC
or eax,eax
jnz short @@00
mov eax,[esp+4+0]
push offset _lowheapblock
push eax
call MBMALLOC
@@00:
ret 4
_TEXT ends
end