Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started