I am doing an exercise from this question:
The solution is attached on the right hand side. I am just wondering is there a mistake in the solution in particular the part that I underlined?
Should line 7 be the following instead of the given underlined answer? 5(%rbx, %rcx), %rbx Compute x += y + 5
based on the original C code on the left where in the while loop it has this:
x += y; (*p ) += 5;
I thought there maybe a mistake in the solution? (the solution is the one that I underlined with red)
could someone comment? thank you