home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / proglc / tnylib.lzh / UNLINK.ASM < prev    next >
Encoding:
Assembly Source File  |  1986-10-07  |  272 b   |  27 lines

  1. include compiler.inc
  2.  
  3.     ttl    UNLINK, 1.04, 10-07-86 jwk
  4.  
  5.     dseg
  6.     exterr
  7.  
  8.     cseg
  9.  
  10.     procdef    unlink,<<namea,ptr>>
  11.     
  12.     pushds
  13.     mov    ah,41H
  14.     ldptr    dx,namea,ds
  15.     int    21H
  16.     jnc    unl_ok
  17.     moverr    ax
  18.     mov    ax,-1
  19.     pret
  20. unl_ok:
  21.     sub    ax,ax
  22.     pret
  23.     pend    unlink
  24.  
  25.     finish
  26. 
  27.