Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .bss
- .lcomm f, 1
- .lcomm buf, 1
- .lcomm s, 1
- .text
- _start:
- .global _start
- mov $0, %rax
- mov $0, %rdi
- mov $f, %rsi
- mov $1, %rdx
- syscall
- mov $0, %rax
- mov $0, %rdi
- mov $buf, %rsi
- mov $1, %rdx
- syscall
- mov $0, %rax
- mov $0, %rdi
- mov $s, %rsi
- mov $1, %rdx
- syscall
- mov $0, %rax
- mov $0, %rdi
- mov $buf, %rsi
- mov $1, %rdx
- syscall
- xor %rbx, %rbx
- #xor %rcx, %rcx
- add $f, %rbx
- add $s, %rbx
- sub $48, %rbx
- mov %bl, (f)
- mov $1, %rax
- mov $1, %rdi
- mov $f, %rsi
- mov $1, %rdx
- syscall
- mov $60, %rax
- mov $0, %rdi
- syscall
Add Comment
Please, Sign In to add comment