home *** CD-ROM | disk | FTP | other *** search
- include asm.inc
-
- public current_file_size
-
- .code
- extn ms_dos_strerror
-
- ;; current file size
- ;
- ; entry BX file handle
- ; exit DX AX file size
- ; Cf if unexpected file error
- ;
- current_file_size proc
- push cx
- mov ax,4202h
- xor cx,cx
- xor dx,dx
- call ms_dos_strerror
- pop cx
- ret
- current_file_size endp
-
- end
-