Question

In: Computer Science

Describe, step-by-step, what the Little Man does to execute an UNCODITIONAL BRANCH instruction. If a user...

  1. Describe, step-by-step, what the Little Man does to execute an UNCODITIONAL BRANCH instruction.
  1. If a user wants to enter two numbers, what must the Little Man program do before she enters the second number?  Why?

  1. Write a Little Man program that accepts two numbers as input and outputs the numbers in reverse order.
  1. Even if he runs out of instructions to execute, the Little Man only stops trying to execute instructions under one condition.  What is that condition?  What happens if the Little Man runs out of instructions and that condition is not met?
  1. When a value is copied from one register to another, what happens to the value in the sourceregister?  What happens to the value in the destinationregister?
  1. If the memory register for a particular computer is 32 bits wide, how much memory can this computer support?

Solutions

Expert Solution

Solution

If a user wants to enter two numbers, what must the Little Man program do before she enters the second number?  Why?

User has to save it away in any mailbox because the number will be overwritten otherwise
---

Write a Little Man program that accepts two numbers as input and outputs the numbers in reverse order.

00           901        input

01           390        store i 90

02           901        input

03           902        output

04           590        load the number in place 90

05           902        output

06           000        coffee break

---

Even if he runs out of instructions to execute, the Little Man only stops trying to execute instructions under one condition.  What is that condition?  What happens if the Little Man runs out of instructions and that condition is not met?

It is the COB (coffebreak) instruction, if it is forgotten then there will be bugs. The little man will try to execute the instruction that comes next, usually a note about that it is data stored in any mailbox.

---

When a value is copied from one register to another, what happens to the value in the sourceregister?  What happens to the value in the destinationregister?

It is overwritten with the new value and the source value remains unchanged.

---

If the memory register for a particular computer is 32 bits wide, how much memory can this computer support?

A 32-bit memory address allows a capacity of 4 gigabytes (GB)

---

tried to answer as much as i can

really sorry couldnt able to finish first question

all the best


Related Solutions

Describe the Pipeline branch handling techniques and compare their impacts on the virtual memory, instruction cycle,...
Describe the Pipeline branch handling techniques and compare their impacts on the virtual memory, instruction cycle, and temporal locality concepts for international scientific research laboratory operations by giving definitions, examples, justifications, etc.
What is the main function of the legislative branch? What role does the executive branch play...
What is the main function of the legislative branch? What role does the executive branch play in the formation of laws? Summarize how these two branches work together.
provide step by step explanation of Man in the Middle attack. Please be very specific (What...
provide step by step explanation of Man in the Middle attack. Please be very specific (What is shared, what is sent etc).
Can somebody describe what this following code does step by step. import turtle turtle.penup() x =...
Can somebody describe what this following code does step by step. import turtle turtle.penup() x = int(input("Enter x coordinate of top-left corner: ")) y = int(input("Enter y coordinate of top-left corner: ")) side = int(input("Enter side of the largest square: ")) if side >= 100: gap = int(input("Enter gap between squares: ")) if gap < side: turtle.goto(x,y) turtle.pendown() while True: for i in range(4): turtle.forward(side) turtle.right(90) side -=gap turtle.penup() x += gap y -= gap turtle.goto(x,y) turtle.pendown() if side<0: exit(1)
Questions: What are the 7 steps of the TCA Methodology and describe each step? What does...
Questions: What are the 7 steps of the TCA Methodology and describe each step? What does Eco-Efficiency mean? What are the objectives of the TCA Methodology? What is the best way to implement the TCA methodology?
Conduct research relating to differentiated instruction. What does differentiated instruction mean? How can a teacher incorporate...
Conduct research relating to differentiated instruction. What does differentiated instruction mean? How can a teacher incorporate this concept into their lesson planning? How do student's benefit from differentiation?
What does Tesla need in order to execute their plan selling their cars direct to the...
What does Tesla need in order to execute their plan selling their cars direct to the customer. What resources do they need? How would they do it? Explain in your own words.
What is MUS? What steps do auditors follow to execute a MUS? How does an auditor...
What is MUS? What steps do auditors follow to execute a MUS? How does an auditor evaluate the results of a MUS? What issues should auditors address before concluding that the auditee’s balances are misstated?
How does the Federal Reserve manipulate the interest rate? Describe the process step by step. List...
How does the Federal Reserve manipulate the interest rate? Describe the process step by step. List out your steps 1. 2. 3. Etc…
What does it mean when the L1 instruction cache miss rate is 0
What does it mean when the L1 instruction cache miss rate is 0
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT