Advertisement
STANAANDREY

hello world asm

Jun 23rd, 2024
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .intel_syntax noprefix
  2. .section .data
  3.     hello: .asciz "Hello, World!\n"
  4.  
  5. .section .text
  6. .global _start
  7.  
  8. _start:
  9.     mov rax, 0x01
  10.     mov rdi, 1
  11.     lea rsi, [hello]
  12.     mov rdx, 14
  13.     syscall
  14.  
  15.     # exit program
  16.     mov rax, 0x3c
  17.     mov rdi, 0
  18.     syscall
  19.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement