Example #1
0
 /**
  * Restart the CPU
  */
 private void RestartMenuItemClick(object sender, EventArgs e)
 {
     debugWindow.PauseButton_Click(null, null);
     debugWindow.ClearTrace();
     previousCounter = 0;
     system.ResetCPU(true);
     memoryWindow.UpdateMCRButtons();
     system.CPU.Run();
     debugWindow.UpdateQueue();
     debugWindow.RunButton_Click(null, null);
 }
Example #2
0
 private void LoadHexFile(string Filename, bool ResetMemory)
 {
     debugWindow.Pause();
     if (kernel.ResetCPU(ResetMemory, Filename))
     {
         if (kernel.lstFile != null)
         {
             ShowDebugWindow();
             ShowMemoryWindow();
         }
         ResetSDCard();
         debugWindow.ClearTrace();
     }
 }
Example #3
0
 private void LoadHexFile(string Filename)
 {
     debugWindow.Pause();
     kernel.SetVersion(version);
     if (kernel.ResetCPU(Filename))
     {
         gpu.Refresh();
         if (kernel.lstFile != null)
         {
             ShowDebugWindow();
             ShowMemoryWindow();
         }
         ResetSDCard();
         debugWindow.ClearTrace();
     }
 }
Example #4
0
        private void BasicWindow_Load(object sender, EventArgs e)
        {
            system = FoenixSystem.Current;
            AddGPUControl(system.GPU);

            terminal = new SerialTerminal();

            system.UART1.TransmitByte += SerialTransmitByte;
            system.UART2.TransmitByte += SerialTransmitByte;

            system.GPU.StartOfFrame += SOF;
            system.ResetCPU(true);
            ShowDebugWindow();
            //fix
            //ShowMemoryWindow();

            this.Top   = 0;
            this.Left  = 0;
            this.Width = debugWindow.Left;
            if (this.Width > 1200)
            {
                this.Width = 1200;
            }
            this.Height = Convert.ToInt32(this.Width * 0.75);
        }
Example #5
0
        /*
         * Read a Foenix XML file
         */
        private void LoadFNXMLFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog
            {
                Title           = "Load Project File",
                Filter          = "Foenix Project File|*.fnxml",
                CheckFileExists = true
            };

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                debugWindow.Close();
                memoryWindow.Close();
                system = FoenixSystem.Current;

                system.Resources   = ResChecker;
                system.Breakpoints = CPUWindow.Instance.breakpoints;

                system.SetKernel(dialog.FileName);
                system.ResetCPU(true);
                ShowDebugWindow();
                ShowMemoryWindow();
            }
        }