edited by
2,034 views
1 votes
1 votes

In a $10$-bit computer instruction format, the size of address field is $3$-bits. The computer uses expanding OP code technique and has $4$ two-address instructions and $16$ one-address instructions. The number of zero address instructions it can support is

  1. $256$
  2. $356$
  3. $640$
  4. $756$
edited by

2 Answers

Best answer
6 votes
6 votes
Total number of encodings possible are:  $2^{10}$

Number of encodings from two-address instructions:   $4\times 2^{3}\times 2^{3}=256$     

Number of encodings from one address instructions:   $16\times 2^{3}=128$             

$\therefore$  Number of encodings from zero address instructions :    $2^{10}-256-128=640$

Option C is correct.
selected by
4 votes
4 votes

Here, Instruction format =10bits

Size of address field= 3bit

 For two address field

Op code=4bit add1= 3bit add2= 3bit

Uses 4  two address instructions

Remaining= 2^4 - 4=12

For One address instruction

Uses 16 one address instruction 

Remaining= 12 *2^3 -16

=12*8 -16

= 80

For zero address instruction

80*2^3 =640

Option C

 

Answer:

Related questions

3 votes
3 votes
1 answer
1
admin asked Apr 1, 2020
1,600 views
Match list $I$ with List $II$ and select the correct answer using the codes given below the lists :$${\begin{array}{|c|c|c|}\hline&\textbf{List I} & & \textbf{List II}\\\...
3 votes
3 votes
1 answer
2
admin asked Apr 1, 2020
870 views
Match list $I$ with List $II$ and select the correct answer using the codes given below the lists.$${\begin{array}{|c|c|c|}\hline&\textbf{List I} & & \textbf{List II}\\\h...
2 votes
2 votes
1 answer
3
admin asked Apr 1, 2020
686 views
Which of the following is not a form of main memory?Instruction cacheInstruction registerInstruction opcodeTranslation look-aside buffer
0 votes
0 votes
1 answer
4
admin asked Apr 1, 2020
1,332 views
Which of the following is a desirable property of module?IndependencyLow cohesivenessHigh CouplingMultifunctional