Question: This question is based on the EASY 6 8 K simulated processor. Assume the contents of all data and address registers are equal to zero

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 Q3(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.
 This question is based on the EASY68K simulated processor. Assume the

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!