Advertisement
DarkAtom77

Hello world Assembly x64 (Linux)

May 27th, 2020
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Hello world program
  2. ; Language: x86-64 (AMD64) Assembly
  3. ; Library: Linux system calls
  4.  
  5. global _start
  6.  
  7. section .text
  8. _start:
  9.     mov rdx, message_length
  10.     mov rsi, message
  11.     mov rdi, 1
  12.     mov rax, 1
  13.     syscall
  14.     xor rdi, rdi
  15.     mov rax, 60
  16.     syscall
  17.  
  18. section .data
  19.     message db 'Hello world!', 0xA
  20.     message_length equ $ - message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement