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

10 lines
198 B
ArmAsm

/* https://cirosantilli.com/linux-kernel-module-cheat#x86-logical-instructions */
#include <lkmc.h>
LKMC_PROLOGUE
mov $0x0FF0, %rax
not %ax
LKMC_ASSERT_EQ(%rax, $0xF00F)
LKMC_EPILOGUE