Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- .bss
- .comm input, 512
- .text
- .globl _start
- _start:
- mov $0, %rax
- mov $0, %rdi
- mov $input, %rsi
- mov $512, %rdx
- syscall
- mov $0, %rcx
- _loop:
- inc %rcx
- mov $1, %rax
- mov $1, %rdi
- mov $input, %rsi
- mov $512, %rdx
- syscall
- cmp $6, %rcx
- jl _loop
- mov $60, %rax
- mov $0, %rdi
- syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement