[Icc-mot] GNU to ICC
Oskar Atkinson
oskar at atk-it.com
Thu Sep 20 08:58:32 PDT 2007
still learning and well, now I am stuck with some inline assembler ...
in GCC it is:
__asm__ __volatile__ ("emul\n"
"ldx #100\n"
"ediv\n":
"=y" (utmp1):
"y" (flash4.ReqFuel),
"d" (utmp1):
"x");
the GCC syntax is asm( asm instuctions : output : input : clobbered registers );
I read above in terms of parameters as:
load the content of C variable flash4.ReqFuel into register y
load the content of C variable utmp1 into register edx
ldx #100
ediv
store the content of register y to the C variable utmp1
reg x content is not valid anymore
Thanks for any hints
Oskar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2766 bytes
Desc: not available
Url : http://dragonsgate.net/pipermail/icc-mot/attachments/20070920/c9786378/attachment.bin
More information about the Icc-mot
mailing list