-2

Question:

For a 16 bit word with 6 bits for an opcode

  • How many different instructions could I fit into the instruction set?
  • What is the largest number that I could use as data?

Answer:

  • Number of instructions: 26 = 64
  • largest operand: 210 - 1 = 1023

Source

My question is how did they calculated 210 from 16 bit word?

Nicol Bolas
  • 12,043
  • 4
  • 39
  • 48

1 Answers1

4

If a number takes up 16 bits, and you use 6 of them for something, that leaves 10 bits.

Nicol Bolas
  • 12,043
  • 4
  • 39
  • 48