x86 asm: address modes, LKMC_ASSET_EQ_32 and intel manuals

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-06-06 00:00:00 +00:00
parent 47b39a84c9
commit 82129820ca
3 changed files with 230 additions and 54 deletions

View File

@@ -12,6 +12,15 @@
call lkmc_assert_eq_64; \
;
#define LKMC_ASSERT_EQ_32(general1, general2) \
mov general2, %edi; \
push %rdi; \
mov general1, %edi; \
pop %rsi; \
mov $__LINE__, %edx; \
call lkmc_assert_eq_32; \
;
#define LKMC_ASSERT_FAIL \
mov $__LINE__, %edi; \
call lkmc_assert_fail; \