-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added root directory, binary, and libraries for nasm to the dynamic-apps that can be run in bincompat mode. Signed-off-by: Sina Mahdavi <[email protected]>
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
BITS 64 | ||
|
||
xor rax, rax | ||
test rdi, rdi | ||
jz end | ||
|
||
loop: | ||
cmp byte [rdi], 0 | ||
jz end | ||
|
||
xor rbx, rbx | ||
mov bl, byte [rdi] | ||
cmp bl, 0x5a | ||
ja loop_end | ||
|
||
push rax | ||
push rdi | ||
mov rdi, rbx | ||
mov rax, 0x403000 | ||
call rax | ||
pop rdi | ||
mov byte [rdi], al | ||
pop rax | ||
inc rax | ||
|
||
loop_end: | ||
inc rdi | ||
jmp loop | ||
|
||
end: | ||
ret |
Binary file not shown.