Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please show all work and explanations. (14 points) Refer to the pages at the end of the exam to review the microarchitecture of the Mic-1

Please show all work and explanations.

image text in transcribed

(14 points) Refer to the pages at the end of the exam to review the microarchitecture of the Mic-1 computer from the handout. For this machine write a sequence of microinstructions to implement execution of the following new MAC-1 machine instructions. Give your answer in MAL, with one line per microinstruction, using as few microinstructions as necessary to get the machine instruction correctly executed, and do not unnecessarily change values in registers visible to the assembly language programmer. (Recall that the instruction fetch cycle begins at control store address zero, and assume that the instructions have been fetched and decoded.) (5 points) Implement execution of the new MAC-1 looping control instruction: JGDE x a. which first checks the contents of register E, and if the content of E is strictly greater than zero, then jumps to memory address "x"; if the content of E is not strictly greater than zero, then no Jump is taken; in either case, the content of register E is decremented by one Assume this microinstruction sequence starts in address 100 of control store and that locations > 100 are available for youE use. b. (9 points) Implement execution of the new Mac-1 memory reference instruction which performs a one bit position rotate left (circular) shift of the contents of memory locationx" and places the result in memory location "x" with no other side effects visible in the ac, sp, or pc regis- ters. (You may use the tir, a, b, or c, etc. scratch registers as necessary to accomplish the task.) Assume that this microinstruction sequence starts in address 120 of control store and that locations > 120 are available for your use. (14 points) Refer to the pages at the end of the exam to review the microarchitecture of the Mic-1 computer from the handout. For this machine write a sequence of microinstructions to implement execution of the following new MAC-1 machine instructions. Give your answer in MAL, with one line per microinstruction, using as few microinstructions as necessary to get the machine instruction correctly executed, and do not unnecessarily change values in registers visible to the assembly language programmer. (Recall that the instruction fetch cycle begins at control store address zero, and assume that the instructions have been fetched and decoded.) (5 points) Implement execution of the new MAC-1 looping control instruction: JGDE x a. which first checks the contents of register E, and if the content of E is strictly greater than zero, then jumps to memory address "x"; if the content of E is not strictly greater than zero, then no Jump is taken; in either case, the content of register E is decremented by one Assume this microinstruction sequence starts in address 100 of control store and that locations > 100 are available for youE use. b. (9 points) Implement execution of the new Mac-1 memory reference instruction which performs a one bit position rotate left (circular) shift of the contents of memory locationx" and places the result in memory location "x" with no other side effects visible in the ac, sp, or pc regis- ters. (You may use the tir, a, b, or c, etc. scratch registers as necessary to accomplish the task.) Assume that this microinstruction sequence starts in address 120 of control store and that locations > 120 are available for your use

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions

Question

3. Who would the members be?

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago