Professional Documents
Culture Documents
Coa511s Supp Test Memo
Coa511s Supp Test Memo
Page 1 of 6
SECTION A: Answer All Questions. Each Question weighs 1 Mark. [10 MARKS]
Circle the correct answer
1. The raw speed of the microprocessor will not achieve its potential unless it is fed a constant
stream of work to do in the form of computer instructions [True]/False].
9. Which of the following interrelated factors go into determining the use of the
addressing bits?
A. number of operands B. number of register sets
C. address range D. all of the above
10. The situation where the second instruction needs data produced by the first
instruction to execute is referred to as __________.
A. True data dependency B. Output dependency
C. Procedural dependency D. Antidependency
Page 2 of 6
SECTION B: Structured questions. Answer All Questions. [30 MARKS]
Question 1
i) Registers are fast stand-alone storage locations that hold data temporarily in CPU.
List any three types of registers and explain their functions. [6 Marks]
Instruction Register -Store the instruction currently being executed [2]
Data Registers- Hold data before it can be processed [2]
Program counter(PC)- indicates where a computer is in its program [2]
Memory buffer register(MBR) stores the data being transferred to and from[2]
Accumulator(AC) Data Register(DR) Memory data Register (MDR) e.t.c
(Any 3 Registers and function)
i) Explain with the aid of examples the four important features a machine’s
instruction must specify [8 marks]
1) Which operation to perform: example add r0, r1, r3
Other Op codes are : add, load, branch, etc.
2) Where to find the operands: example In CPU registers, memory cells, I/O
locations, or part of instruction
(add r0, r1, r3 )
3) Place to store result: examples-again CPU register or memory cell
add r0, r1, r3
Page 3 of 6
Direct addressing modes
• If data is present at the 16-bit address mentioned in the instruction, it is called direct
addressing mode.
• For example,
ADD AX, [0101H]
Here, effective address is ;
10H * DS + 1111H for the first example and
Question3
i) Differentiate between the structure of a CISC processor and a RISC processor.[4 Marks]
i) CISC tend to use fewer registers in comparison to RISC [2]
ii) CISC has fewer execution cycles[2]
iii) CISC processors are more complex hence they can’t be easily fabricated [2]
iv) CISC uses variable length instructions [2]
v) Other differences ( see the table below)
Page 4 of 6
[Any two points explained]
iii) An 8086 CPU contains an Accumulator(AC) register used for holding data during basic
arithmetic and other operations. Explain the step by step process of performing the
following operation using one address instruction (reference lecture 8-slide#16)
Page 5 of 6
Y = _ A-B___
C +(D*E). [4 Marks]
One-address instruction- For this to work, a second address must be implicit. This was
common in earlier machines, with the implied address being a processor register known as
the accumulator (AC). The accumulator contains one of the operands and is used to store the
result. In our example, eight instructions are needed to accomplish the task
Page 6 of 6