Question: 5. (Page 213) Fill in the missing expression in the below C code with blue color by using the assembly code (right column)- (16 points)


5. (Page 213) Fill in the missing expression in the below C code with blue color by using the assembly code (right column)- (16 points) 2 points for each blank long cond1(long x, long y, long z) { | # The assembly code is displayed below: x in %rdi, y in %rsi, z in %rdx long val= if )1 condl: if lead (%rdi, %rsi), %rax {val= else cmpg $6, %rdi jle L2 val- else if jleL3 val- else val= ret L3: return val; )//close conl function ret L2: 5. (Page 213) Fill in the missing expression in the below C code with blue color by using the assembly code (right column)- (16 points) 2 points for each blank long cond1(long x, long y, long z) { | # The assembly code is displayed below: x in %rdi, y in %rsi, z in %rdx long val= if )1 condl: if lead (%rdi, %rsi), %rax {val= else cmpg $6, %rdi jle L2 val- else if jleL3 val- else val= ret L3: return val; )//close conl function ret L2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
