Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #.intel_syntax noprefix
- .data
- msg:
- .ascii "hello"
- .set len, .-msg
- .bss #Uninitialized data
- .lcomm num, 5
- .text
- .global _start
- _start:
- xorq %rax, %rax
- xorq %rdi, %rdi
- movq $num, %rsi
- movq $5, %rdx #5 bytes (numeric, 1 for sign)
- #of that information
- syscall
- movq $1, %rax
- movq $1, %rdi
- movq $num, %rsi
- movq $len, %rdx
- syscall
- movq $60, %rax
- xorq %rdi, %rdi
- syscall
Advertisement
Add Comment
Please, Sign In to add comment