Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!valley From: valley@uchicago (Doug Dougherty) Newsgroups: comp.os.msdos.programmer Subject: Re: Using DOS INT21 to read from a file Message-ID: Date: 4 Feb 91 17:01:01 GMT References: <26647@uflorida.cis.ufl.EDU> <1991Feb4.142141.8839@cbnewsh.att.com> Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago Lines: 19 rkl@cbnewsh.att.com (kevin.laux) writes: > *** pop ds >> } >> >> AX returns 86C0, which is REALLY wrong. AX should be the number of bytes >> read or at least an error code....what am I doing wrong? > You haven't properly specified the buffer address. You don't want >to move the contents of c to the DX register. See above. > The Carry Flag must be checked after the call. If it is set then >AX will contain the error code. Otherwise AX will contain the number of >bytes read. > You really should RTFM more carefully. Ask Manuel. He knows everything...