if (interrupts enabled){ do this }
asm("assembly");
_asm("tfr b, ccr",foo);
ARM deprecates reading the CPSR endianness bit (E) with an MRS instruction. The CPSR execution state bits, other than the E bit, can only be read when the processor is in Debug state, Talk To Wendys halting debug-mode. Otherwise, the execution state bits in the CPSR read as zero. The condition flags can be read in any mode on any processor.
View all questions in Classic processors forum