From: "Paul Hooper" Newsgroups: comp.os.msdos.djgpp Subject: HELP! INT21 - 3D problem!!!! Date: 8 Mar 1997 04:55:05 GMT Organization: Exec-PC BBS Internet - Milwaukee, WI Lines: 31 Message-ID: <01bc2b7c$ce3fad70$7229cfa9@p590> NNTP-Posting-Host: delaware.execpc.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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; }