The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
41 views
A processor has $70$ distinct instructions and $46$ general purpose registers. A $32$-bit instruction word has an opcode, two register operands and an immediate operand. The number of bits available for the immediate operand field is $Z$. Compute the smallest positive value of the difference $2^p - Z$, where p is some non-negative integer _________
asked in CO & Architecture by Boss (17.2k points)
edited by | 41 views

1 Answer

+1 vote
Best answer
For OPCODE part at least 7 bits are needed and for Register part at least 6 bits are needed. So $7+6+6+Z=32$ gives $Z=13$ bits.
So smallest value of $2^p-13= 2^4-13=3$ for $p=4$.
answered by Boss (17.2k points)
selected by
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,049 questions
53,194 answers
184,531 comments
70,402 users