Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Let's say we have an MPS430 that operates at 16 MHz. Assume the mov instructions require 1 cycle to execute, the arithmetic and logic 2

Let's say we have an MPS430 that operates at 16 MHz. Assume the mov instructions require 1 cycle to execute, the arithmetic and logic 2 cycles, the jumps (jump or not) 3 cycles, the ret and instructions that work with the stack 4 cycles . Assume that 50% of the time a sum is made a carry is generated and the other 50% of the time it is not generated. Determine the average time, in nano seconds, that it takes to execute the following subroutine. Use three decimal places for your answer.

sub3: add R11, R12 jc up mov R11, & x mov R12, & and jmp end above: mov # 0, & x finish: ret

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

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

What is a board of directors?

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago