This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
a. Assume memory location 100(S2) = 10 and 200(S2) = 4
Time 0, S2 and S5 = 50
Time 1, LD S1, 100(S2), S1 = 10, S2 = S5 = 50
Time 2, LD S3, 200(S2), S1= 10, S3=4, S2=S5=50
Time 3, sub S4, S1, S3, S1 = 10, S2=S5=50, S3 = 4, S4 = 6
Time 4, sub S2, S2, S1, S1=10, S2 = 49, S3 = 4, S4 = 6, S5=50
Time 5, jgz S4, Divison, no changes to memory or registers...
This is only a preview of the solution. Please use the purchase button to see the entire solution