Beispiel #1
0
 public Data()
 {
     comments  = new ObservableDictionary <int, string>();
     labels    = new ObservableDictionary <int, Label>();
     romBytes  = new RomBytes();
     cpu65C816 = new Cpu65C816(this);
 }
Beispiel #2
0
        public void CreateRomBytesFromRom(IEnumerable <byte> actualRomBytes)
        {
            Debug.Assert(RomBytes.Count == 0);

            var previousNotificationState = RomBytes.SendNotificationChangedEvents;

            RomBytes.SendNotificationChangedEvents = false;

            RomBytes.Clear();
            foreach (var fileByte in actualRomBytes)
            {
                RomBytes.Add(new RomByte
                {
                    Rom = fileByte,
                });
            }

            RomBytes.SendNotificationChangedEvents = previousNotificationState;
        }