Guest User

Untitled

a guest
Nov 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. .file "bool1.c"
  2. .intel_syntax noprefix
  3. .section .rodata
  4. .LC0:
  5. .string "p is true"
  6. .LC1:
  7. .string "p is not true"
  8. .LC2:
  9. .string "p is false"
  10. .LC3:
  11. .string "p is not false"
  12. .text
  13. .globl main
  14. .type main, @function
  15. main:
  16. .LFB0:
  17. push rbp
  18. .LCFI0:
  19. mov rbp, rsp
  20. .LCFI1:
  21. sub rsp, 32
  22. .LCFI2:
  23. mov DWORD PTR [rbp-20], edi
  24. mov QWORD PTR [rbp-32], rsi
  25. movzx eax, BYTE PTR [rbp-1]
  26. test al, al
  27. je .L2
  28. mov edi, OFFSET FLAT:.LC0
  29. call puts
  30. jmp .L3
  31. .L2:
  32. mov edi, OFFSET FLAT:.LC1
  33. call puts
  34. .L3:
  35. movzx eax, BYTE PTR [rbp-1]
  36. xor eax, 1
  37. test al, al
  38. je .L4
  39. mov edi, OFFSET FLAT:.LC2
  40. call puts
  41. jmp .L5
  42. .L4:
  43. mov edi, OFFSET FLAT:.LC3
  44. call puts
  45. .L5:
  46. mov eax, 0
  47. leave
  48. .LCFI3:
  49. ret
Add Comment
Please, Sign In to add comment