Browse Source

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

master
aaaaaa aaaaaaa 6 years ago
parent
commit
8d7cfa20d3
3 changed files with 39 additions and 4 deletions
  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 View File

format ms64 coff format ms64 coff


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


use64 use64


vmovdqu [rdx], ymm0 ; store result in @res vmovdqu [rdx], ymm0 ; store result in @res
ret ret


int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3

public _RDRAND public _RDRAND
_RDRAND: _RDRAND:
rdrand eax rdrand eax
ret
ret

int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3

+ 12
- 1
test_cases/backwards.asm View File

format ms64 coff format ms64 coff


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


use64 use64


nop nop
loop @loop_loop ; lol loop @loop_loop ; lol
ret ret
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3


public _tail_recursion public _tail_recursion
_tail_recursion: _tail_recursion:

+ 1
- 1
test_cases/simple_tests.asm View File

format ms64 coff format ms64 coff


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


use64 use64



Loading…
Cancel
Save