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 ( ' <do something> ' : '=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 ( ' <do something> ' : '=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]
participants (1)
-
Peter Gerwinski