My understanding is that you want to extract the lower 24 bits from the integers into param and the upper 8 bits into command.
You can do that in the following way:
var param = binaryVector[i] & 0xffffff;
var command = (binaryVector[i] >> 24) & 0xff;
Feel free to replace i
in the code with your "instruction pointer"
Hint: Be careful in the construction of the instruction integer that param not exceeds 24 bits. Your code should be protected for this case with a mask or you would destroy your command byte:
inst = inst | value & 0xffffff;