コード例 #1
0
        protected override void VisitShiftRightUnsignedInstruction(ShiftRightUnsignedInstruction instruction)
        {
            ControlState.EvaluationStack.Pop(out var stackVal1, out var stackVal2);
            var resultStackVal = ComputeShiftOperation(
                stackVal1,
                stackVal2,
                (a, b) => new CilStackValueInt32((int)(a.ValueUnsigned >> b.Value)),
                (a, b) => new CilStackValueInt64((long)(a.ValueUnsigned >> b.Value))
                );

            ControlState.EvaluationStack.Push(resultStackVal);

            ControlState.MoveToNextInstruction();
        }
コード例 #2
0
 protected abstract void VisitShiftRightUnsignedInstruction(ShiftRightUnsignedInstruction instruction);