Mail Archives: djgpp/1998/09/16/05:15:49
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.h>
__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.
- Raw text -