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 EASYK 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 E Processor
Instruction Set of the EASYK simulator.
a Figure Qa is a program segment for the course's simulated processor. Assume all
numbers are in hexadecimal.
Figure Qa
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?
marks
ii From which instructions do you deduce the answers in Qai
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?
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 instructionbyinstruction level; give
the overall task of the loop.
marks
v Rewrite the program in Figure Qa 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
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
