SHARE
TWEET

linux_hello_world.s

a guest Sep 5th, 2014 194 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .text
  2.         global  _start
  3.         _start:
  4.  
  5.         ; write
  6.         mov     rax,1
  7.         mov     rdi,1
  8.         mov     rsi,msg
  9.         mov     rdx,len
  10.         syscall
  11.  
  12.         ; exit
  13.         mov     rax,60
  14.         xor     rdi,rdi
  15.         syscall
  16.  
  17. section .data
  18.         msg     db      "Hello, 世界",10
  19.         len     equ     $-msg
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top