Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "testt.cpp"
- .def __main; .scl 2; .type 32; .endef
- .section .rdata,"dr"
- .LC0:
- .ascii "%d\0"
- .text
- .globl main
- .def main; .scl 2; .type 32; .endef
- .seh_proc main
- main:
- .LFB15:
- pushq %rbp
- .seh_pushreg %rbp
- movq %rsp, %rbp
- .seh_setframe %rbp, 0
- subq $48, %rsp
- .seh_stackalloc 48
- .seh_endprologue
- call __main
- leaq -4(%rbp), %rax
- movq %rax, %rdx
- leaq .LC0(%rip), %rcx
- call scanf
- movl -4(%rbp), %eax
- cmpl $5, %eax
- jle .L2
- movl $48, %ecx
- call putchar
- jmp .L3
- .L2:
- movl $49, %ecx
- call putchar
- .L3:
- movl $0, %eax
- addq $48, %rsp
- popq %rbp
- ret
- .seh_endproc
- .ident "GCC: (tdm64-1) 5.1.0"
- .def scanf; .scl 2; .type 32; .endef
- .def putchar; .scl 2; .type 32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement