Exemplo n.º 1
0
        public void AttachSystem(AltoSystem system)
        {
            _system = system;
            _system.AttachDisplay(this);

            _controller = new ExecutionController(_system);

            _controller.ErrorCallback    += OnExecutionError;
            _controller.ShutdownCallback += OnShutdown;

            // Update disk image UI info
            // Diablo disks:
            Drive0ImageName.Text = _system.DiskController.Drives[0].IsLoaded ? Path.GetFileName(_system.DiskController.Drives[0].Pack.PackName) : Resources.NoImageLoadedText;
            Drive1ImageName.Text = _system.DiskController.Drives[1].IsLoaded ? Path.GetFileName(_system.DiskController.Drives[1].Pack.PackName) : Resources.NoImageLoadedText;

            // Trident disks
            for (int i = 0; i < _tridentImageNames.Count; i++)
            {
                TridentDrive drive = _system.TridentController.Drives[i];
                _tridentImageNames[i].Text = drive.IsLoaded ? Path.GetFileName(drive.Pack.PackName) : Resources.NoImageLoadedText;
            }

            //
            // If a startup script was specified, start it running now --
            // tell the script manager to start the script, and start the
            // Alto system running so that the script actually executes.
            //
            if (!string.IsNullOrWhiteSpace(StartupOptions.ScriptFile))
            {
                StartScriptPlayback(StartupOptions.ScriptFile);
                _controller.StartExecution(AlternateBootType.None);
            }
        }
Exemplo n.º 2
0
        public void AttachSystem(AltoSystem system)
        {
            _system = system;
            _system.AttachDisplay(this);

            _controller = new ExecutionController(_system);

            _controller.ErrorCallback += OnExecutionError;

            // Update disk image UI info
            Drive0ImageName.Text = _system.DiskController.Drives[0].IsLoaded ? Path.GetFileName(_system.DiskController.Drives[0].Pack.PackName) : _noImageLoadedText;
            Drive1ImageName.Text = _system.DiskController.Drives[1].IsLoaded ? Path.GetFileName(_system.DiskController.Drives[1].Pack.PackName) : _noImageLoadedText;
        }
Exemplo n.º 3
0
        public Debugger(AltoSystem system, ExecutionController controller)
        {
            _system     = system;
            _controller = controller;
            _microcodeBreakpointEnabled = new bool[5, 1024];
            _novaBreakpointEnabled      = new bool[65536];

            _controller.StepCallback  += OnExecutionStep;
            _controller.ErrorCallback += OnExecutionError;

            // Pick up the current execution status (if the main window hands us a running
            // system, we want to know).
            _execType = _controller.IsRunning ? ExecutionType.Normal : ExecutionType.None;

            InitializeComponent();
            InitControls();
            RefreshUI();
        }
Exemplo n.º 4
0
        public void AttachSystem(AltoSystem system)
        {
            _system = system;
            _system.AttachDisplay(this);

            _controller = new ExecutionController(_system);

            _controller.ErrorCallback += OnExecutionError;

            // Update disk image UI info
            // Diablo disks:
            Drive0ImageName.Text = _system.DiskController.Drives[0].IsLoaded ? Path.GetFileName(_system.DiskController.Drives[0].Pack.PackName) : _noImageLoadedText;
            Drive1ImageName.Text = _system.DiskController.Drives[1].IsLoaded ? Path.GetFileName(_system.DiskController.Drives[1].Pack.PackName) : _noImageLoadedText;

            // Trident disks
            for (int i = 0; i < _tridentImageNames.Count; i++)
            {
                TridentDrive drive = _system.TridentController.Drives[i];
                _tridentImageNames[i].Text = drive.IsLoaded ? Path.GetFileName(drive.Pack.PackName) : _noImageLoadedText;
            }
        }