delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/13/01:45:40

From: "R.e." <re_0 AT fcmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ASM function?
Date: Mon, 13 Nov 2000 07:33:34 +0100
Organization: Tiscali Spa
Lines: 40
Message-ID: <8uo22h$r0b$1@lacerta.tiscalinet.it>
References: <8umg84$3vh$1 AT lacerta DOT tiscalinet DOT it> <0gjt0t084ejt084ite0jgjcrd9gs7ugn5n AT 4ax DOT com>
NNTP-Posting-Host: rm1-296.dialup.tiscalinet.it
X-Trace: lacerta.tiscalinet.it 974097297 27659 62.11.120.40 (13 Nov 2000 06:34:57 GMT)
X-Complaints-To: newsadmin AT tiscali DOT it
NNTP-Posting-Date: 13 Nov 2000 06:34:57 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

thanks

"Damian Yerrick" <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> wrote in
message news:0gjt0t084ejt084ite0jgjcrd9gs7ugn5n AT 4ax DOT com...
> On Sun, 12 Nov 2000 17:23:18 +0100, "R.e." <re_0 AT fcmail DOT com> wrote:
>
> >hi,
> >i have write this very much simple program that do nothing:
> >
> >#include <stdio.h>
> >#include <conio.h>
> >main()
> >{
> > asm{
> >  mov ax,3h
> >  int 10h
> > }
> > return (0);
> >}
> >
> >When i compile it with djgpp i see this error:
> >
> >"The system cannot execute the specified program."
> >
> >How *.h file i must use for the asm function?
>
> DJGPP's inline assembly is _very_ different from Borland's.  Much of
> the time, you can get away with not using it at all; to call a BIOS
> service, use __dpmi_int() instead of inline assembly.
>   C:\>info libc a __dpmi_int
>
> --
> <O
> ( \   GNOME vs. KDE: the game!
>  X    http://pineight.8m.com/nes.htm
>
> This is McAfee VirusScan. Add these two lines to your signature to
> prevent the spread of signature viruses.  http://www.mcafee.com/


- Raw text -


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