Advertisement
PikMike

Untitled

Apr 20th, 2017
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "testt.cpp"
  2.     .def    __main; .scl    2;  .type   32; .endef
  3.     .section .rdata,"dr"
  4. .LC0:
  5.     .ascii "%d\0"
  6.     .text
  7.     .globl  main
  8.     .def    main;   .scl    2;  .type   32; .endef
  9.     .seh_proc   main
  10. main:
  11. .LFB15:
  12.     pushq   %rbp
  13.     .seh_pushreg    %rbp
  14.     movq    %rsp, %rbp
  15.     .seh_setframe   %rbp, 0
  16.     subq    $48, %rsp
  17.     .seh_stackalloc 48
  18.     .seh_endprologue
  19.     call    __main
  20.     leaq    -4(%rbp), %rax
  21.     movq    %rax, %rdx
  22.     leaq    .LC0(%rip), %rcx
  23.     call    scanf
  24.     movl    -4(%rbp), %eax
  25.     cmpl    $5, %eax
  26.     jle .L2
  27.     movl    $48, %ecx
  28.     call    putchar
  29.     jmp .L3
  30. .L2:
  31.     movl    $49, %ecx
  32.     call    putchar
  33. .L3:
  34.     movl    $0, %eax
  35.     addq    $48, %rsp
  36.     popq    %rbp
  37.     ret
  38.     .seh_endproc
  39.     .ident  "GCC: (tdm64-1) 5.1.0"
  40.     .def    scanf;  .scl    2;  .type   32; .endef
  41.     .def    putchar;    .scl    2;  .type   32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement