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

  1. .386p
  2. locals
  3.  
  4. public  DSC_ALLOC
  5.  
  6. _TEXT           segment byte public use32 'CODE'
  7. assume  cs:_TEXT
  8.  
  9. DSC_ALLOC:
  10.         push ebx
  11.  
  12.         mov cx,[esp+4+4]
  13.         xor ax,ax
  14.         int 31h
  15.         jc short @@00
  16.  
  17.         mov ebx,[esp+4+4+4]
  18.         mov [ebx],ax
  19.  
  20.         xor eax,eax
  21.         jmp short @@01
  22.  
  23. @@00:
  24.         movsx eax,ax
  25.         cmp ah,80h
  26.         je short @@01
  27.         mov eax,-32768
  28.  
  29. @@01:
  30.         pop ebx
  31.         ret 8
  32.  
  33. _TEXT           ends
  34. end
  35.  
  36.