Question

    Given a 16-bit instruction format with 4 bits for the opcode and 12 bits for the address, calculate the maximum number of different opcodes that can be accommodated.

    A 61 Correct Answer Incorrect Answer
    B 16 Correct Answer Incorrect Answer
    D 8 Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    The number of different opcodes that can be accommodated is given by 2^n, where n is the number of bits dedicated to the opcode. In this case, n = 4 (4 bits for opcode) Maximum number of opcodes = 2^4 = 16

    Practice Next

    Relevant for Exams:

    ×
    ×