Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 . Compute the total clock cycles that the following MARIE code will take to execute. Assume X is 5 and Y is 6 before

6. Compute the total clock cycles that the following MARIE code will take to execute. Assume X is 5 and Y is 6 before execution begins. For this problem, use the instructors version of RTN where fetch takes 4 cycles instead of 3 and where MAR IR[11-0] only occurs when needed. Skipconds execution is 1 cycle if the condition is false and 2 cycles if the condition is true (that is, testing the condition is 1 cycle, performing PC PC +1 takes a 2nd cycle).
Input
Store Z
Load X
Subt Y
Skipcond 10
Jump Cond2
Jump Next
Cond2: Skipcond 00
Jump Next2
Next: Load Z
Add #1
Store Z
Jump Done
Next2: Load Z
Subt #1
Store Z
Done: Output
Halt

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_2

Step: 3

blur-text-image_3

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

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions