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

  1.     include    asm.inc
  2.  
  3.     public    open_input_file
  4.  
  5.     .code
  6.     extn    ms_dos_strerror
  7.  
  8.  
  9. ;;    open input 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_input_file proc
  17.     mov    ax,3D00h        ; (use 3D20 for shared access read)
  18.     xchg    dx,si
  19.     call    ms_dos_strerror
  20.     xchg    dx,si
  21.     mov    bx,ax
  22.     ret
  23. open_input_file endp
  24.  
  25.     end
  26.