Advertisement
Guest User

linux_hello_world.s

a guest
Sep 5th, 2014
260
0
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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement