コード例 #1
0
        protected override void VisitLoadArrayElementI1Instruction(LoadArrayElementI1Instruction instruction)
        {
            ControlState.EvaluationStack.PopValue(out CilValueReference arrayRef, out CilValueInt32 indexVal);

            var array = ManagedMemory.Load(arrayRef) as CilArray;
            var elem  = array.GetValue(indexVal, new CilTypeInt8(), ManagedMemory, _program);

            ControlState.EvaluationStack.PushValue(elem);

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