Ejemplo n.º 1
0
 public void pack() throws IrregularStringOfBitsException {
   // conversion of instruction parameters of "params" list to the "repr" form (32 binary value)
   repr.setBits(OPCODE_VALUE, OPCODE_VALUE_INIT);
   repr.setBits(Converter.intToBin(RS_FIELD_LENGTH, params.get(RS_FIELD)), RS_FIELD_INIT);
   repr.setBits(Converter.intToBin(RT_FIELD_LENGTH, params.get(RT_FIELD)), RT_FIELD_INIT);
 }