Question: Write a program that loops X times incrementing a counter each time through the loop. The value of X is stored in memory and will
Write a program that loops X times incrementing a counter each time
through the loop. The value of X is stored in memory and will have to be
accessed by indirect accessing load indirect instruction The program starts at
x and the x contains the address xA for the value of X which is
xF
Lab: Write a program that compares two values stored at memory locations
xA and xA If the value at xA is larger than the value at xA then
store the value of in R else store the value of in R Use PC offset
addressing to load contents of xA into R and xA into R
Lab: Repeat the previous using Base offset load register Use the load
immediate LEA instruction to setup the base R with the address of xA
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
