Question: 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.

Please show all work and explanations. (14 points) Refer to the pages

(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

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!