Files
linux-kernel-module-cheat/userland/arch/x86_64/dec.S
2019-07-07 00:00:01 +00:00

13 lines
222 B
ArmAsm

/* Decrement: i--.
*
* https://cirosantilli.com/linux-kernel-module-cheat#x86-binary-arithmetic-instructions
*/
#include <lkmc.h>
LKMC_PROLOGUE
mov $3, %rax
dec %rax
LKMC_ASSERT_EQ(%rax, $2)
LKMC_EPILOGUE