Пример #1
0
        protected override void VisitDivideUnsignedInstruction(DivideUnsignedInstruction instruction)
        {
            ControlState.EvaluationStack.Pop(out var stackVal1, out var stackVal2);
            var resultStackVal = ComputeIntegerOperation(
                stackVal1,
                stackVal2,
                (a, b) => new CilStackValueInt32((int)(a.ValueUnsigned / b.ValueUnsigned)),
                (a, b) => new CilStackValueInt64((long)(a.ValueUnsigned / b.ValueUnsigned))
                );

            ControlState.EvaluationStack.Push(resultStackVal);

            ControlState.MoveToNextInstruction();
        }
Пример #2
0
 protected abstract void VisitDivideUnsignedInstruction(DivideUnsignedInstruction instruction);