Mail Archives: djgpp/1998/03/16/08:16:59
From: | Fabrice ILPONSE <fabrice AT trash DOT lip6 DOT fr>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | inline assembly
|
Date: | Mon, 16 Mar 1998 14:00:25 +0100
|
Organization: | Universites Paris VI/Paris VII - France
|
Lines: | 21
|
Message-ID: | <350D2269.A562F1D4@trash.lip6.fr>
|
NNTP-Posting-Host: | asim.lip6.fr
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi!
I'd like to specify a memory reference in assembly. I mean, for eg.,
I go a variable 'O'. I use it in inline assembly modifying its value and
than return it. Pb: when -O, there's no more variable O but a register.
As i push and pop all the registers, the good value is not kept. How can
i specify to gcc not to put O in a register but keep it as a memory
cell?
--
^ ^ ^
| | |
+-+-+ Fabrice ILPONSE
|
|
|
-
- Raw text -