X-Apparently-To: clax86 AT yahoo DOT com via web1704.mail.yahoo.com From: Bart Trzynadlowski Newsgroups: comp.os.msdos.djgpp,comp.lang.asm.x86,alt.lang.asm Subject: Buffers Organization: I am not organized. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en Approved: Lines: 32 Message-ID: Date: Fri, 04 Aug 2000 04:45:27 GMT NNTP-Posting-Host: 168.191.59.15 X-Complaints-To: abuse AT earthlink DOT net X-Trace: newsread1.prod.itd.earthlink.net 965364327 168.191.59.15 (Thu, 03 Aug 2000 21:45:27 PDT) NNTP-Posting-Date: Thu, 03 Aug 2000 21:45:27 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, I need to use certain interrupts in my assembler modules which I link in with DJGPP, but there are problems when passing buffer addresses. mov ah, 9 mov edx, msg int 0x21 The above works great. But I can't get many of the INT 0x2F (MSCDEX) functions and DOS file I/O and IOCTL functions to work. I know it's possible, because I've seen software written using DJGPP+NASM that uses MSCDEX. I've tried everything and looked everywhere and am quite desparate for help... DJGPP has some C functions defined in DOS.H for opening files with _dos_open() and I can open the CD-ROM driver, but how do I write to it using DOS's IOCTL functions? I don't see anything of the sort in DOS.H. I'm using Ralf Brown's Interrupt List and various MSCDEX documents, they're all intended for real mode though... Thanks a lot, Bart