Files
linux-kernel-module-cheat/userland/arch/arm/bl.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

15 lines
203 B
ArmAsm

/* https://github.com/cirosantilli/arm-assembly-cheat#bl */
#include "common.h"
ENTRY
mov r0, 1
bl inc
ASSERT_EQ(r0, 2)
EXIT
/* void inc(int *i) { (*i)++ } */
inc:
add r0, 1
bx lr