Question: ; short main ( short x , short y , short z ) ; x in % edi, y in % esi, z in %

; short main(short x, short y, short z)
; x in %edi, y in %esi, z in %edx
main:
movl %edx, %eax
imull %edi, %eax
cmpl %esi, %edi
jle .L2
cmpl $11,%edx
jle .L3
movl %edi, %eax
subl %edx, %eax
ret
.L3:
leal (%rsi,%rdi),%eax
ret
.L2:
cmpl %edi, %edx
jle .L1
movl %edx, %eax
subl %esi, %eax
.L1:
ret
Question 1
Not yet answeredPoints out of 6.00 Flag question
Question text
short main(short x, short y, short z){
short val = Blank 1 Question 1 ;
if (x > y){
if ( Blank 2 Question 1)
val = Blank 3 Question 1 ;
else
val = x + y;
} else if ( Blank 4 Question 1)
val = Blank 5 Question 1 ;
return Blank 6 Question 1 ;
}

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!