delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/23:31:34

From: ovek AT arcticnet DOT no (Ove Kaaven)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: attempting inline asm in djgpp
Date: Wed, 18 Mar 1998 04:05:27 GMT
Organization: Arctic Net AS
Lines: 10
Message-ID: <350f477a.88591992@isflak.arcticnet.no>
References: <350F6966 DOT 349 AT wpi DOT edu>
NNTP-Posting-Host: villager.arcticnet.no
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Chris Doty <orz AT wpi DOT edu> wrote:

>Looking at the dissambly of my NoJumpsABS with optimization off I found
>that both %0 and %1 had been assigned the same register (eax I think). 
>How do I stop this from happening?

By using the & modifier, i.e.

    : "=&r" (c) : "r" (d));

- Raw text -


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