Create nasm64 executor and test file

This commit is contained in:
Kevin Diaz 2020-10-03 13:16:15 -04:00
parent 9ffca9abb1
commit 0253f24479
No known key found for this signature in database
GPG key ID: E62816A9BB674F94
2 changed files with 22 additions and 0 deletions

18
lxc/tests/test64.nasm Normal file
View file

@ -0,0 +1,18 @@
SECTION .data
good: db "good", 0x0a, 0x0
txtlen: equ $ - good
SECTION .text
GLOBAL _start
_start:
;sys_write
mov rax, 1
mov rdi, 1
mov rsi, good
mov rdx, txtlen
syscall
;sys_exit
mov rax, 60
mov rdi, 0
syscall