.file "p2.c" gcc2_compiled.: .section .rodata .LC0: .string "Error" .LC1: .string "You are a wizard\n" .LC2: .string "You are wrong\n" .text .align 4 .globl checkguess .type checkguess,@function checkguess: pushl %ebp movl %esp,%ebp subl $8,%esp addl $-8,%esp pushl $.LC0 movl 8(%ebp),%eax pushl %eax call strcmp addl $16,%esp movl %eax,%eax testl %eax,%eax jne .L7 addl $-12,%esp pushl $.LC1 call printf addl $16,%esp jmp .L8 .p2align 4,,7 .L7: addl $-12,%esp pushl $.LC2 call printf addl $16,%esp .L8: .L6: leave ret .Lfe1: .size checkguess,.Lfe1-checkguess .section .rodata .align 32 .LC3: .string "You need to enter a string on the command line\n" .text .align 4 .globl main .type main,@function main: pushl %ebp movl %esp,%ebp subl $8,%esp cmpl $1,8(%ebp) jg .L10 addl $-12,%esp pushl $.LC3 call printf addl $16,%esp movl $1,%eax jmp .L9 .p2align 4,,7 .L10: addl $-12,%esp movl 12(%ebp),%eax addl $4,%eax movl (%eax),%edx pushl %edx call checkguess addl $16,%esp xorl %eax,%eax jmp .L9 .p2align 4,,7 .L9: leave ret .Lfe2: .size main,.Lfe2-main .ident "GCC: (GNU) 2.95.3 20010315 (release)"