Guest User

Untitled

a guest
Jul 16th, 2018
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .bss
  2.    .lcomm f, 1
  3.    .lcomm buf, 1
  4.    .lcomm s, 1
  5.  
  6. .text
  7.  
  8.     _start:
  9.  
  10.         .global _start
  11.  
  12.         mov $0, %rax
  13.         mov $0, %rdi
  14.         mov $f, %rsi
  15.         mov $1, %rdx
  16.         syscall
  17.  
  18.         mov $0, %rax
  19.         mov $0, %rdi
  20.         mov $buf, %rsi
  21.         mov $1, %rdx
  22.         syscall
  23.  
  24.         mov $0, %rax
  25.         mov $0, %rdi
  26.         mov $s, %rsi
  27.         mov $1, %rdx
  28.         syscall
  29.  
  30.         mov $0, %rax
  31.         mov $0, %rdi
  32.         mov $buf, %rsi
  33.         mov $1, %rdx
  34.         syscall
  35.  
  36.         xor %rbx, %rbx
  37.        #xor %rcx, %rcx
  38.  
  39.         add $f, %rbx
  40.         add $s, %rbx
  41.         sub $48, %rbx
  42.  
  43.         mov %bl, (f)
  44.  
  45.         mov $1, %rax
  46.         mov $1, %rdi
  47.         mov $f, %rsi
  48.         mov $1, %rdx
  49.         syscall
  50.  
  51.         mov $60, %rax
  52.         mov $0, %rdi
  53.         syscall
Add Comment
Please, Sign In to add comment