瀏覽代碼

put some instructions between functions to ensure enough space for the hooks

master
aaaaaa aaaaaaa 6 年之前
父節點
當前提交
8d7cfa20d3
共有 3 個檔案被更改,包括 39 行新增4 行删除
  1. +26
    -2
      test_cases/advanced_instructions.asm
  2. +12
    -1
      test_cases/backwards.asm
  3. +1
    -1
      test_cases/simple_tests.asm

+ 26
- 2
test_cases/advanced_instructions.asm 查看文件

@@ -1,6 +1,6 @@
format ms64 coff

section '.text' code readable executable
section '.text' code readable executable align 16

use64

@@ -11,7 +11,31 @@ _AVX:
vmovdqu [rdx], ymm0 ; store result in @res
ret

int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3

public _RDRAND
_RDRAND:
rdrand eax
ret
ret

int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3

+ 12
- 1
test_cases/backwards.asm 查看文件

@@ -1,6 +1,6 @@
format ms64 coff

section '.text' code readable executable
section '.text' code readable executable align 16

use64

@@ -14,6 +14,17 @@ _loop:
nop
loop @loop_loop ; lol
ret
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3

public _tail_recursion
_tail_recursion:

+ 1
- 1
test_cases/simple_tests.asm 查看文件

@@ -1,6 +1,6 @@
format ms64 coff

section '.text' code readable writeable executable
section '.text' code readable writeable executable align 16

use64


Loading…
取消
儲存