In: Computer Science
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