Beispiel #1
0
        internal override void Execute()
        {
            var identDest = this.operands[0] as IdentOperand;
            var identAdd1 = this.operands[1] as IdentOperand;
            var identAdd2 = this.operands[2] as IdentOperand;

            int val1 = Convert.ToInt32(store.Get(identAdd1));
            int val2 = Convert.ToInt32(store.Get(identAdd2));

            int res = val1 + val2;

            NumOperand num = new NumOperand(res);

            SetOpCode setOp = new SetOpCode(new Operand[] { identDest, num }, store);

            setOp.Execute();
        }