You are on page 1of 2

.

P A U L ’S

UN
I VE R S I TY
S T
SE R TY
VANT
S OF GO D AND HUMANI

St. Paul’s University


Information and Computer Science Department
Limuru Campus - Regular

CSC 2211 Computer Organization and Architectures


CAT 1 (Feb 2022)

INSREUCTIONS
Answer Both Questions
Question One (15 marks)
Below is a table showing different operations performed by ALU

a) How is this information decoded in order to perform the desired task? (3 marks)

b) Which storage units would be used by a simple CPU model? what do we call these storage units?
(4 marks)
c) Use the following table for answering the question below

Instruction Code Instruction Code


0000 ADD 1000 LDAI imm
0001 SUB 1001 LDAA addr
0010 MULT 1010 LDBI imm
0011 DIV 1011 LDBA addr
0100 OR 1100 STC addr
0101 AND 1101 HALT
0110 NAND 1110 NOP
0111 ADD 1111 NOP
• i) Consider a problem to add two numbers from the system and store the result in memory, say we
want to add 5 to 7. Write a machine specific program related to instruction set of the machine that
allows this addition and store the results in location 15. (4 marks)
• ii) Consider another problem to divide two numbers 6 and 3 store in the memory locations 11 and
13 respectively and store the results in memory location 12. Write a machine specific program
related to instruction set of the machine that allows this operation.
(4 marks)

Question Two (15 marks)


a) Illustrate the basic components of a Von Neumann Machine showing how they are
interconnected. (5 marks)
b) Given two Binary numbers A = 11001 and B = 10101

i) Construct a subtructor to compute A-B and show how it does the subtraction. (4 marks)

ii) Explain how it is performs its subtraction and give the solution. (5 marks)

c) Which two special registers are used for accessing data from the memory? (2 marks)

*************************************** END *******************************

You might also like