Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.           global    _start
  2.  
  3.           section   .text
  4. _start:   mov       rax, 1                  ; system call for write
  5.           mov       rdi, 1                  ; file handle 1 is stdout
  6.           mov       rsi, message            ; address of string to output
  7.           mov       rdx, 13                 ; number of bytes
  8.           syscall                           ; invoke operating system to do the write
  9.           mov       rax, 60                 ; system call for exit
  10.           xor       rdi, rdi                ; exit code 0
  11.           syscall                           ; invoke operating system to exit
  12.  
  13.           section   .data
  14. message:  db        "Deus Vult", 10      ; note the newline at the end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement