.file "lab4.c" .section .rodata .LC0: .string "x + y = %d\n" .text .globl main .type main,@function main: pushl %ebp movl %esp, %ebp movl $100, %eax # eax is x movl $200, %ecx # ecx is y addl %ecx,%eax # eax = x + y pushl %eax # pass eax to printf pushl $.LC0 # format string passed to printf call printf # call printf movl $0, %eax # return(0) leave ret