setend
Set Endianness (Thumb)
SETEND <endian>
Set endianness (Thumb).
Pseudocode Operation
if endian == 'BE' then
CPSR.E ← 1
elsif endian == 'LE' then
CPSR.E ← 0
Example
SETEND endian
Encoding
Binary Layout
1011011001
15:6
0
5
1
4
E
3
000
2:0
Operands
-
endian
BE/LE
Reference
View in Arm A64 ISA Reference ↗
Arm AArch32 ISA
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0xF1010000 | SETEND{<q>} <endian_specifier> | A32 | 111100010000 | 00 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | E | 0 | 0 | 0 | 0 | 00000 | ||
| 0xB650 | SETEND{<q>} <endian_specifier> | T32 | 1011011001 | 0 | 1 | E | 000 |
Description
Set Endianness writes a new value to PSTATE.E.
Operation
EncodingSpecificOperations(); AArch32.CheckSETENDEnabled(); PSTATE.E = if set_bigend then '1' else '0';