Hi,
How I can write undefined exception Instruction in C language, I tried with instruction MCR but it is not working. Do the needful help.
void undef(void) { static const int instr = 0x12345678; /* fake undefined opcode */ ((void(*)(void))&instr)(); }
But you'll have to come up with a real undefined opcode. 0x12345678 won't do it.