using System; using System.Collections.Generic; using System.Reflection.Emit; using System.Text; using Sunweaver.Commands.Attributes; using Sunweaver.DataPrototypes; namespace Sunweaver.Commands.BinaryMath { [BasePair] public class store : Abstracts.BinaryOperation { public override void Operation(long a, long b) { //early out when stores are turned off if (!VM.BoolStack.Peek()) return; b = Math.Abs(b) % 1000; a = a % 10000; VM.mem[(int)b] = (Int16)a; } public override void CompileOperation(ILGenerator il, Locals locals) { throw new NotImplementedException(); } } }