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
"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).