GPC assembler_(re)
Mon, 22 Sep 1997 20:17:17 +0200 (MEST)
According to cagliostro:
>
> I want to set the result of the function, directly from the asm
> part.Is it possible ?
Yes: You can define a return value variable for the function:
Function foo ( x, y: Integer ) = bar: Integer
begin (* foo *)
asm ( ' '
: '=rm' ( bar )
: (* input *)
: (* clobbered *) );
end (* foo *);
Even if you don't define one, you can use `Result' for this purpose:
Function foo ( x, y: Integer ): Integer
begin (* foo *)
asm ( ' '
: '=rm' ( Result )
: (* input *)
: (* clobbered *) );
end (* foo *);
Hope this helps,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
maintainer GNU Pascal [970714] - http://home.pages.de/~gnu-pascal/ [970125]
Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es