Mail Archives: djgpp/1998/10/16/23:12:58
On Sat, 17 Oct 1998, Fogbank wrote:
> As the subject says, what's the syntax for accessing local variables
> (and function parameters) from within an asm block?
Use `extended' inline assembler:
asm ("movl %0, %1"
: "=r" (variable_to_copy_to)
: "r" (variable_to_copy_from)
);
See Brennan's Guide to Inline Assembler, and the documentation
it points to:
http://brennan.home.ml.org/djgpp/djgpp_asm.html
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
xu do tavla fo la lojban -- http://xiron.pc.helsinki.fi/lojban/lojban.html
- Raw text -