QUESTIONS AND PROBLEMS
QUESTIONS AND PROBLEMS 7.1 It is desired to implement the following instructions using block code: ADD, SUB, XOR, MOVE, HALT. Draw a block diagram. 7.2 The instruction length and the size of an address field are 9 bits and 3 bits respectively. Is it possible to have 6 two-address instructions 15 one-address instructions 8 zero-address instructions using expanding op-code technique? Justify your answer. 7.3 Using the instruction format of Problem 7.2, is it possible to have 7 two-address instructions 7 one-address instructions 8 zero-address instructions using expanding opcode technique? Justify your answer. 7.4 Assume that it is desired to have 2 two-address, 7 one-address, and 25 zero address instructions in a computer instruction set. Using expanding op-code technique with a 2-bit op-code and 3-bit address field, is it possible to accomplish the above? If so, justify your answer and determine the instruction length. 7.5 Assume that using an instructio...