Problem
mov ecx, 5
mov eax 6
add ecx, eax
shr eax, 7
shl ecx, 4
sub ecx, eax
cmp ecx, eax
jge loc_401060
A. What is the value of eax AFTER the shr operation? What about ecx AFTER the shl operation?
B. What does the cmp flag effectively do in order to compare the two values for the upcoming jump? (be specific!)
C. What is the value of the carry flag (CF) after the cmp instruction?
D. Is the jump at the end taken? Why?