mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
16 lines
322 B
ArmAsm
16 lines
322 B
ArmAsm
/* https://github.com/cirosantilli/arm-assembly-cheat#data-processing-instructions */
|
|
|
|
#include "common.h"
|
|
|
|
ENTRY
|
|
/* All bytes in register. */
|
|
ldr r0, =0x11223344
|
|
rev r1, r0
|
|
ASSERT_EQ(r1, 0x44332211)
|
|
|
|
/* Groups of 16-bits. */
|
|
ldr r0, =0x11223344
|
|
rev16 r1, r0
|
|
ASSERT_EQ(r1, 0x22114433)
|
|
EXIT
|