Advertisement
a3f

Untitled

a3f
Apr 16th, 2015
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; OSX, Nasm, AMD64
  2. section .text
  3. global start
  4.  
  5. start:
  6.         mov rax, 2000004h ; WRITE
  7.         mov rdi, 1
  8.         lea rsi, [rel msg]
  9.         mov rdx, 2
  10.         syscall
  11.  
  12.         mov rax, 2000001h ; EXIT
  13.         xor rdi, rdi
  14.         syscall
  15.  
  16. section .data
  17. msg db "Hi"
  18. a db 80h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement