Question: (1) (1) () (iv) (v) l-'iEurE QE!H! The program includes a loop. Which register is being used as a loop counter and how many times

(1) (1) () (iv) (v) l-'iEurE QE!H! The program includes a loop. Which register is being used as a loop counter and how many times in total will the set of instructions within the loop be executed? (2 marks) From which instruction(s) do you deduce the answers in Q3(a){i)? (2 marks) The loop picks up successive data items from a block of locations in data memory. What are the lowest and highest addresses in hexadecimal of the locations in this block? (2 marks) What is the function of the block of instructions that make up the loop in the program? Do not give a description on an instruction-by-instruction level; give the overall task of the loop. (3 marks) Rewrite the program in Figure ()3(a) using a subroutine and test its functionality with the course's simulator . The subroutine should perform the functions of the loop. The subroutine occupies memory space just below the main program. Use SUBR as the subroutine address label
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
