Answered step by step
Verified Expert Solution
Link Copied!

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 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions