University stuff.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .file "libpas2100.c"
  2. .text
  3. .globl write_char
  4. .type write_char, @function
  5. write_char:
  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 %edi, -4(%rbp)
  15. movl -4(%rbp), %eax
  16. movl %eax, %edi
  17. call putchar
  18. nop
  19. leave
  20. .cfi_def_cfa 7, 8
  21. ret
  22. .cfi_endproc
  23. .LFE0:
  24. .size write_char, .-write_char
  25. .section .rodata
  26. .LC0:
  27. .string "%d"
  28. .text
  29. .globl write_int
  30. .type write_int, @function
  31. write_int:
  32. .LFB1:
  33. .cfi_startproc
  34. pushq %rbp
  35. .cfi_def_cfa_offset 16
  36. .cfi_offset 6, -16
  37. movq %rsp, %rbp
  38. .cfi_def_cfa_register 6
  39. subq $16, %rsp
  40. movl %edi, -4(%rbp)
  41. movl -4(%rbp), %eax
  42. movl %eax, %esi
  43. movl $.LC0, %edi
  44. movl $0, %eax
  45. call printf
  46. nop
  47. leave
  48. .cfi_def_cfa 7, 8
  49. ret
  50. .cfi_endproc
  51. .LFE1:
  52. .size write_int, .-write_int
  53. .section .rodata
  54. .LC1:
  55. .string "%s"
  56. .text
  57. .globl write_string
  58. .type write_string, @function
  59. write_string:
  60. .LFB2:
  61. .cfi_startproc
  62. pushq %rbp
  63. .cfi_def_cfa_offset 16
  64. .cfi_offset 6, -16
  65. movq %rsp, %rbp
  66. .cfi_def_cfa_register 6
  67. subq $16, %rsp
  68. movq %rdi, -8(%rbp)
  69. movq -8(%rbp), %rax
  70. movq %rax, %rsi
  71. movl $.LC1, %edi
  72. movl $0, %eax
  73. call printf
  74. nop
  75. leave
  76. .cfi_def_cfa 7, 8
  77. ret
  78. .cfi_endproc
  79. .LFE2:
  80. .size write_string, .-write_string
  81. .ident "GCC: (GNU) 5.2.0"
  82. .section .note.GNU-stack,"",@progbits