Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. .file "input.c"
  2. .text
  3. .globl main
  4. .type main, @function
  5. main:
  6. .LFB0:
  7. .cfi_startproc
  8. pushq %rbp
  9. .cfi_def_cfa_offset 16
  10. .cfi_offset 6, -16
  11. movq %rsp, %rbp
  12. .cfi_def_cfa_register 6
  13. subq $16, %rsp
  14. movl $0, -4(%rbp)
  15. jmp .L2
  16. .L6:
  17. movsbl -5(%rbp), %eax
  18. cmpl $32, %eax
  19. jne .L8
  20. cmpl $0, -4(%rbp)
  21. jne .L2
  22. movsbl -5(%rbp), %eax
  23. movl %eax, %edi
  24. call putchar
  25. movl $1, -4(%rbp)
  26. jmp .L2
  27. .L8:
  28. movl $0, -4(%rbp)
  29. movsbl -5(%rbp), %eax
  30. movl %eax, %edi
  31. call putchar
  32. nop
  33. .L2:
  34. call getchar
  35. movb %al, -5(%rbp)
  36. cmpb $-1, -5(%rbp)
  37. jne .L6
  38. movl $0, %eax
  39. leave
  40. .cfi_def_cfa 7, 8
  41. ret
  42. .cfi_endproc
  43. .LFE0:
  44. .size main, .-main
  45. .ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609"
  46. .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement