using System; using System.Collections.Generic; using System.Text; using Sunweaver.Commands.Attributes; using Sunweaver.VM; namespace Sunweaver.Commands { [BasePair("Increments the memory value at the given memory location")] public class inc : Abstracts.UnaryOperation { public override void Operation(long a) { var memloc = Memory.ModMemlocToMemorySpace(a); var memval = Memory.ModValueToMemoryStore(VM.Memory[memloc] + 1); VM.Memory[memloc] = memval; } } }