Last Updated :
19 Nov, 2018
A machine has a 32-bit architecture, with 1-word long instructions. It has 64 registers, each of which is 32 bits long. It needs to support 45 instructions, which have an immediate operand in addition to two register operands. Assuming that the immediate operand is an unsigned integer, the maximum value of the immediate operand is ____________.
(A) 16383
Answer: (A)
Explanation:
1 Word = 32 bits
Each instruction has 32 bits
To support 45 instructions, opcode must contain 6-bits
Register operand1 requires 6 bits, since the total registers
are 64.
Register operand 2 also requires 6 bits.
14-bits are left over for immediate Operand Using 14-bits,
we can give maximum 16383,
Since 2^14=16384(from 0 to 16383)
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...