13 13 votes A processor has $64$ general-purpose registers and $50$ distinct instruction types. An instruction is encoded in $32$-bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction?$\text{ADD R1}$, $\#25$ / / $\text{R 1=R 1+25}$$16$$20$$22$$24$ CO & Architecture gatecse2025-set1 co-and-architecture machine-instruction easy two-marks + – Arjun 7.7k views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Show 2 previous comments pooja_singh 2 commented Nov 11, 2025 reply Follow flag Answer 20 bits,,,https://correctbrain.com/buy/ 5 5 replyShare Jayvijay Chauhan commented Jul 11 reply Follow flag The #symbol explicitly tells you that this is an Immediate Addressing Mode instructionThe purpose of including ADD R1, #25 The instruction shows only one register (R1). This tells you that the CPU uses (R1) as both the source and destination. You only subtract 6 bits for registers ((32 - 6 (opcode) - 6 (one register) = 20 bits) 0 0 replyShare legend_of_cse commented Aug 31 reply Follow flag Similar Question https://gateoverflow.in/39547/gate-cse-2016-set-2-question-10 0 0 replyShare Please log in or register to add a comment.
7 7 votes (B) 20 we need 6 bits to represent registers we need 6 bits to represent opcode (we have 50 distinct types of instructions) we have 32 bits instruction [ OPCODE | REGISTER | VALUE] [ 6 | 6 | 32-(6+6) ] = 32 - 12 = 20 Maximum 20 bits can be used to store immediate operand. param_modi answered Feb 28, 2025 param_modi comment Share Follow See all 2 Comments 2 2 Comments reply Gautamm05 commented Jun 26, 2025 reply Follow flag But we also have address modes also in a instruction. Why are we not considering that? 0 0 replyShare N_i_t_i_n commented Sep 1, 2025 reply Follow flag included in operand field info. 0 0 replyShare Please log in or register to add a comment.
2 2 votes <------------------------------------------------- 32bits-------------------------------------->OpcodeRegisterOperandOpcode=no.of bits to address differnt instructions=ceil(log(50))=6There are 64 registers.So log(64)=6 bits needed to address all registersRemaining bits for operands=32-(6+6)=20 bits Sunnychxfyhc answered May 4, 2025 Sunnychxfyhc comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote Ans = 20 Prem Sai Kodi answered Mar 3, 2025 Prem Sai Kodi comment Share Follow 0 reply Please log in or register to add a comment.