title: How Can I put ARM processor in different modes using C program?
body: <p>I am going through different mode of ARM processor. I want to check the processor state(ex: register values) while it is in different mode.</p>
  
  <p>So can someone help me to find out sample code to put processor in different mode ?</p>
  
  <p>For example I found a code for undefined mode:
  <code>asm volatile (".short 0xffff\n");</code></p>