Answered step by step
Verified Expert Solution
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
Compute the total clock cycles that the following MARIE code will take to execute. Assume X is and Y is before execution begins. For this problem, use the instructors version of RTN where fetch takes cycles instead of and where MAR IR only occurs when needed. Skipconds execution is cycle if the condition is false and cycles if the condition is true that is testing the condition is cycle, performing PC PC takes a nd cycle
Input
Store Z
Load X
Subt Y
Skipcond
Jump Cond
Jump Next
Cond: Skipcond
Jump Next
Next: Load Z
Add #
Store Z
Jump Done
Next: Load Z
Subt #
Store Z
Done: Output
Halt
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