delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/15/16:49:07

Message-ID: <373B38B0.41BCDF77@go.ro>
Date: Thu, 13 May 1999 23:40:16 +0300
From: Radu Georgescu aka skoola <skoola AT go DOT ro>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: problem with extended inline asm
References: <37394A06 DOT BA8BBA94 AT magix DOT com DOT sg>
Reply-To: djgpp AT delorie DOT com


Chuming wrote:

> Hi there, can anyone help me with the following problems:
>
> 1) when using extended inline asm in djgpp, is the input registers field
> limited
>  to only 10 operands. Is there any way to get around the problem?
>

eh... supose you have:
static long a1,a2;
then you say:
__asm__("
mov 4+%0,%%eax
"
:
:"g"(a1));

and you get mov a2,%%eax

all you got to do is to declare in the parameter list one of the arguments
and know the relative adress of the others...


- Raw text -


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