Ejemplo n.º 1
0
        private void SetParam(uint param)
        {
            if ((_valueSize = _type.GetParamSize()) != 1)
            {
                throw new Exception("not matched instruction type");
            }

            _value = BitConverter.GetBytes(param);
        }
Ejemplo n.º 2
0
        public Instruction(InstructionType type)
        {
            _type = type;
            if ((_valueSize = _type.GetParamSize()) != 0)
            {
                throw new Exception("not matched instruction type");
            }

            _value = null;
        }