April
1999 QUESTION 1 (Compulsory) Total Marks: 20 Marks |
Click here to access other
questions
GRADE B
|
(a) | Define the following terms: | |
(i) MBR | [1] | |
(ii) MAR | [1] | |
(iii) SP | [1] | |
(iv) PC | [1] | |
(v) DMA | [1] | |
(vi) CPU | [1] | |
(i) MBR stands for
Memory Buffer Register It is used to hold temporary data or instructions from and to the memory. (ii) MAR stands for Memory Address Register (iii) SP stands for Stack Pointer (iv) PC stands for Program Counter (v) DMA stands for Direct Memory
Access CPU stands for Central Processing
Unit
|
||
(b) | What is the importance of a Program Status Word (PSW) or Status Register (SR)? | [3] |
Program Status Word
(PSW) or Status Register (SR) is the computer program that is used to check the status of
the programs or external devices. It is used to check whether the devices are ready to do the job or not, and if it is not then the PSW or SR will return an error message. CPU also use PSW or SR to read something from the I/O devices. CPU sends the command to PSW or SR to check the status of the I/O devices. If they are ready, then I/O module will read the data and then the CPU will write that data.
|
||
(c) | List four devices commonly found in a network, and explain the purpose of each. | [4] |
|
||
(d) | For the following instruction mnemonics, identify the appropriate addressing modes: | [3] |
(i) ADD AX, 10 | ||
(ii) ADD AX [BX + 3] | ||
(iii) MOV AX [VAR] | ||
(i) It is
immediate addressing. (ii) It is a displacement addressing. (iii) It is a direct addressing.
|
||
(e) | To operation ADD ACC, MEM uses the ALU to add the value stored in the accumulator to the value that is stored in the memory location specified in the instruction, storing the result in the accumulator. Show the steps of the execution cycle on the operation. |
[4] |
Execution cycle IR ® decoding circuitry MEM ® MAR Remarks: MAR = MEM MAR ® address bus read control line is asserted ¬ [MEM] MEM ® data bus ® MBR MBR ® AX AX = Acc + MEM |