Hi, I am converting an old code to the Keil-Realview tool. I have this line, which was fine using the old tool.
__asm{ LDR LR, [LR, #+60] };
The above generate the following error
error: #52: expected a marcro parameter name
Please help
Hi,
inline assembler in ARM RealView compiler is not what one wouldt expect anymore. Please look at DUI0205G_rvct_compiler_and_libraries_guide available from ARM. There is a chapter about "Inline and Embedded Assemblers".
But note: Even if you use the "Embedded Assembler" the result may not be what you need: These statements are arranged like a "function" and are "called", that means jumped at using BL - which of course modifies the LR. I did not find a way to get these __asm functions "inlined" with no extra statements.
Maybe somebody else can help with this problem.
With kind regards
Martin
Yes there are other statements before and after this. Thanks for the information. I will try to work on this, if there are other stopper I will request for your help again.