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)?
Shubham4070There is nothing as bit addressable!
C) is the ans
size of instruction = 24/8 = 3 bytes.
Program Counter can shift 3 bytes at a time to jump to next instruction.
So the given options must be divisible by 3. only 600 is satisfied.
As given in the question, the instruction is 24 bits, so if you convert the instruction length in terms of bytes it will be 3 Bytes because 8 bits = 1 Byte, So 24 Bits = 24/8 => 3 Bytes.
Given that the starting address of the program in the memory is 300, initially program counter (PC) will contain the value of 300.
300-----302
The valid value of Program counter will be 600.
64.3k questions
77.9k answers
243k comments
79.7k users