using System; using System.Collections.Generic; using System.Reflection.Emit; using System.Text; using Sunweaver.Commands.Attributes; using Sunweaver.VM; namespace Sunweaver.Commands { [BasePair(@"""a b store"" will store value ""a"" in to memory location ""b""")] public class store : Abstracts.BinaryOperation { public override void Operation(long a, long b) { var memloc = Memory.ModMemlocToMemorySpace(b); var memval = Memory.ModValueToMemoryStore(a); VM.Memory[memloc] = memval; } public override void CompileOperation(ILGenerator il, Locals locals) { throw new NotImplementedException(); } } }