hmwk1_sol_ch - JL isless movl $1, %eax JMP done isless:...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * compareB.S * * Created on: Feb 17, 2011 * Author: */ .global _compare _compare: pushl %ebp movl %esp , %ebp movl 12( %ebp ), %ebx movl 8( %ebp ), %ecx cmpl %ebx , %ecx JE isequal
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: JL isless movl $1, %eax JMP done isless: movl $-1, %eax JMP done isequal: xor %eax , %eax JMP done done: movl %ebp , %esp popl %ebp ret...
View Full Document

Ask a homework question - tutors are online