Question: : pushl % ebp movl % esp, % ebp subl $ 1 6 , % esp movl 8 ( % ebp ) , % ecx

: pushl %ebp movl %esp, %ebp subl $16,%esp movl 8(%ebp),%ecx movl 12(%ebp),%edx movl $0,%eax cmpl %edx, %ecx jg L1 movl $1,%eax L1: leave ret
Which one of the following assembly code fragments is equivalent to the above assembly code fragment?
Group of answer choices
: pushl %ebp movl %esp, %ebp subl $16,%esp movl 8(%ebp),%ecx movl 12(%ebp),%edx movl $0,%eax subl %edx, %ecx cmpl %ecx, $0 jge L1 movl $1,%eax L1: leave ret
: pushl %ebp movl %esp, %ebp subl $16,%esp movl 8(%ebp),%ecx movl 12(%ebp),%edx movl $0,%eax subl %edx, %ecx cmpl %ecx, $0 jl L1 movl $1,%eax L1: leave ret
: pushl %ebp movl %esp, %ebp subl $16,%esp movl 8(%ebp),%ecx movl 12(%ebp),%edx movl $1,%eax subl %edx, %ecx cmpl %ecx, $0 jg L1 movl $0,%eax L1: leave ret
: pushl %ebp movl %esp, %ebp subl $16,%esp movl 8(%ebp),%ecx movl 12(%ebp),%edx movl $0,%eax subl %edx, %ecx cmpl %ecx, $0 jg L1 movl $1,%eax L1: leave ret
: pushl %ebp movl %esp, %ebp subl $16,%esp movl 8(%ebp),%ecx movl 12(%ebp),%edx movl $1,%eax subl %edx, %ecx cmpl %ecx, $0 jl L1 movl $0,%eax L1: leave ret

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!