Files
linux-kernel-module-cheat/userland/arch/arm/rev.S
Ciro Santilli 六四事件 法轮功 0263c21557 userland: add assembly support
Move arm assembly cheat here, and start some work on x86 cheat as well.
2019-05-05 00:00:00 +00:00

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