Reference no: EM133341624
Computer Architecture and Data Communication - International Advanced Diploma in Network and Computer Security
Question 1: (a) Describe the function of the following in the fetch-execute cycle.
• Program counter
• The address bus
• The data bus
• The decoder
• The Arithmetic and Logic unit
(b) Instruction ADD {[602] [600] [601]} add number stored in addresses 601 and number stored in address 600 and store the results in address 602. Assume instruction stored in address 100 show the fetch and execute steps.
Question 2:
Write the program in assembly language that evaluates X = (A / B) * (C - (D / E)*F) and provide the register transfer operation in the following formats. You may use the address format given in table.
• Three address format
• Two address format
• One address format
One Address Format X variable
|
Two Address Format X variable
R register
|
Three Address Format X and Y variables
R register
|
LOAD
|
X
|
MOV R1, X
|
ADD R1 , X, Y
|
ADD
|
X
|
ADD R1, X
|
SUB R2 , X, Y
|
SUB
|
X
|
SUB R2, X
|
MULT R3 , X , Y
|
MUL
|
X
|
MUL R3, X
|
DIV R1, X, Y
|
STORE
|
X
|
DIV R3 ,X
|
|
Question 3: Give the assembly codes in Zero Address format for the following expression.
X = (A * B) + (C / D) * E - F
Question 4: Convert the following arithmetic expression into Reverse Polish Notation. Show intermediate steps involved in converting the expression.
R = A - B + (C / D) * (A + D)
Question 5:
(a) Explain what is meant by Memory Cycle Time.
(b) Explain the purpose and content of the address field, illustrate with an example.
(c) List the Benefits of using subroutines.