Files
linux-kernel-module-cheat/userland/arch/x86_64/inc.S
Ciro Santilli 六四事件 法轮功 f3f09d5e4b x86 asm: link from instructions to readme
2019-06-07 00:00:00 +00:00

13 lines
232 B
ArmAsm

/* Increment: i++.
*
* https://github.com/cirosantilli/linux-kernel-module-cheat#x86-binary-arithmetic-instructions
*/
#include <lkmc.h>
LKMC_PROLOGUE
mov $2, %eax
inc %eax
LKMC_ASSERT_EQ_32(%eax, $3)
LKMC_EPILOGUE