Multiple choice

A CPU has 24-bit instructions. A program starts at address 300 (in decimal). Which one of the following is a legal program counter (all values in decimal)?

  1. 400

  2. 500

  3. 600

  4. 700

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Each address is equivalent to one byte in memory. Each instruction has 24 bits i.e., 3 bytes. So, from 300 onwards only a multiple of 3 will designate a valid program counter. Thus, (400 - 300) (500 - 300) and (700 - 300) are not multiple of 3. But 600 -300 = 300 is a multiple of 3