Files
linux-kernel-module-cheat/userland/arch/arm/sub.S
Ciro Santilli 六四事件 法轮功 72200dee4e userland: scope every header identifier with lkmc_
2019-05-21 00:00:01 +00:00

15 lines
273 B
ArmAsm

/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-data-processing-instructions
*
* Subtraction.
*/
#include "common.h"
LKMC_ENTRY
/* 3 - 2 == 1 , register version.*/
mov r0, 3
mov r1, 2
sub r0, r0, r1
LKMC_ASSERT_EQ(r0, 1)
LKMC_EXIT