$ echo "mov r0, #0xff" | arm-none-linux-gnueabi-as -mcpu=cortex-a7 -EL
$ arm-none-linux-gnueabi-objdump -d a.out
a.out: file format elf32-littlearm
Disassembly of section .text:
00000000 <.text>:
0: e3a000ff mov r0, #255 ; 0xff
$ hexdump a.out | grep ff
0000030 0008 0005 00ff e3a0 2841 0000 6100 6165
$ echo "mov r0, #0xff" | arm-none-linux-gnueabi-as -mcpu=cortex-a7 -EB
$ arm-none-linux-gnueabi-objdump -d a.out
a.out: file format elf32-bigarm
Disassembly of section .text:
00000000 <.text>:
0: e3a000ff mov r0, #255 ; 0xf
$ hexdump a.out | grep ff
0000030 0800 0500 a0e3 ff00 0041 0000 6128 6165
Википедия пишет, что для 32-битного слова число
0xe3a000ff
le ff00a0e3
be e3a000ff