delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/09/07:30:40

From: waage AT brainerd DOT net (Moses)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP! INT21 - 3D problem!!!!
Date: Sat, 08 Mar 1997 14:53:40 GMT
Organization: MEANS
Lines: 41
Message-ID: <33217d1b.455309@news.polaristel.net>
References: <01bc2b7c$ce3fad70$7229cfa9 AT p590>
NNTP-Posting-Host: ascend1-34.brainerd.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On the date of 8 Mar 1997 04:55:05 GMT, "Paul Hooper"
<unitech AT execpc DOT com> wrote:

I'm just guessing that you might need to put a period at the end of
ZZZ


>Hello:
>
>	HERE IS A GOOD ONE!  I have been racking of what little is left of my
>brains over this problem.  Can someone tell me what is going on??  I cannot
>get a simple Int21 function 3D  (open a file to work), using the CWSDPMI. 
>I have simplified the problem down to the very simple piece of code below. 
>You
>will need to run it through a debugger (I used FSDB) to see the results. 
>All this code does is try to open the file "ZZZ" in the current directory
>for read access.  This code works (Carry flag is 0 after int 21)under QDPMI
>but fails (Carry flag is 1 after int 21) with CWSDPMI.  Remember to create
>a file named ZZZ before running the test.  
>
>I really look forward to hearing from someone about this.  I feel like I am
>missing.something really obvious.
>
>Thanks
>Paul Hooper
>unitech AT execpc DOT com
>
>char *filename = "ZZZ";
>int main(int argc, char *argv[])
>{
>asm ("movb   $0x00,%al\n\t"
>	"movb   $0x3d,%ah\n\t"
>	"movl   _filename,%edx\n\t"
>	"int    $0x21\n\t");
>
>	return 0;
>}  
>


Moses -- Apocalypse Software

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019