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

Keil ARM inline assembly

I want to insert inline assembly for following statements .I have used __asm directive but it gives error messege

mrs r4, CPSR
orr r4, r4, #0xC0
msr CPSR, r4

kindly advice

Parents
  • "it gives error messege"

    Precisely what message does it give?
    Cut-and-paste the entire message.

    You should just read the message literally - and think what it's telling you.

    Have you tried looking-up the message in the Manual?
    (in uVision, just click on the message, then press F1).

Reply
  • "it gives error messege"

    Precisely what message does it give?
    Cut-and-paste the entire message.

    You should just read the message literally - and think what it's telling you.

    Have you tried looking-up the message in the Manual?
    (in uVision, just click on the message, then press F1).

Children
No data