Question: [PLEASE SORT OUT THE ANSWERS INTO SECTIONS] Question 3 This question is based on the EASY68K simulated processor. Assume the contents of all data and

[PLEASE SORT OUT THE ANSWERS INTO SECTIONS] [PLEASE SORT OUT THE ANSWERS INTO SECTIONS] Question 3 This question is based on the EASY68K simulated processor. Assume the contents of all data

Question 3 This question is based on the EASY68K simulated processor. Assume the contents of all data and address registers are equal to zero before the start of the program. All numbers are in hexadecimal. Demonstrate how instructions of a program are executed by using the E114 Processor Instruction Set of the EASY68K simulator. (a) Figure Q3(a) is a program segment for the course's simulated processor. Assume all numbers are in hexadecimal. Figure Q3(a) (i) 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) (ii) From which instruction(s) do you deduce the answers in part (a) (i)? (2 marks) (iii) 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) (iv) 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) (v) Rewrite the program in Figure Q3(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. Initialise and use test data: 1,2,3, up to the loop counter deduced in part (a) (i). Assume the contents of all data registers are set to zero before the start of the program. (Reminder: All numbers including the test data are in hexadecimal.) Once it is working correctly, copy the codes and pastes your program to your MS WORD answer document. Your submission should be like the format given in Figure Q3(a). Do not submit a screenshot of the program. (8 marks) Submit a screenshot of the memory contents that include addresses from 3E0 to 470 when the program stops. Use the instructions given below to obtain the screenshot

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!