• edited by
7,283 views
7 7 votes

Consider a $32$- bit processor which supports $70$ instructions. Each instruction is $32$ bit long and has $4$ fields namely opcode, two register identifiers and an immediate operand of unsigned integer type. Maximum value of the immediate operand that can be supported by the processor is $8191$. How many registers the processor has?

  1. $32$
  2. $64$
  3. $128$
  4. $16$

3 Answers

12 12 votes

$\underline{\textbf{Answer:}\Rightarrow}$

$\underline{\textbf{Explanation:}\Rightarrow}$

Opcode Reg1 Reg2 Immediate Operand

 

Number of instructions which are supported $=70$

$13-\text{bits}$ support the maximum value of immediate operand $=8191$

Now,

Number of bits needed for opcode $=7\;\text{bits}$

Number of bits left to represent register bits $=12$

which means $6-\text{bits}$ per register.

Hence, at max. $\mathbf{64}$ registers.

$\therefore \;\mathbf{(b)}$ is the correct option.

 

• edited by
6 6 votes

$32$ bit instruction contains opcode, two registers say $R1, R2$ and one unsigned immediate operand. 

Since 70 instructions are supported, each instructions will take $log70$= 7 bit for each opcode.

Maximum value of opcode is $8191$ that means it takes 13 bit ranging $0-8191$

Opcode(7 bit) R1 R2 Immediate Op.(13bit)

Bits needed for two registers = $32-7-13=12$

Each register takes 6 bits, i.e maximum 64 registers are possible.

Hence Option B) is correct

Answer:
Position:
Show:

Related questions

8 8 votes
6 6 answers
8.1k
8.1k views
Satbir asked Jan 13, 2020
8,083 views
A stack organized computer is characterised by instructions withindirect addressingdirect addressingzero addressingindex addressing
4 4 votes
1 1 answer
4.6k
4.6k views
Satbir asked Jan 13, 2020
4,590 views
Which of the following affects the processing power assuming they do not influence each otherData bus capabilityAddress schemeClock speed$3$ only$1$ and $3$ only$2$ and $...
10 10 votes
4 4 answers
7.5k
7.5k views
Satbir asked Jan 13, 2020
7,469 views
The immediate addressing mode can be used forLoading internal registers with initial valuesPerform arithmetic or logical operation on data contained in instructionsWhich ...
6 6 votes
6 6 answers
10.2k
10.2k views
Satbir asked Jan 13, 2020
10,206 views
A computer which issues instructions in order, has only $2$ registers and $3$ opcodes $\text{ADD, SUB}$ and $\text{MOV}$. Consider $2$ different implementations of the fo...