🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4517

Re: Using DOS INT21 to read from a file

#4517
From: Doug Dougherty
Date: Mon, 04 Feb 1991 17:01
19 lines
1112 bytes
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...
Technical Details
Message-ID: <valley.665686861@gsbsun>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!valley
References: <26647@uflorida.cis.ufl.EDU> <1991Feb4.142141.8839@cbnewsh.att.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <valley.665686861@gsbsun>
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