using System; using System.Collections.Generic; using System.Text; using Sunweaver.Commands.Attributes; namespace Sunweaver.Commands { [BasePair("Push the memory value at the memory location given by the top value of the integer stack.")] public class @ref : Abstracts.UnaryOperation { public override void Operation(long a) { VM.Stack.Push(VM.Memory[(int)(a % (Sunweaver.VM.Memory.MemorySlots + 1))]); } } }