Question

Problem 1. Describe the typical life cycle for an instruction. Problem 2. Suppose ‘a’ and ‘b’...

Problem 1. Describe the typical life cycle for an instruction.

Problem 2. Suppose ‘a’ and ‘b’ are two signed integers. We would like to see whether ‘a’ is greater or equal to ‘b’. To check for the signed greater or equal (GE) condition, we evaluate whether the negative flag N is equal to the overflow flag V. If they are equal, then the GE condition is true. Explain the reasons why this works.

Homework Answers

Answer #1

Instruction life cycle:

Instruction:An instruction is nothing but segement of code that may contains severel steps to be executed by processor.


Generally Instruction contains following stages:

1.Fetch
2.Decode
3.Execute

1). Fetch the instruction: In this stsge the intruction brings to the instruction storage. Whe need to know about Instruction Register,it is nothing but some storage location in memory that holds instructions for decoding.

2). Decode the instruction: Hardware determines what the opcode is(opcode is nothing but function), and determines the address of operands. The adress locations are either memory addresses or from register.If any operands from memory locations, CPU initiate memory read cycles to read them into CPU registers.This type of addresses are called as effective addresses.

3).Execute: In this stage CPU Performs the function of the instruction. If the instruction need to execute any arithmetic or logic operations, CPU utilizes the ALU circuits to carry out the operation on data in registers.
Execute stage is the only stage of the instruction cycle that is useful in user prospective.
One of the major goals of CPU design is spend a higher percentage of the time in the execute stage.


Finally result will be stored in memory if necessary.Suppose storage destination is a memory address, again CPU initiates a memory write cycle to transfer the result from the CPU to memory.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Problem Definition: Problem: Given an array of integers find all pairs of integers, a and b,...
Problem Definition: Problem: Given an array of integers find all pairs of integers, a and b, where a – b is equal to a given number. For example, consider the following array and suppose we want to find all pairs of integers a and b where a – b = 3 A = [10, 4, 6, 16, 1, 6, 12, 13] Then your method should return the following pairs: 4, 1 15, 12 13, 10 A poor solution: There are...
1. In which phase of the business cycle is the U.S. economy currently in? ________________. How...
1. In which phase of the business cycle is the U.S. economy currently in? ________________. How many months has the U.S. economy been in this stage of the business cycle? ___________ months 2. How long has the current expansion/recovery lasted to date? _________________ How does this compare to the average length of U.S. recessions since 1854? ______________________________. 3. What do the last four recoveries/expansions (that is, the current recovery/expansion and the previous three recovery/expansions), suggest about a new trend in...
1. Al Einstein has a utility function that we can describe by u(x1, x2) = x21...
1. Al Einstein has a utility function that we can describe by u(x1, x2) = x21 + 2x1x2 + x22 . Al’s wife, El Einstein, has a utility function v(x1, x2) = x2 + x1. (a) Calculate Al’s marginal rate of substitution between x1 and x2. (b) What is El’s marginal rate of substitution between x1 and x2? (c) Do Al’s and El’s utility functions u(x1, x2) and v(x1, x2) represent the same preferences? (d) Is El’s utility function a...
1) Describe an example of each of the following that may be found of your kitchen:...
1) Describe an example of each of the following that may be found of your kitchen: Explain how your choice falls into this category, and if there is a chemical name or symbol for it, provide that as well. Provide a photo of your example with your ID card in it. a) a compound b) a heterogeneous mixture c) an element (symbol) Moving to the Caves… Lechuguilla Caves specifically. Check out this picture of crystals of gypsum left behind in...
Item 1 In the case below, the original source material is given along with a sample...
Item 1 In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button. Original Source Material Student Version There is a desperate need for theorists and researchers to generate and refine a new breed of learning-focused instructional design theoriesthat help educators and trainers to meet those needs, (i.e., that focus on learning and that foster development of initiative, teamwork, thinking skills, and diversity)....
1-How important do you believe it is to be task-oriented and relationship-orientated? How would you describe...
1-How important do you believe it is to be task-oriented and relationship-orientated? How would you describe Musk? 2-Why do you think Musk is successful in overcoming obstacles and handling conflict? How do you overcome obstacles in influencing individuals in your life? 3-Besides the personality traits given in chapter 2, what other traits attribute to a great leader? Recognizing Your Traits The definition of intelligence is the ability to acquire and apply knowledge and skills. Elon Musk knew little about rockets...
As you saw from the lab PowerPoint slides last week, you will be doing a research...
As you saw from the lab PowerPoint slides last week, you will be doing a research study looking at ‘Aggression Priming” for your first paper. For this week’s discussion, I want you to discuss with your group what you think this study is about. What is the hypothesis? What theory does it come from? What do you predict will happen (do you expect something different than the hypothesis in the researcher instructions? If so, what and why?)? Do you think...
1. What are the requirements for successful price discrimination? Does this type of dry cleaning qualify?...
1. What are the requirements for successful price discrimination? Does this type of dry cleaning qualify? 2. What are other examples of price discrimination? 3. The effectiveness of price discrimination is a different question than whether businesses should be able to discriminate by price. Is this an issue that deserves regulation, or is it best left to the market? Why Women Pay More From dry cleaning to haircuts, women often pay more than men due to gender pricing. Find out...
QUESTION 1 ? What is the relationship between family dysfunction and schizophrenia? a. ?Research has substantiated...
QUESTION 1 ? What is the relationship between family dysfunction and schizophrenia? a. ?Research has substantiated a link between family dysfunction and schizophrenia but can't say which causes the other. b. ?Family dysfunction is a major causative factor for schizophrenia. c. ?Research has failed to substantiate a direct causal link between family dysfunction and schizophrenia. d. ?Family dysfunction plays a minor role in developing schizophrenia. 1.00000 points    QUESTION 2 ? Chuck has no life plan; he simply lives from...
Plagiarism Certification Tests for Undergraduate College Students and Advanced High School Students These tests are intended...
Plagiarism Certification Tests for Undergraduate College Students and Advanced High School Students These tests are intended for undergraduate students in college or those under 18 years of age. Read these directions carefully! The below test includes 10 questions, randomly selected from a large inventory. Most questions will be different each time you take the test, You must answer at least 9 out of 10 questions correctly to receive your Certificate. You have 40 minutes to complete each test, and you...