This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
HelloWorld/Assembly/linux_nasm.asm
2022-07-30 14:03:03 +00:00

19 lines
262 B
NASM

BITS 64
segment .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, message
mov rdx, message_len
syscall
mov rax, 60
mov rdi, 0
syscall
segment .rodata
message: db "Hello world", 10
message_len: equ $ - message