December
1999 QUESTION 3 Total Marks: 15 Marks |
Click here to access other
questions
Click to access |
(a) |
Explain the difference between direct and indirect addressing.
|
[1] |
(b) |
The diagrams below show register and memorycontents. For each instruction,identifythe addressing mode used and the value that is loaded into the accumulator: (i)LOAD [R3 ] (ii)LOAD @[R1 ] (iii)LOAD @[1FFE ] (iv)LOAD [1FFF ]
|
[4] |
(c) |
In the design of an instruction set,it maynot be possible to store all operands in the instruction.What are the two trade-offs which must be made?
|
[2] |
(d) |
Briefly explain these two displacement addressing methods,with the aid of a diagram: (i)base addressing [3 marks ] (ii)indexed addressing.[3 marks ]
|
[6] |
(e) |
List one advantage and one disadvantage of stack/implied addressing. |
[2] |