Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "hw2.c"
- .def ___main; .scl 2; .type 32; .endef
- .section .rdata,"dr"
- LC0:
- .ascii "Hello, world!\0"
- .text
- .globl _main
- .def _main; .scl 2; .type 32; .endef
- _main:
- pushl %ebp
- movl %esp, %ebp
- andl $-16, %esp
- subl $32, %esp
- call ___main
- movl $0, 28(%esp)
- jmp L2
- L3:
- movl $LC0, (%esp)
- call _puts
- incl 28(%esp)
- L2:
- cmpl $4, 28(%esp)
- jle L3
- movl $0, %eax
- leave
- ret
- .def _puts; .scl 2; .type 32; .endef
Advertisement
Add Comment
Please, Sign In to add comment