Date: Wed, 16 Sep 1998 12:15:48 +0300 (IDT) From: Eli Zaretskii To: Thomas Luzat cc: djgpp AT delorie DOT com Subject: Re: Inline ASM In-Reply-To: <35FE8291.37810D2D@gmx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 15 Sep 1998, Thomas Luzat wrote: > Everything is working fine, but I haven't figured out how > to use inline assembler. That's what I wanted to convert from Turbo > Pascal to DJGPP: > > asm > mov ax,0003h; > int 10h; > end; I'd advise not to mess with inline assembly unless you really need it. For this example, you don't: #include __dpmi_regs regs; regs.x.ax = 3; __dpmi_int(0x10, ®s); > I need just one sample to start. I can't figure out how to do it from > the docs (maybe you can point me to the right one?) The DJGPP FAQ list (v2/faq210b.zip) has a few pointers to related docs in section 18.13. http://brennan.home.ml.org/djgpp/djgpp-asm.html is another place to learn about that.