title: how do you work out how many bits are needed for the opcode?
body: <p>There is 16 bits/word, and the instruction set consists of 17 different operations.</p>
  
  <p>I know that there is 5 bits needed for the opcode, but I have no idea why. Why is 5 bits needed for the opcode?</p>