Question: 3 . In the following assembly code, identify the control structure that is present. Mark all that you find. function: pushq % rbp movq %
In the following assembly code, identify the control structure that is present. Mark all that you find.
function:
pushq rbp
movqrsprbp
subq $rsp
movledi, rbp
movlesi, rbp
movl $rbp
jmp L
L:
movlrbpeax
cmplrbpeax
jge L
movlrbpeax
addleax, rbp
jmp L
L:
movlrbpeax
addleax, rbp
L:
movlrbpedx
movlrbpeax
addledx, eax
movleax, rbp
L:
cmpl $rbp
jle L
movlrbpeax
leave
ret
a if statement
b ifelse statement
c while loop
d dowhile loop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
