www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/16/05:15:49

Date: Wed, 16 Sep 1998 12:15:48 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Thomas Luzat <thomas DOT luzat AT gmx DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Inline ASM
In-Reply-To: <35FE8291.37810D2D@gmx.net>
Message-ID: <Pine.SUN.3.91.980916121527.5874N-100000@is>
MIME-Version: 1.0

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, &regs);

> 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 -


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