A byte-addressable computer has a memory capacity of 2m Kbytes and can perform…

2014

A byte-addressable computer has a memory capacity of 2m Kbytes and can perform 2n operations. An instruction involving 3 operands and one operator needs a maximum of

  1. A.

    3m bits

  2. B.

    m + n bits

  3. C.

    3m + n bits

  4. D.

    3m + n + 30 bits

Attempted by 370 students.

Show answer & explanation

Correct answer: D

Answer: 3m + n + 30 bits

Explanation:

  • Memory capacity of 2^m Kbytes means 2^m × 1024 bytes = 2^(m+10) addressable bytes.

  • Each byte address therefore, requires (m + 10) bits.

  • There are 3 operands, so the operand address fields together need 3 × (m + 10) = 3m + 30 bits.

  • The operator is chosen from 2^n operations, so the operator field needs n bits.

  • Total bits = (3m + 30) + n = 3m + n + 30 bits.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor