private void SetParam(uint param) { if ((_valueSize = _type.GetParamSize()) != 1) { throw new Exception("not matched instruction type"); } _value = BitConverter.GetBytes(param); }
public Instruction(InstructionType type) { _type = type; if ((_valueSize = _type.GetParamSize()) != 0) { throw new Exception("not matched instruction type"); } _value = null; }