Article View: comp.os.msdos.programmer
Article #4602Re: Using DOS INT21 to read from a file
From: Ralf.Brown
Date: Mon, 04 Feb 1991 13:16
Date: Mon, 04 Feb 1991 13:16
20 lines
1351 bytes
1351 bytes
In article <26647@uflorida.cis.ufl.EDU>, jdb@reef.cis.ufl.edu (Brian K. W. Hook) wrote:
}asm {
} mov ah, 3FH
} mov bx, fhandle
} mov cx, 0001H
} mov dx, c
} int 21
}}
}
}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 forgot the 'h' in 'int 21h'.... Your code calls INT 15h, which returns
AH=86h on an unknown function.
--
{backbone}!cs.cmu.edu!ralf ARPA: RALF@CS.CMU.EDU FIDO: Ralf Brown 1:129/3.1
BITnet: RALF%CS.CMU.EDU@CMUCCVMA AT&Tnet: (412)268-3053 (school) FAX: ask
DISCLAIMER? Did | It isn't what we don't know that gives us trouble, it's
I claim something?| what we know that ain't so. --Will Rogers
Technical Details
Message-ID:
<27ad6cd9@ralf>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ames!eos!shelby!rutgers!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!netnewsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ames!eos!shelby!rutgers!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!netnews From: Ralf.Brown@B.GP.CS.CMU.EDU Newsgroups: comp.os.msdos.programmer Subject: Re: Using DOS INT21 to read from a file Message-ID: <27ad6cd9@ralf> Date: 4 Feb 91 13:16:57 GMT Article-I.D.: ralf.27ad6cd9 Sender: netnews@cs.cmu.edu (USENET News Group Software) Organization: Carnegie Mellon University School of Computer Science Lines: 20 In-Reply-To: <26647@uflorida.cis.ufl.EDU>