public void Execute(ExecutionNodes nodes, ref Memory memory)
        {
            int local;
            if (memory.Local == null)
            {
                throw new InvalidOperationException("BumpUp: Local cannot be null.");
            }
            else
            {
                local = (int)memory.Local.GetValue(MemoryType.Int);
            }

            int register = (int)memory.Get(memoryIndex).GetValue(MemoryType.Int);

            memory.Local = new MemorySlot(MemoryType.Int, local + 1);
            memory.Set(MemoryType.Int, register + 1, memoryIndex);
        }
 public void Execute(ExecutionNodes nodes, ref Memory memory)
 {
     memory.Set(memory.Local.Type, memory.Local.GetValue(memory.Local.Type), memoryIndex);
 }