Advertisement
Eternoseeker

PRINT HELLO WORLD

Mar 8th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASM (NASM) 0.34 KB | Source Code | 0 0
  1. section .data
  2. msg db "Helloworld", 10
  3. msg_len equ $- msg
  4. msg2 db "This is first 64 bit ALP ", 10
  5. msg2_len equ $- msg2
  6. section .text
  7. global _start
  8. _start:
  9.     mov rax, 1
  10.     mov rdi, 1
  11.     mov rsi, msg
  12.     mov rdx, msg_len
  13.     syscall
  14.    
  15.     mov rax, 1
  16.     mov rdi, 1
  17.     mov rsi, msg2
  18.     mov rdx, msg2_len
  19.     syscall
  20.    
  21.     mov rax, 60
  22.     mov rdi, 0
  23.     syscall
Tags: asm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement