using System.Collections.Generic;
public static void Main()
var opCodes = new int[] { 1, 5, 1, 7, 3, 2, 0 };
var instructionPointer = 0;
var stack = new Stack<int>();
var instruction = opCodes[instructionPointer++];
var value = opCodes[instructionPointer++];
Console.WriteLine(value);
var value1 = stack.Pop();
var value2 = stack.Pop();
var result = value1 + value2;