Question discussion

Find the maximum number of opcodes possible if instruction format provides 5 bits for the opcode.

198769Medium 2 replies 555 views
0
CCommunity
Operation code specifies the operation to be performed. The instruction format provides n bits for the opcode so that there can be as many as 2n different opcodes.

Here, n = 5

2n = 25 = 32
0
CCommunity
maximum no of instructuion occur when instruction follow 0 addressing mode , coz in 0 addressing mode there is only opcode,

hence 5 bit instruction meance 2^5 no of instruction = 32