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
  • As I said to you before, You should just read the message literally - and think what it's telling you.
    (I actually said it twice - but that was just an accident!)

    The messages say, "undefined identifier" and "Register name expected" - so it looks like it's not recognising CPSR and R0.

    Probably, you are missing an include file or something...?

    Why do you particularly want to do this as inline assembler?

Reply
  • As I said to you before, You should just read the message literally - and think what it's telling you.
    (I actually said it twice - but that was just an accident!)

    The messages say, "undefined identifier" and "Register name expected" - so it looks like it's not recognising CPSR and R0.

    Probably, you are missing an include file or something...?

    Why do you particularly want to do this as inline assembler?

Children
No data