Use assembly language code, write equivalent code in C

profileyxb390
hw4_2.s

.file "hw4_2.c" .text .globl hw3_3 .type hw3_3, @function hw3_3: pushl %ebp movl %esp, %ebp subl $4, %esp cmpl $0, 8(%ebp) jle .L2 movl $1, -4(%ebp) jmp .L4 .L2: movl $0, -4(%ebp) .L4: movl -4(%ebp), %eax leave ret .size hw3_3, .-hw3_3 .ident "GCC: (GNU) 4.1.2 20080704 (Red Hat 4.1.2-50)" .section .note.GNU-stack,"",@progbits