home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MAGAZINE / MISC / PJ_9_6.ZIP / ALIB.ZIP / MOVEFPTR.ASM < prev    next >
Encoding:
Assembly Source File  |  1991-06-25  |  318 b   |  28 lines

  1.     include    asm.inc
  2.  
  3.     public    move_file_pointer
  4.  
  5.     .code
  6.     extn    ms_dos
  7.  
  8.  
  9. ;;    move file pointer
  10. ;
  11. ;    entry    BX    file handle
  12. ;        DX AX    file position
  13. ;    exit    Cf    if error
  14. ;    uses    AX
  15. ;
  16. move_file_pointer proc
  17.     push    cx
  18.     mov    cx,dx
  19.     mov    dx,ax
  20.     mov    ax,4200h
  21.     call    ms_dos
  22.     pop    cx
  23.     ret
  24. move_file_pointer endp
  25.  
  26.  
  27.     end
  28.