Files
linux-kernel-module-cheat/userland/arch/aarch64/cbz.S
2019-05-12 00:00:08 +00:00

20 lines
250 B
ArmAsm

/* https://github.com/cirosantilli/linux-kernel-module-cheat#arm-cbz-instruction */
#include "common.h"
ENTRY
/* Branch. */
mov x0, 0x0
cbz x0, ok
FAIL
ok:
/* Don't branch. */
mov x0, 0x1
cbz x0, ko
EXIT
ko:
FAIL