Escolar Documentos
Profissional Documentos
Cultura Documentos
Q3. With reference to the execution unit block diagram and associated rules of operation (given at
the end of the paper) write level 2 flowcharts for
(a) Address mode sequence for Register Indirect with displacement addressing mode
[Ry+d]@].Clearly state the assumptions you are making.
(b) A common sequence that can implement register to register instructions ADD, SUB and AND.
[3M+3M]
Q4. A CISC instruction set contains a powerful instruction that can test all the elements of a one
dimensional array and return the total count of non-zero elements of the array. RX field in the
instruction word specifies the register that contains the array size (number of elements in the array);
RY field specifies the register into which the count of non-zero elements of the array is returned by
the instruction. Elements of the array are stored in the memory at successive addresses starting
from the absolute address specified in the extension word of the instruction. At the end of the
execution of instruction value of Rx will be Zero
Write level 2 flowcharts for the instruction using the execution unit schematic diagram and rules of
operation given at the end of the QP. [6M]