Converted decodeInstructionRegister to be public