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
x3000 and the x3020 contains the address (x30A0) for the value of X (which is
x000F)
Lab-2: Write a program that compares two values stored at memory locations
x30A2 and x30A3. If the value at x30A2 is larger than the value at x30A3 then
store the value of 1 in R1, else store the value of 0 in R1. Use PC + offset
addressing to load contents of x30A2 into R2 and x30A3 into R3.
Lab-3: Repeat the previous using Base + offset (load register). Use the load
immediate (LEA) instruction to setup the base (R4) with the address of x30A2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!