Pārlūkot izejas kodu

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

master
aaaaaa aaaaaaa pirms 6 gadiem
vecāks
revīzija
8d7cfa20d3
3 mainītis faili ar 39 papildinājumiem un 4 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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

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

use64


Notiek ielāde…
Atcelt
Saglabāt