piston/lxc/tests/nasm64.nasm

19 lines
254 B
NASM
Raw Normal View History

2020-10-03 19:16:15 +02:00
SECTION .data
2021-01-22 09:48:39 +01:00
good: db "good", 0x0
txtlen: equ $ - good
2020-10-03 19:16:15 +02:00
SECTION .text
GLOBAL _start
_start:
2021-01-22 09:48:39 +01:00
;sys_write
mov rax, 1
mov rdi, 1
mov rsi, good
mov rdx, txtlen
syscall
;sys_exit
mov rax, 60
mov rdi, 0
syscall