public void RemoveMemoryListener(IMemoryListener listener) { if (ramListeners.Remove(listener)) { ArraySet(ramMap, listener.Address, 0, listener.Length); } }
public void AddMemoryListener(IMemoryListener listener) { ramListeners.Add(listener); byte index = (byte)(ramListeners.Count - 1); ArraySet(ramMap, listener.Address, index, listener.Length); }