home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
SOFTWARE
/
LIBS
/
PMC101.ZIP
/
LIBSRC.ZIP
/
DSCALLOC.ASM
(
.txt
)
< prev
next >
Wrap
Assembly Source File
|
1994-06-05
|
495b
|
36 lines
.386p
locals
public DSC_ALLOC
_TEXT segment byte public use32 'CODE'
assume cs:_TEXT
DSC_ALLOC:
push ebx
mov cx,[esp+4+4]
xor ax,ax
int 31h
jc short @@00
mov ebx,[esp+4+4+4]
mov [ebx],ax
xor eax,eax
jmp short @@01
@@00:
movsx eax,ax
cmp ah,80h
je short @@01
mov eax,-32768
@@01:
pop ebx
ret 8
_TEXT ends
end