www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/28/18:03:38

From: peter AT agnes DOT dida DOT physik DOT NO-SPAM-PLEASE DOT de (Peter Gerwinski)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: can't use int in djgpp's inline asm...
Date: 28 Jul 1997 12:43:45 GMT
Organization: Universitaet Essen, Germany
Lines: 23
Message-ID: <5ri461$q6@sun3.uni-essen.de>
References: <19970727211301 DOT RAA23545 AT ladder02 DOT news DOT aol DOT com>
Reply-To: peter DOT gerwinski AT NO-SPAM-PLEASE DOT de
NNTP-Posting-Host: agnes.dida.physik.uni-essen.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Egg brains (eggbrains AT aol DOT com) wrote:
> for some reason, when ever i try to use 'int' in inline asm, it creates
> the error 'operands given don't match any known 386 instruction'...
             ^^^^^^^^
It seems to be no error with `int' itself but with its operand[s].
Things like "int $0x16" work well for me; maybe you forgot the `$'?

> ... does
> this mean i have to use a non-asm code like __dmpi_int or int86? and will
> that slow down the speed?

I am not sure about speed, but using these facilities is the cleaner way,
because you should not use real-mode interrupts directly from protected
mode unless you are knowing exactly what you are doing.  ;-)

Greetings,

    Peter

 Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
Reply e-mail to "uni-essen"   http://home.pages.de/~peter.gerwinski/ [970201]
instead of "NO-SPAM-PLEASE".  maintainer GNU Pascal [970714] kampi.hut.fi/gpc
Sorry for the inconvenience.  http://home.pages.de/~gnu-pascal/ [970125]

- Raw text -


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