Ver código fonte

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

master
aaaaaa aaaaaaa 6 anos atrás
pai
commit
8d7cfa20d3
3 arquivos alterados com 39 adições e 4 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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 Ver arquivo

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

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

use64


Carregando…
Cancelar
Salvar