Set the endianness bit in the CPSR, without affecting any other bits in the CPSR.
NoteThis instruction is deprecated in ARMv8.
is one of:
SETEND to access data of different
endianness, for example, to access several big-endian DMA-formatted
data fields from an otherwise little-endian application.
SETEND cannot be conditional, and is not permitted in an IT block.
This instruction is available in A32 and 16-bit T32.
This 16-bit instruction is available in T32, except in the ARMv6-M and ARMv7-M architectures.
There is no 32-bit version of this instruction in T32.
SETEND BE ; Set the CPSR E bit for big-endian accesses LDR r0, [r2, #header] LDR r1, [r2, #CRC32] SETEND le ; Set the CPSR E bit for little-endian accesses ; for the rest of the application