The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
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 (15.3k points)
edited by | 39 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 (15.3k points)
selected by

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
47,903 questions
52,285 answers
67,715 users