Ejemplo n.º 1
0
        public CPDebugger(DSystem system)
        {
            InitializeComponent();

            _system = system;

            SourceDisplay.SetSourceRoot(Path.Combine("CP", "Source"));

            _loadMap = new MicrocodeLoadMap();
            _loadMap.Load(Path.Combine("CP", "Source", "load_map.txt"));

            _sourceMaps = new List <SourceMap>();

            Disassembly.AttachCP(system.CP);

            PopulateSourceList();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Provide basic UI for adding new entries.
        /// TODO: It's kind of ugly that this is directly modifying input parameters; likely there should be a
        /// singleton LoadMap that maintains all of this that can be used to modify things.
        /// </summary>
        /// <param name="newFilePath"></param>
        /// <param name="loadMap"></param>
        /// <param name="sourceMaps"></param>
        /// <param name="microcodeRAM"></param>
        public LoadMapDialog(string newFilePath, MicrocodeLoadMap loadMap, List <SourceMap> sourceMaps, ulong[] microcodeRAM)
        {
            InitializeComponent();

            _newFilePath  = newFilePath;
            _loadMap      = loadMap;
            _sourceMaps   = sourceMaps;
            _microcodeRAM = microcodeRAM;

            _selectedMap = null;

            //
            // Populate the existing map list
            //
            foreach (SourceMap s in sourceMaps)
            {
                CurrentLoadsList.Items.Add(s.MapName);
            }

            CurrentLoadsList.ClearSelected();

            DialogResult = DialogResult.Cancel;
        }