This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accessing LR register

Hi,
With the new keil+realview compiler, user can not dirrectly access the LR register. I had the following line of code:

__asm{ LDR LR, [LR, #+60] };

The above was compiled fine with the CARM compiler.

Switching to Realview compiler, the compiler gives me the following error:

error: #52: expected a marcro parameter name

If you no longer can access the LR, SP ... what is the way to do this?

Thanks

0