home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / progjour / 1991 / 06 / alib / open_out.asm < prev    next >
Assembly Source File  |  1991-06-25  |  388b  |  30 lines

  1.     include    asm.inc
  2.  
  3.     public    open_output_file
  4.  
  5.     .code
  6.     extn    ms_dos_strerror
  7.  
  8.  
  9. ;;    open output file
  10. ;
  11. ;    entry    DS:SI    string
  12. ;    exit    AX,BX    handle
  13. ;        Cf    if error, error text set
  14. ;    calls    offset_dos_error, ms_dos
  15. ;
  16. open_output_file proc
  17.     push    cx
  18.     mov    ax,3C00h
  19.     xor    cx,cx
  20.     xchg    dx,si
  21.     call    ms_dos_strerror
  22.     xchg    dx,si
  23.     mov    bx,ax
  24.     pop    cx
  25.     ret
  26. open_output_file endp
  27.  
  28.  
  29.     end
  30.