public override void RunCommand(MemorySystemCommand command) { if (command is not MemoryWriteCommand writeCommand) { base.RunCommand(command); return; } var address = writeCommand.GetVersion2MemoryAddress(CurrentMask); var combinations = BitManipulations.GetCombinationsFromMask(address.FloatingBitsMask, 36); foreach (var c in combinations) { Memory[address.MaskedBaseMemoryAddress | c] = writeCommand.NewValue; } }
public BitManipulationsTests() { _bitManipulations = new BitManipulations(); }