diff --git a/.gitignore b/.gitignore index 7964536..b817552 100644 --- a/.gitignore +++ b/.gitignore @@ -186,4 +186,6 @@ FakesAssemblies/ # LightSwitch generated files GeneratedArtifacts/ _Pvt_Extensions/ -ModelManifest.xml \ No newline at end of file +ModelManifest.xml +/Contralto.VC.VC.opendb +/Contralto.VC.db diff --git a/Contralto.sln b/Contralto.sln index 06a43cd..6833d96 100644 --- a/Contralto.sln +++ b/Contralto.sln @@ -1,16 +1,13 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 -VisualStudioVersion = 14.0.23107.0 +VisualStudioVersion = 14.0.25123.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Contralto", "Contralto\Contralto.csproj", "{CC6D96B3-8099-4497-8AD8-B0795A3353EA}" EndProject Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "ContraltoSetup", "ContraltoSetup\ContraltoSetup.wixproj", "{47BBC195-80C5-43F3-B691-7D27B0803B84}" EndProject Global - GlobalSection(Performance) = preSolution - HasPerformanceSessions = true - EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Debug|x64 = Debug|x64 diff --git a/Contralto/Disk/tdisk4.dsk b/Contralto/Disk/tdisk4.dsk index 8e4a8ed..eb00a6a 100644 Binary files a/Contralto/Disk/tdisk4.dsk and b/Contralto/Disk/tdisk4.dsk differ diff --git a/Contralto/UI/Debugger.Designer.cs b/Contralto/UI/Debugger.Designer.cs index 163540b..1da89f9 100644 --- a/Contralto/UI/Debugger.Designer.cs +++ b/Contralto/UI/Debugger.Designer.cs @@ -28,48 +28,43 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Debugger)); this.Microcode = new System.Windows.Forms.GroupBox(); - this.SourceTabs = new System.Windows.Forms.TabControl(); - this.Rom0Page = new System.Windows.Forms.TabPage(); - this._rom0SourceViewer = new System.Windows.Forms.DataGridView(); - this.Breakpoint = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.T = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Addr = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Source = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Rom1Page = new System.Windows.Forms.TabPage(); - this._rom1SourceViewer = new System.Windows.Forms.DataGridView(); - this.Rom2Page = new System.Windows.Forms.TabPage(); - this._ram0SourceViewer = new System.Windows.Forms.DataGridView(); - this.dataGridViewCheckBoxColumn2 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.label2 = new System.Windows.Forms.Label(); this.JumpToAddress = new System.Windows.Forms.TextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); @@ -108,18 +103,38 @@ this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Ram0Page = new System.Windows.Forms.TabPage(); + this._ram0SourceViewer = new System.Windows.Forms.DataGridView(); + this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewCheckBoxColumn2 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.Rom1Page = new System.Windows.Forms.TabPage(); + this._rom1SourceViewer = new System.Windows.Forms.DataGridView(); this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.Rom0Page = new System.Windows.Forms.TabPage(); + this._rom0SourceViewer = new System.Windows.Forms.DataGridView(); + this.Source = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Addr = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Breakpoint = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.SourceTabs = new System.Windows.Forms.TabControl(); + this.Ram1Page = new System.Windows.Forms.TabPage(); + this.Ram2Page = new System.Windows.Forms.TabPage(); + this._ram1SourceViewer = new System.Windows.Forms.DataGridView(); + this.dataGridViewCheckBoxColumn3 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this._ram2SourceViewer = new System.Windows.Forms.DataGridView(); + this.dataGridViewCheckBoxColumn4 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Microcode.SuspendLayout(); - this.SourceTabs.SuspendLayout(); - this.Rom0Page.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this._rom0SourceViewer)).BeginInit(); - this.Rom1Page.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this._rom1SourceViewer)).BeginInit(); - this.Rom2Page.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this._ram0SourceViewer)).BeginInit(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._registerData)).BeginInit(); this.groupBox2.SuspendLayout(); @@ -130,6 +145,17 @@ ((System.ComponentModel.ISupportInitialize)(this._memoryData)).BeginInit(); this.groupBox6.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this._reservedMemory)).BeginInit(); + this.Ram0Page.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this._ram0SourceViewer)).BeginInit(); + this.Rom1Page.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this._rom1SourceViewer)).BeginInit(); + this.Rom0Page.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this._rom0SourceViewer)).BeginInit(); + this.SourceTabs.SuspendLayout(); + this.Ram1Page.SuspendLayout(); + this.Ram2Page.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this._ram1SourceViewer)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._ram2SourceViewer)).BeginInit(); this.SuspendLayout(); // // Microcode @@ -144,269 +170,6 @@ this.Microcode.TabStop = false; this.Microcode.Text = "Microcode Source"; // - // SourceTabs - // - this.SourceTabs.Controls.Add(this.Rom0Page); - this.SourceTabs.Controls.Add(this.Rom1Page); - this.SourceTabs.Controls.Add(this.Rom2Page); - this.SourceTabs.Location = new System.Drawing.Point(6, 19); - this.SourceTabs.Name = "SourceTabs"; - this.SourceTabs.SelectedIndex = 0; - this.SourceTabs.Size = new System.Drawing.Size(590, 580); - this.SourceTabs.TabIndex = 14; - this.SourceTabs.SelectedIndexChanged += new System.EventHandler(this.OnTabChanged); - // - // Rom0Page - // - this.Rom0Page.Controls.Add(this._rom0SourceViewer); - this.Rom0Page.Location = new System.Drawing.Point(4, 22); - this.Rom0Page.Name = "Rom0Page"; - this.Rom0Page.Padding = new System.Windows.Forms.Padding(3); - this.Rom0Page.Size = new System.Drawing.Size(582, 554); - this.Rom0Page.TabIndex = 0; - this.Rom0Page.Text = "ROM0"; - this.Rom0Page.UseVisualStyleBackColor = true; - // - // _rom0SourceViewer - // - this._rom0SourceViewer.AllowUserToAddRows = false; - this._rom0SourceViewer.AllowUserToDeleteRows = false; - this._rom0SourceViewer.AllowUserToResizeColumns = false; - this._rom0SourceViewer.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.Silver; - this._rom0SourceViewer.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this._rom0SourceViewer.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleVertical; - this._rom0SourceViewer.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this._rom0SourceViewer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.Breakpoint, - this.T, - this.Addr, - this.Source}); - this._rom0SourceViewer.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; - this._rom0SourceViewer.Location = new System.Drawing.Point(0, 0); - this._rom0SourceViewer.Name = "_rom0SourceViewer"; - this._rom0SourceViewer.ReadOnly = true; - this._rom0SourceViewer.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle5.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this._rom0SourceViewer.RowHeadersDefaultCellStyle = dataGridViewCellStyle5; - this._rom0SourceViewer.RowHeadersVisible = false; - this._rom0SourceViewer.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; - this._rom0SourceViewer.RowTemplate.Height = 18; - this._rom0SourceViewer.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this._rom0SourceViewer.ShowCellErrors = false; - this._rom0SourceViewer.ShowEditingIcon = false; - this._rom0SourceViewer.ShowRowErrors = false; - this._rom0SourceViewer.Size = new System.Drawing.Size(582, 554); - this._rom0SourceViewer.TabIndex = 1; - this._rom0SourceViewer.TabStop = false; - this._rom0SourceViewer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Rom0SourceViewCellClick); - // - // Breakpoint - // - this.Breakpoint.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; - this.Breakpoint.FalseValue = "false"; - this.Breakpoint.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.Breakpoint.HeaderText = "B"; - this.Breakpoint.IndeterminateValue = "null"; - this.Breakpoint.Name = "Breakpoint"; - this.Breakpoint.ReadOnly = true; - this.Breakpoint.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.Breakpoint.TrueValue = "true"; - this.Breakpoint.Width = 20; - // - // T - // - this.T.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; - dataGridViewCellStyle2.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.T.DefaultCellStyle = dataGridViewCellStyle2; - this.T.HeaderText = "T"; - this.T.Name = "T"; - this.T.ReadOnly = true; - this.T.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.T.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.T.Width = 5; - // - // Addr - // - this.Addr.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; - dataGridViewCellStyle3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Addr.DefaultCellStyle = dataGridViewCellStyle3; - this.Addr.HeaderText = "Addr"; - this.Addr.Name = "Addr"; - this.Addr.ReadOnly = true; - this.Addr.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.Addr.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.Addr.Width = 5; - // - // Source - // - this.Source.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - dataGridViewCellStyle4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Source.DefaultCellStyle = dataGridViewCellStyle4; - this.Source.HeaderText = "Source Code"; - this.Source.Name = "Source"; - this.Source.ReadOnly = true; - this.Source.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.Source.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - // - // Rom1Page - // - this.Rom1Page.Controls.Add(this._rom1SourceViewer); - this.Rom1Page.Location = new System.Drawing.Point(4, 22); - this.Rom1Page.Name = "Rom1Page"; - this.Rom1Page.Padding = new System.Windows.Forms.Padding(3); - this.Rom1Page.Size = new System.Drawing.Size(582, 554); - this.Rom1Page.TabIndex = 1; - this.Rom1Page.Text = "ROM1"; - this.Rom1Page.UseVisualStyleBackColor = true; - // - // _rom1SourceViewer - // - this._rom1SourceViewer.AllowUserToAddRows = false; - this._rom1SourceViewer.AllowUserToDeleteRows = false; - this._rom1SourceViewer.AllowUserToResizeColumns = false; - this._rom1SourceViewer.AllowUserToResizeRows = false; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.Silver; - this._rom1SourceViewer.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this._rom1SourceViewer.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleVertical; - this._rom1SourceViewer.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this._rom1SourceViewer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewCheckBoxColumn1, - this.dataGridViewTextBoxColumn4, - this.dataGridViewTextBoxColumn3, - this.dataGridViewTextBoxColumn5}); - this._rom1SourceViewer.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; - this._rom1SourceViewer.Location = new System.Drawing.Point(0, 0); - this._rom1SourceViewer.Name = "_rom1SourceViewer"; - this._rom1SourceViewer.ReadOnly = true; - this._rom1SourceViewer.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle10.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this._rom1SourceViewer.RowHeadersDefaultCellStyle = dataGridViewCellStyle10; - this._rom1SourceViewer.RowHeadersVisible = false; - this._rom1SourceViewer.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; - this._rom1SourceViewer.RowTemplate.Height = 18; - this._rom1SourceViewer.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this._rom1SourceViewer.ShowCellErrors = false; - this._rom1SourceViewer.ShowEditingIcon = false; - this._rom1SourceViewer.ShowRowErrors = false; - this._rom1SourceViewer.Size = new System.Drawing.Size(582, 554); - this._rom1SourceViewer.TabIndex = 2; - this._rom1SourceViewer.TabStop = false; - this._rom1SourceViewer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Rom1SourceViewCellClick); - // - // Rom2Page - // - this.Rom2Page.Controls.Add(this._ram0SourceViewer); - this.Rom2Page.Location = new System.Drawing.Point(4, 22); - this.Rom2Page.Name = "Rom2Page"; - this.Rom2Page.Padding = new System.Windows.Forms.Padding(3); - this.Rom2Page.Size = new System.Drawing.Size(582, 554); - this.Rom2Page.TabIndex = 2; - this.Rom2Page.Text = "RAM0"; - this.Rom2Page.UseVisualStyleBackColor = true; - // - // _ram0SourceViewer - // - this._ram0SourceViewer.AllowUserToAddRows = false; - this._ram0SourceViewer.AllowUserToDeleteRows = false; - this._ram0SourceViewer.AllowUserToResizeColumns = false; - this._ram0SourceViewer.AllowUserToResizeRows = false; - dataGridViewCellStyle11.BackColor = System.Drawing.Color.Silver; - this._ram0SourceViewer.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; - this._ram0SourceViewer.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleVertical; - this._ram0SourceViewer.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this._ram0SourceViewer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewCheckBoxColumn2, - this.dataGridViewTextBoxColumn7, - this.dataGridViewTextBoxColumn6, - this.dataGridViewTextBoxColumn8}); - this._ram0SourceViewer.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; - this._ram0SourceViewer.Location = new System.Drawing.Point(0, 0); - this._ram0SourceViewer.Name = "_ram0SourceViewer"; - this._ram0SourceViewer.ReadOnly = true; - this._ram0SourceViewer.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle15.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this._ram0SourceViewer.RowHeadersDefaultCellStyle = dataGridViewCellStyle15; - this._ram0SourceViewer.RowHeadersVisible = false; - this._ram0SourceViewer.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; - this._ram0SourceViewer.RowTemplate.Height = 18; - this._ram0SourceViewer.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this._ram0SourceViewer.ShowCellErrors = false; - this._ram0SourceViewer.ShowEditingIcon = false; - this._ram0SourceViewer.ShowRowErrors = false; - this._ram0SourceViewer.Size = new System.Drawing.Size(582, 545); - this._ram0SourceViewer.TabIndex = 2; - this._ram0SourceViewer.TabStop = false; - this._ram0SourceViewer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Ram0SourceViewCellClick); - // - // dataGridViewCheckBoxColumn2 - // - this.dataGridViewCheckBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; - this.dataGridViewCheckBoxColumn2.FalseValue = "false"; - this.dataGridViewCheckBoxColumn2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.dataGridViewCheckBoxColumn2.HeaderText = "B"; - this.dataGridViewCheckBoxColumn2.IndeterminateValue = "null"; - this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2"; - this.dataGridViewCheckBoxColumn2.ReadOnly = true; - this.dataGridViewCheckBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewCheckBoxColumn2.TrueValue = "true"; - this.dataGridViewCheckBoxColumn2.Width = 20; - // - // dataGridViewTextBoxColumn7 - // - this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; - dataGridViewCellStyle12.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle12; - this.dataGridViewTextBoxColumn7.HeaderText = "Addr"; - this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; - this.dataGridViewTextBoxColumn7.ReadOnly = true; - this.dataGridViewTextBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewTextBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn7.Width = 5; - // - // dataGridViewTextBoxColumn6 - // - this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; - dataGridViewCellStyle13.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle13; - this.dataGridViewTextBoxColumn6.HeaderText = "Word"; - this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; - this.dataGridViewTextBoxColumn6.ReadOnly = true; - this.dataGridViewTextBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn6.Width = 5; - // - // dataGridViewTextBoxColumn8 - // - this.dataGridViewTextBoxColumn8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - dataGridViewCellStyle14.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle14; - this.dataGridViewTextBoxColumn8.HeaderText = "Disassembly"; - this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; - this.dataGridViewTextBoxColumn8.ReadOnly = true; - this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - // // label2 // this.label2.AutoSize = true; @@ -441,21 +204,21 @@ this._registerData.AllowUserToDeleteRows = false; this._registerData.AllowUserToResizeColumns = false; this._registerData.AllowUserToResizeRows = false; - dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this._registerData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16; + dataGridViewCellStyle26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this._registerData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle26; this._registerData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this._registerData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.RegNum, this.R, this.S}); - dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle17.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this._registerData.DefaultCellStyle = dataGridViewCellStyle17; + dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle27.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this._registerData.DefaultCellStyle = dataGridViewCellStyle27; this._registerData.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this._registerData.Location = new System.Drawing.Point(7, 19); this._registerData.MultiSelect = false; @@ -561,21 +324,21 @@ // this._taskData.AllowUserToAddRows = false; this._taskData.AllowUserToDeleteRows = false; - dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this._taskData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle18; + dataGridViewCellStyle28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this._taskData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle28; this._taskData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this._taskData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.TaskName, this.TaskState, this.TaskPC}); - dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle19.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this._taskData.DefaultCellStyle = dataGridViewCellStyle19; + dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle29.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this._taskData.DefaultCellStyle = dataGridViewCellStyle29; this._taskData.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this._taskData.Location = new System.Drawing.Point(7, 19); this._taskData.MultiSelect = false; @@ -632,20 +395,20 @@ // this._otherRegs.AllowUserToAddRows = false; this._otherRegs.AllowUserToDeleteRows = false; - dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this._otherRegs.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle20; + dataGridViewCellStyle30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this._otherRegs.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle30; this._otherRegs.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this._otherRegs.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Reg, this.RegValue}); - dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle21.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle21.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle21.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle21.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle21.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this._otherRegs.DefaultCellStyle = dataGridViewCellStyle21; + dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle31.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this._otherRegs.DefaultCellStyle = dataGridViewCellStyle31; this._otherRegs.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this._otherRegs.Location = new System.Drawing.Point(7, 19); this._otherRegs.MultiSelect = false; @@ -718,8 +481,8 @@ this._memoryData.AllowUserToAddRows = false; this._memoryData.AllowUserToDeleteRows = false; this._memoryData.AllowUserToResizeRows = false; - dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this._memoryData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle22; + dataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this._memoryData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle32; this._memoryData.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.EnableWithoutHeaderText; this._memoryData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this._memoryData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { @@ -727,14 +490,14 @@ this.Address, this.Data, this.Disassembly}); - dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle23.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this._memoryData.DefaultCellStyle = dataGridViewCellStyle23; + dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle33.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle33.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle33.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle33.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle33.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle33.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this._memoryData.DefaultCellStyle = dataGridViewCellStyle33; this._memoryData.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this._memoryData.Location = new System.Drawing.Point(6, 19); this._memoryData.MultiSelect = false; @@ -866,21 +629,21 @@ this._reservedMemory.AllowUserToDeleteRows = false; this._reservedMemory.AllowUserToResizeColumns = false; this._reservedMemory.AllowUserToResizeRows = false; - dataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this._reservedMemory.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle24; + dataGridViewCellStyle34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this._reservedMemory.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle34; this._reservedMemory.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this._reservedMemory.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewTextBoxColumn9, this.dataGridViewTextBoxColumn10, this.dataGridViewTextBoxColumn11}); - dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle25.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle25.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle25.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle25.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle25.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this._reservedMemory.DefaultCellStyle = dataGridViewCellStyle25; + dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle35.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle35.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle35.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this._reservedMemory.DefaultCellStyle = dataGridViewCellStyle35; this._reservedMemory.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this._reservedMemory.Location = new System.Drawing.Point(7, 19); this._reservedMemory.MultiSelect = false; @@ -927,30 +690,170 @@ this.dataGridViewTextBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.False; this.dataGridViewTextBoxColumn11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; // - // dataGridViewCheckBoxColumn1 + // Ram0Page // - this.dataGridViewCheckBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; - this.dataGridViewCheckBoxColumn1.FalseValue = "false"; - this.dataGridViewCheckBoxColumn1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.dataGridViewCheckBoxColumn1.HeaderText = "B"; - this.dataGridViewCheckBoxColumn1.IndeterminateValue = "null"; - this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1"; - this.dataGridViewCheckBoxColumn1.ReadOnly = true; - this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewCheckBoxColumn1.TrueValue = "true"; - this.dataGridViewCheckBoxColumn1.Width = 20; + this.Ram0Page.Controls.Add(this._ram0SourceViewer); + this.Ram0Page.Location = new System.Drawing.Point(4, 22); + this.Ram0Page.Name = "Ram0Page"; + this.Ram0Page.Padding = new System.Windows.Forms.Padding(3); + this.Ram0Page.Size = new System.Drawing.Size(582, 554); + this.Ram0Page.TabIndex = 2; + this.Ram0Page.Text = "RAM0"; + this.Ram0Page.UseVisualStyleBackColor = true; // - // dataGridViewTextBoxColumn4 + // _ram0SourceViewer // - this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; - dataGridViewCellStyle7.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle7; - this.dataGridViewTextBoxColumn4.HeaderText = "T"; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.ReadOnly = true; - this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewTextBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn4.Width = 5; + this._ram0SourceViewer.AllowUserToAddRows = false; + this._ram0SourceViewer.AllowUserToDeleteRows = false; + this._ram0SourceViewer.AllowUserToResizeColumns = false; + this._ram0SourceViewer.AllowUserToResizeRows = false; + dataGridViewCellStyle11.BackColor = System.Drawing.Color.Silver; + this._ram0SourceViewer.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; + this._ram0SourceViewer.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleVertical; + this._ram0SourceViewer.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this._ram0SourceViewer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewCheckBoxColumn2, + this.dataGridViewTextBoxColumn7, + this.dataGridViewTextBoxColumn6, + this.dataGridViewTextBoxColumn8}); + this._ram0SourceViewer.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; + this._ram0SourceViewer.Location = new System.Drawing.Point(0, 0); + this._ram0SourceViewer.Name = "_ram0SourceViewer"; + this._ram0SourceViewer.ReadOnly = true; + this._ram0SourceViewer.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle15.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this._ram0SourceViewer.RowHeadersDefaultCellStyle = dataGridViewCellStyle15; + this._ram0SourceViewer.RowHeadersVisible = false; + this._ram0SourceViewer.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + this._ram0SourceViewer.RowTemplate.Height = 18; + this._ram0SourceViewer.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this._ram0SourceViewer.ShowCellErrors = false; + this._ram0SourceViewer.ShowEditingIcon = false; + this._ram0SourceViewer.ShowRowErrors = false; + this._ram0SourceViewer.Size = new System.Drawing.Size(582, 554); + this._ram0SourceViewer.TabIndex = 2; + this._ram0SourceViewer.TabStop = false; + this._ram0SourceViewer.Tag = "RAM0"; + this._ram0SourceViewer.VirtualMode = true; + this._ram0SourceViewer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Ram0SourceViewCellClick); + this._ram0SourceViewer.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnMicrocodeSourceValueNeeded); + // + // dataGridViewTextBoxColumn8 + // + this.dataGridViewTextBoxColumn8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + dataGridViewCellStyle14.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle14; + this.dataGridViewTextBoxColumn8.HeaderText = "Disassembly"; + this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; + this.dataGridViewTextBoxColumn8.ReadOnly = true; + this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + // + // dataGridViewTextBoxColumn6 + // + this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle13.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle13; + this.dataGridViewTextBoxColumn6.HeaderText = "Word"; + this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; + this.dataGridViewTextBoxColumn6.ReadOnly = true; + this.dataGridViewTextBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn6.Width = 5; + // + // dataGridViewTextBoxColumn7 + // + this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle12.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle12; + this.dataGridViewTextBoxColumn7.HeaderText = "Addr"; + this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; + this.dataGridViewTextBoxColumn7.ReadOnly = true; + this.dataGridViewTextBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn7.Width = 5; + // + // dataGridViewCheckBoxColumn2 + // + this.dataGridViewCheckBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; + this.dataGridViewCheckBoxColumn2.FalseValue = "false"; + this.dataGridViewCheckBoxColumn2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.dataGridViewCheckBoxColumn2.HeaderText = "B"; + this.dataGridViewCheckBoxColumn2.IndeterminateValue = "null"; + this.dataGridViewCheckBoxColumn2.Name = "dataGridViewCheckBoxColumn2"; + this.dataGridViewCheckBoxColumn2.ReadOnly = true; + this.dataGridViewCheckBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewCheckBoxColumn2.TrueValue = "true"; + this.dataGridViewCheckBoxColumn2.Width = 20; + // + // Rom1Page + // + this.Rom1Page.Controls.Add(this._rom1SourceViewer); + this.Rom1Page.Location = new System.Drawing.Point(4, 22); + this.Rom1Page.Name = "Rom1Page"; + this.Rom1Page.Padding = new System.Windows.Forms.Padding(3); + this.Rom1Page.Size = new System.Drawing.Size(582, 554); + this.Rom1Page.TabIndex = 1; + this.Rom1Page.Text = "ROM1"; + this.Rom1Page.UseVisualStyleBackColor = true; + // + // _rom1SourceViewer + // + this._rom1SourceViewer.AllowUserToAddRows = false; + this._rom1SourceViewer.AllowUserToDeleteRows = false; + this._rom1SourceViewer.AllowUserToResizeColumns = false; + this._rom1SourceViewer.AllowUserToResizeRows = false; + dataGridViewCellStyle6.BackColor = System.Drawing.Color.Silver; + this._rom1SourceViewer.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; + this._rom1SourceViewer.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleVertical; + this._rom1SourceViewer.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this._rom1SourceViewer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewCheckBoxColumn1, + this.dataGridViewTextBoxColumn4, + this.dataGridViewTextBoxColumn3, + this.dataGridViewTextBoxColumn5}); + this._rom1SourceViewer.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; + this._rom1SourceViewer.Location = new System.Drawing.Point(0, 0); + this._rom1SourceViewer.Name = "_rom1SourceViewer"; + this._rom1SourceViewer.ReadOnly = true; + this._rom1SourceViewer.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle10.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this._rom1SourceViewer.RowHeadersDefaultCellStyle = dataGridViewCellStyle10; + this._rom1SourceViewer.RowHeadersVisible = false; + this._rom1SourceViewer.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + this._rom1SourceViewer.RowTemplate.Height = 18; + this._rom1SourceViewer.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this._rom1SourceViewer.ShowCellErrors = false; + this._rom1SourceViewer.ShowEditingIcon = false; + this._rom1SourceViewer.ShowRowErrors = false; + this._rom1SourceViewer.Size = new System.Drawing.Size(582, 554); + this._rom1SourceViewer.TabIndex = 2; + this._rom1SourceViewer.TabStop = false; + this._rom1SourceViewer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Rom1SourceViewCellClick); + // + // dataGridViewTextBoxColumn5 + // + this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + dataGridViewCellStyle9.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle9; + this.dataGridViewTextBoxColumn5.HeaderText = "Source Code"; + this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; + this.dataGridViewTextBoxColumn5.ReadOnly = true; + this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; // // dataGridViewTextBoxColumn3 // @@ -965,16 +868,350 @@ this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; this.dataGridViewTextBoxColumn3.Width = 5; // - // dataGridViewTextBoxColumn5 + // dataGridViewTextBoxColumn4 // - this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - dataGridViewCellStyle9.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle9; - this.dataGridViewTextBoxColumn5.HeaderText = "Source Code"; - this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; - this.dataGridViewTextBoxColumn5.ReadOnly = true; - this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewTextBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle7.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle7; + this.dataGridViewTextBoxColumn4.HeaderText = "T"; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + this.dataGridViewTextBoxColumn4.ReadOnly = true; + this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn4.Width = 5; + // + // dataGridViewCheckBoxColumn1 + // + this.dataGridViewCheckBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; + this.dataGridViewCheckBoxColumn1.FalseValue = "false"; + this.dataGridViewCheckBoxColumn1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.dataGridViewCheckBoxColumn1.HeaderText = "B"; + this.dataGridViewCheckBoxColumn1.IndeterminateValue = "null"; + this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1"; + this.dataGridViewCheckBoxColumn1.ReadOnly = true; + this.dataGridViewCheckBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewCheckBoxColumn1.TrueValue = "true"; + this.dataGridViewCheckBoxColumn1.Width = 20; + // + // Rom0Page + // + this.Rom0Page.Controls.Add(this._rom0SourceViewer); + this.Rom0Page.Location = new System.Drawing.Point(4, 22); + this.Rom0Page.Name = "Rom0Page"; + this.Rom0Page.Padding = new System.Windows.Forms.Padding(3); + this.Rom0Page.Size = new System.Drawing.Size(582, 554); + this.Rom0Page.TabIndex = 0; + this.Rom0Page.Text = "ROM0"; + this.Rom0Page.UseVisualStyleBackColor = true; + // + // _rom0SourceViewer + // + this._rom0SourceViewer.AllowUserToAddRows = false; + this._rom0SourceViewer.AllowUserToDeleteRows = false; + this._rom0SourceViewer.AllowUserToResizeColumns = false; + this._rom0SourceViewer.AllowUserToResizeRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.Silver; + this._rom0SourceViewer.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this._rom0SourceViewer.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleVertical; + this._rom0SourceViewer.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this._rom0SourceViewer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.Breakpoint, + this.T, + this.Addr, + this.Source}); + this._rom0SourceViewer.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; + this._rom0SourceViewer.Location = new System.Drawing.Point(0, 0); + this._rom0SourceViewer.Name = "_rom0SourceViewer"; + this._rom0SourceViewer.ReadOnly = true; + this._rom0SourceViewer.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle5.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this._rom0SourceViewer.RowHeadersDefaultCellStyle = dataGridViewCellStyle5; + this._rom0SourceViewer.RowHeadersVisible = false; + this._rom0SourceViewer.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + this._rom0SourceViewer.RowTemplate.Height = 18; + this._rom0SourceViewer.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this._rom0SourceViewer.ShowCellErrors = false; + this._rom0SourceViewer.ShowEditingIcon = false; + this._rom0SourceViewer.ShowRowErrors = false; + this._rom0SourceViewer.Size = new System.Drawing.Size(582, 554); + this._rom0SourceViewer.TabIndex = 1; + this._rom0SourceViewer.TabStop = false; + this._rom0SourceViewer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Rom0SourceViewCellClick); + // + // Source + // + this.Source.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + dataGridViewCellStyle4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Source.DefaultCellStyle = dataGridViewCellStyle4; + this.Source.HeaderText = "Source Code"; + this.Source.Name = "Source"; + this.Source.ReadOnly = true; + this.Source.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.Source.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + // + // Addr + // + this.Addr.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Addr.DefaultCellStyle = dataGridViewCellStyle3; + this.Addr.HeaderText = "Addr"; + this.Addr.Name = "Addr"; + this.Addr.ReadOnly = true; + this.Addr.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.Addr.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.Addr.Width = 5; + // + // T + // + this.T.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle2.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.T.DefaultCellStyle = dataGridViewCellStyle2; + this.T.HeaderText = "T"; + this.T.Name = "T"; + this.T.ReadOnly = true; + this.T.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.T.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.T.Width = 5; + // + // Breakpoint + // + this.Breakpoint.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; + this.Breakpoint.FalseValue = "false"; + this.Breakpoint.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Breakpoint.HeaderText = "B"; + this.Breakpoint.IndeterminateValue = "null"; + this.Breakpoint.Name = "Breakpoint"; + this.Breakpoint.ReadOnly = true; + this.Breakpoint.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.Breakpoint.TrueValue = "true"; + this.Breakpoint.Width = 20; + // + // SourceTabs + // + this.SourceTabs.Controls.Add(this.Rom0Page); + this.SourceTabs.Controls.Add(this.Rom1Page); + this.SourceTabs.Controls.Add(this.Ram0Page); + this.SourceTabs.Controls.Add(this.Ram1Page); + this.SourceTabs.Controls.Add(this.Ram2Page); + this.SourceTabs.Location = new System.Drawing.Point(6, 19); + this.SourceTabs.Name = "SourceTabs"; + this.SourceTabs.SelectedIndex = 0; + this.SourceTabs.Size = new System.Drawing.Size(590, 580); + this.SourceTabs.TabIndex = 14; + this.SourceTabs.SelectedIndexChanged += new System.EventHandler(this.OnTabChanged); + // + // Ram1Page + // + this.Ram1Page.Controls.Add(this._ram1SourceViewer); + this.Ram1Page.Location = new System.Drawing.Point(4, 22); + this.Ram1Page.Name = "Ram1Page"; + this.Ram1Page.Padding = new System.Windows.Forms.Padding(3); + this.Ram1Page.Size = new System.Drawing.Size(582, 554); + this.Ram1Page.TabIndex = 3; + this.Ram1Page.Text = "RAM1"; + this.Ram1Page.UseVisualStyleBackColor = true; + // + // Ram2Page + // + this.Ram2Page.Controls.Add(this._ram2SourceViewer); + this.Ram2Page.Location = new System.Drawing.Point(4, 22); + this.Ram2Page.Name = "Ram2Page"; + this.Ram2Page.Padding = new System.Windows.Forms.Padding(3); + this.Ram2Page.Size = new System.Drawing.Size(582, 554); + this.Ram2Page.TabIndex = 4; + this.Ram2Page.Text = "RAM2"; + this.Ram2Page.UseVisualStyleBackColor = true; + // + // _ram1SourceViewer + // + this._ram1SourceViewer.AllowUserToAddRows = false; + this._ram1SourceViewer.AllowUserToDeleteRows = false; + this._ram1SourceViewer.AllowUserToResizeColumns = false; + this._ram1SourceViewer.AllowUserToResizeRows = false; + dataGridViewCellStyle16.BackColor = System.Drawing.Color.Silver; + this._ram1SourceViewer.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16; + this._ram1SourceViewer.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleVertical; + this._ram1SourceViewer.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this._ram1SourceViewer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewCheckBoxColumn3, + this.dataGridViewTextBoxColumn1, + this.dataGridViewTextBoxColumn2, + this.dataGridViewTextBoxColumn12}); + this._ram1SourceViewer.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; + this._ram1SourceViewer.Location = new System.Drawing.Point(0, 0); + this._ram1SourceViewer.Name = "_ram1SourceViewer"; + this._ram1SourceViewer.ReadOnly = true; + this._ram1SourceViewer.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle20.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this._ram1SourceViewer.RowHeadersDefaultCellStyle = dataGridViewCellStyle20; + this._ram1SourceViewer.RowHeadersVisible = false; + this._ram1SourceViewer.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + this._ram1SourceViewer.RowTemplate.Height = 18; + this._ram1SourceViewer.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this._ram1SourceViewer.ShowCellErrors = false; + this._ram1SourceViewer.ShowEditingIcon = false; + this._ram1SourceViewer.ShowRowErrors = false; + this._ram1SourceViewer.Size = new System.Drawing.Size(582, 554); + this._ram1SourceViewer.TabIndex = 3; + this._ram1SourceViewer.TabStop = false; + this._ram1SourceViewer.Tag = "RAM1"; + this._ram1SourceViewer.VirtualMode = true; + this._ram1SourceViewer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Ram1SourceViewCellClick); + this._ram1SourceViewer.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnMicrocodeSourceValueNeeded); + // + // dataGridViewCheckBoxColumn3 + // + this.dataGridViewCheckBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; + this.dataGridViewCheckBoxColumn3.FalseValue = "false"; + this.dataGridViewCheckBoxColumn3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.dataGridViewCheckBoxColumn3.HeaderText = "B"; + this.dataGridViewCheckBoxColumn3.IndeterminateValue = "null"; + this.dataGridViewCheckBoxColumn3.Name = "dataGridViewCheckBoxColumn3"; + this.dataGridViewCheckBoxColumn3.ReadOnly = true; + this.dataGridViewCheckBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewCheckBoxColumn3.TrueValue = "true"; + this.dataGridViewCheckBoxColumn3.Width = 20; + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle17.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle17; + this.dataGridViewTextBoxColumn1.HeaderText = "Addr"; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.ReadOnly = true; + this.dataGridViewTextBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn1.Width = 5; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle18.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle18; + this.dataGridViewTextBoxColumn2.HeaderText = "Word"; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.ReadOnly = true; + this.dataGridViewTextBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn2.Width = 5; + // + // dataGridViewTextBoxColumn12 + // + this.dataGridViewTextBoxColumn12.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + dataGridViewCellStyle19.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dataGridViewTextBoxColumn12.DefaultCellStyle = dataGridViewCellStyle19; + this.dataGridViewTextBoxColumn12.HeaderText = "Disassembly"; + this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12"; + this.dataGridViewTextBoxColumn12.ReadOnly = true; + this.dataGridViewTextBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + // + // _ram2SourceViewer + // + this._ram2SourceViewer.AllowUserToAddRows = false; + this._ram2SourceViewer.AllowUserToDeleteRows = false; + this._ram2SourceViewer.AllowUserToResizeColumns = false; + this._ram2SourceViewer.AllowUserToResizeRows = false; + dataGridViewCellStyle21.BackColor = System.Drawing.Color.Silver; + this._ram2SourceViewer.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21; + this._ram2SourceViewer.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleVertical; + this._ram2SourceViewer.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this._ram2SourceViewer.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewCheckBoxColumn4, + this.dataGridViewTextBoxColumn13, + this.dataGridViewTextBoxColumn14, + this.dataGridViewTextBoxColumn15}); + this._ram2SourceViewer.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; + this._ram2SourceViewer.Location = new System.Drawing.Point(0, 0); + this._ram2SourceViewer.Name = "_ram2SourceViewer"; + this._ram2SourceViewer.ReadOnly = true; + this._ram2SourceViewer.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle25.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle25.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle25.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle25.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle25.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this._ram2SourceViewer.RowHeadersDefaultCellStyle = dataGridViewCellStyle25; + this._ram2SourceViewer.RowHeadersVisible = false; + this._ram2SourceViewer.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + this._ram2SourceViewer.RowTemplate.Height = 18; + this._ram2SourceViewer.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this._ram2SourceViewer.ShowCellErrors = false; + this._ram2SourceViewer.ShowEditingIcon = false; + this._ram2SourceViewer.ShowRowErrors = false; + this._ram2SourceViewer.Size = new System.Drawing.Size(582, 554); + this._ram2SourceViewer.TabIndex = 3; + this._ram2SourceViewer.TabStop = false; + this._ram2SourceViewer.Tag = "RAM2"; + this._ram2SourceViewer.VirtualMode = true; + this._ram2SourceViewer.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.Ram2SourceViewCellClick); + this._ram2SourceViewer.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnMicrocodeSourceValueNeeded); + // + // dataGridViewCheckBoxColumn4 + // + this.dataGridViewCheckBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells; + this.dataGridViewCheckBoxColumn4.FalseValue = "false"; + this.dataGridViewCheckBoxColumn4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.dataGridViewCheckBoxColumn4.HeaderText = "B"; + this.dataGridViewCheckBoxColumn4.IndeterminateValue = "null"; + this.dataGridViewCheckBoxColumn4.Name = "dataGridViewCheckBoxColumn4"; + this.dataGridViewCheckBoxColumn4.ReadOnly = true; + this.dataGridViewCheckBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewCheckBoxColumn4.TrueValue = "true"; + this.dataGridViewCheckBoxColumn4.Width = 20; + // + // dataGridViewTextBoxColumn13 + // + this.dataGridViewTextBoxColumn13.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle22.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dataGridViewTextBoxColumn13.DefaultCellStyle = dataGridViewCellStyle22; + this.dataGridViewTextBoxColumn13.HeaderText = "Addr"; + this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; + this.dataGridViewTextBoxColumn13.ReadOnly = true; + this.dataGridViewTextBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn13.Width = 5; + // + // dataGridViewTextBoxColumn14 + // + this.dataGridViewTextBoxColumn14.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCellsExceptHeader; + dataGridViewCellStyle23.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn14.DefaultCellStyle = dataGridViewCellStyle23; + this.dataGridViewTextBoxColumn14.HeaderText = "Word"; + this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; + this.dataGridViewTextBoxColumn14.ReadOnly = true; + this.dataGridViewTextBoxColumn14.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn14.Width = 5; + // + // dataGridViewTextBoxColumn15 + // + this.dataGridViewTextBoxColumn15.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + dataGridViewCellStyle24.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dataGridViewTextBoxColumn15.DefaultCellStyle = dataGridViewCellStyle24; + this.dataGridViewTextBoxColumn15.HeaderText = "Disassembly"; + this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15"; + this.dataGridViewTextBoxColumn15.ReadOnly = true; + this.dataGridViewTextBoxColumn15.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; // // Debugger // @@ -1007,13 +1244,6 @@ this.Load += new System.EventHandler(this.Debugger_Load); this.Microcode.ResumeLayout(false); this.Microcode.PerformLayout(); - this.SourceTabs.ResumeLayout(false); - this.Rom0Page.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this._rom0SourceViewer)).EndInit(); - this.Rom1Page.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this._rom1SourceViewer)).EndInit(); - this.Rom2Page.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this._ram0SourceViewer)).EndInit(); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._registerData)).EndInit(); this.groupBox2.ResumeLayout(false); @@ -1025,6 +1255,17 @@ ((System.ComponentModel.ISupportInitialize)(this._memoryData)).EndInit(); this.groupBox6.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this._reservedMemory)).EndInit(); + this.Ram0Page.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this._ram0SourceViewer)).EndInit(); + this.Rom1Page.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this._rom1SourceViewer)).EndInit(); + this.Rom0Page.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this._rom0SourceViewer)).EndInit(); + this.SourceTabs.ResumeLayout(false); + this.Ram1Page.ResumeLayout(false); + this.Ram2Page.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this._ram1SourceViewer)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._ram2SourceViewer)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -1033,7 +1274,6 @@ #endregion private System.Windows.Forms.GroupBox Microcode; - private System.Windows.Forms.DataGridView _rom0SourceViewer; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.Button StepButton; private System.Windows.Forms.Button AutoStep; @@ -1054,10 +1294,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn RegValue; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.DataGridView _memoryData; - private System.Windows.Forms.DataGridViewCheckBoxColumn Breakpoint; - private System.Windows.Forms.DataGridViewTextBoxColumn T; - private System.Windows.Forms.DataGridViewTextBoxColumn Addr; - private System.Windows.Forms.DataGridViewTextBoxColumn Source; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label ExecutionStateLabel; private System.Windows.Forms.TextBox JumpToAddress; @@ -1069,16 +1305,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn Address; private System.Windows.Forms.DataGridViewTextBoxColumn Data; private System.Windows.Forms.DataGridViewTextBoxColumn Disassembly; - private System.Windows.Forms.TabControl SourceTabs; - private System.Windows.Forms.TabPage Rom0Page; - private System.Windows.Forms.TabPage Rom1Page; - private System.Windows.Forms.DataGridView _rom1SourceViewer; - private System.Windows.Forms.TabPage Rom2Page; - private System.Windows.Forms.DataGridView _ram0SourceViewer; - private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; private System.Windows.Forms.GroupBox groupBox6; private System.Windows.Forms.DataGridView _reservedMemory; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; @@ -1086,9 +1312,36 @@ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11; private System.Windows.Forms.TextBox MemoryJumpToAddress; private System.Windows.Forms.Label label3; + private System.Windows.Forms.TabControl SourceTabs; + private System.Windows.Forms.TabPage Rom0Page; + private System.Windows.Forms.DataGridView _rom0SourceViewer; + private System.Windows.Forms.DataGridViewCheckBoxColumn Breakpoint; + private System.Windows.Forms.DataGridViewTextBoxColumn T; + private System.Windows.Forms.DataGridViewTextBoxColumn Addr; + private System.Windows.Forms.DataGridViewTextBoxColumn Source; + private System.Windows.Forms.TabPage Rom1Page; + private System.Windows.Forms.DataGridView _rom1SourceViewer; private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; + private System.Windows.Forms.TabPage Ram0Page; + private System.Windows.Forms.DataGridView _ram0SourceViewer; + private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8; + private System.Windows.Forms.TabPage Ram1Page; + private System.Windows.Forms.DataGridView _ram1SourceViewer; + private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn3; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12; + private System.Windows.Forms.TabPage Ram2Page; + private System.Windows.Forms.DataGridView _ram2SourceViewer; + private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn4; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn13; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15; } } \ No newline at end of file diff --git a/Contralto/UI/Debugger.cs b/Contralto/UI/Debugger.cs index ab3216d..d085b94 100644 --- a/Contralto/UI/Debugger.cs +++ b/Contralto/UI/Debugger.cs @@ -26,7 +26,7 @@ namespace Contralto { _system = system; _controller = controller; - _microcodeBreakpointEnabled = new bool[3,1024]; + _microcodeBreakpointEnabled = new bool[5, 1024]; _novaBreakpointEnabled = new bool[65536]; _controller.StepCallback += OnExecutionStep; @@ -37,9 +37,9 @@ namespace Contralto _execType = _controller.IsRunning ? ExecutionType.Normal : ExecutionType.None; InitializeComponent(); - InitControls(); - RefreshUI(); - } + InitControls(); + RefreshUI(); + } public void LoadSourceCode(MicrocodeBank bank, string path) { @@ -76,7 +76,7 @@ namespace Contralto } // Ensure the UI view gets refreshed to display the current MPC source - Refresh(); + Refresh(); } public override void Refresh() @@ -122,7 +122,7 @@ namespace Contralto //_otherRegs.Rows[4].Cells[1].Value = OctalHelpers.ToOctal(_system.CPU.Skip, 1); _otherRegs.Rows[5].Cells[1].Value = Conversion.ToOctal(_system.MemoryBus.MAR, 6); _otherRegs.Rows[6].Cells[1].Value = Conversion.ToOctal(_system.MemoryBus.MD, 6); - _otherRegs.Rows[7].Cells[1].Value = Conversion.ToOctal(_system.MemoryBus.Cycle & 0x3f, 2); + _otherRegs.Rows[7].Cells[1].Value = Conversion.ToOctal(_system.MemoryBus.Cycle & 0x3f, 2); // Reserved memory locations for (int i = 0; i < _reservedMemoryEntries.Length; i++) @@ -148,7 +148,7 @@ namespace Contralto case MicrocodeBank.RAM0: SourceTabs.SelectedIndex = 2; break; - } + } RefreshMicrocodeDisassembly(_system.CPU.CurrentTask.MPC); @@ -186,7 +186,7 @@ namespace Contralto break; } - this.BringToFront(); + this.BringToFront(); } private void RefreshMicrocodeDisassembly(ushort address) @@ -199,13 +199,20 @@ namespace Contralto HighlightMicrocodeSourceLine(_rom0SourceViewer, address); break; - case 1: + case 1: HighlightMicrocodeSourceLine(_rom1SourceViewer, address); break; - case 2: - UpdateMicrocodeDisassembly(MicrocodeBank.RAM0); - HighlightMicrocodeSourceLine(_ram0SourceViewer, address); + case 2: + HighlightMicrocodeDisassemblyLine(_ram0SourceViewer, address); + break; + + case 3: + HighlightMicrocodeDisassemblyLine(_ram1SourceViewer, address); + break; + + case 4: + HighlightMicrocodeDisassemblyLine(_ram2SourceViewer, address); break; } } @@ -214,7 +221,7 @@ namespace Contralto { for (int i = 0; i < 32; i++) { - _registerData.Rows.Add(-1, -1 ,-1); + _registerData.Rows.Add(-1, -1, -1); } for (int i = 0; i < 16; i++) @@ -223,7 +230,10 @@ namespace Contralto } // TODO: handle extended memory - _memoryData.RowCount = 65536; + _memoryData.RowCount = 65536; + _ram0SourceViewer.RowCount = 1024; + _ram1SourceViewer.RowCount = 1024; + _ram2SourceViewer.RowCount = 1024; _otherRegs.Rows.Add("L", "0"); _otherRegs.Rows.Add("T", "0"); @@ -234,9 +244,9 @@ namespace Contralto //_otherRegs.Rows.Add("SKIP", "0"); _otherRegs.Rows.Add("MAR", "0"); _otherRegs.Rows.Add("MD", "0"); - _otherRegs.Rows.Add("MCycle", "0"); - - for(int i=0;i< _reservedMemoryEntries.Length;i++) + _otherRegs.Rows.Add("MCycle", "0"); + + for (int i = 0; i < _reservedMemoryEntries.Length; i++) { _reservedMemory.Rows.Add( Conversion.ToOctal(_reservedMemoryEntries[i].Address, 3), @@ -244,7 +254,7 @@ namespace Contralto Conversion.ToOctal(0, 6)); } } - + /// /// Handle breakpoint placement on column 0. @@ -252,20 +262,20 @@ namespace Contralto /// /// private void Rom0SourceViewCellClick(object sender, DataGridViewCellEventArgs e) - { + { // Check for breakpoint column click. if (e.ColumnIndex == 0) { - SetBreakpointFromCellClick(MicrocodeBank.ROM0, e.RowIndex); + SetBreakpointFromCellClickForSourceView(MicrocodeBank.ROM0, e.RowIndex); } - } + } private void Rom1SourceViewCellClick(object sender, DataGridViewCellEventArgs e) { // Check for breakpoint column click. if (e.ColumnIndex == 0) { - SetBreakpointFromCellClick(MicrocodeBank.ROM1, e.RowIndex); + SetBreakpointFromCellClickForSourceView(MicrocodeBank.ROM1, e.RowIndex); } } @@ -274,15 +284,33 @@ namespace Contralto // Check for breakpoint column click. if (e.ColumnIndex == 0) { - SetBreakpointFromCellClick(MicrocodeBank.RAM0, e.RowIndex); + SetBreakpointFromCellClickForDisassemblyView(MicrocodeBank.RAM0, e.RowIndex); } } - private void SetBreakpointFromCellClick(MicrocodeBank bank, int index) + private void Ram1SourceViewCellClick(object sender, DataGridViewCellEventArgs e) + { + // Check for breakpoint column click. + if (e.ColumnIndex == 0) + { + SetBreakpointFromCellClickForDisassemblyView(MicrocodeBank.RAM1, e.RowIndex); + } + } + + private void Ram2SourceViewCellClick(object sender, DataGridViewCellEventArgs e) + { + // Check for breakpoint column click. + if (e.ColumnIndex == 0) + { + SetBreakpointFromCellClickForDisassemblyView(MicrocodeBank.RAM2, e.RowIndex); + } + } + + private void SetBreakpointFromCellClickForSourceView(MicrocodeBank bank, int index) { DataGridView view = null; - switch(bank) + switch (bank) { case MicrocodeBank.ROM0: view = _rom0SourceViewer; @@ -292,9 +320,8 @@ namespace Contralto view = _rom1SourceViewer; break; - case MicrocodeBank.RAM0: - view = _ram0SourceViewer; - break; + default: + throw new InvalidOperationException("Bank does not have a source view."); } // See if this is a source line, if so check/uncheck the box @@ -308,6 +335,35 @@ namespace Contralto } } + private void SetBreakpointFromCellClickForDisassemblyView(MicrocodeBank bank, int index) + { + DataGridView view = null; + + switch (bank) + { + case MicrocodeBank.RAM0: + view = _rom0SourceViewer; + break; + + case MicrocodeBank.RAM1: + view = _ram1SourceViewer; + break; + + case MicrocodeBank.RAM2: + view = _ram2SourceViewer; + break; + + default: + throw new InvalidOperationException("Bank does not have a disassembly view."); + } + + // Set/unset the breakpoint + bool value = (bool)view.Rows[index].Cells[0].Value; + view.Rows[index].Cells[0].Value = !value; + + ModifyMicrocodeBreakpoint(bank, (UInt16)index, !value); + } + private void MemoryViewCellClick(object sender, DataGridViewCellEventArgs e) { // Check for breakpoint column click. @@ -321,55 +377,8 @@ namespace Contralto } } - private void UpdateMicrocodeDisassembly(MicrocodeBank bank) - { - DataGridView view = null; - uint[] uCode = null; - switch (bank) - { - case MicrocodeBank.ROM1: - view = _rom1SourceViewer; - uCode = UCodeMemory.UCodeROM; - break; - - case MicrocodeBank.RAM0: - view = _ram0SourceViewer; - uCode = UCodeMemory.UCodeRAM; - break; - } - - bool bFirstTime = view.Rows.Count == 0; - - - for(int i=0;i<1024;i++) - { - int address = (bank == MicrocodeBank.RAM0) ? i : 1024 + i; - MicroInstruction instruction = new MicroInstruction(uCode[address]); - - if (bFirstTime) - { - // Create new row - int index = view.Rows.Add( - false, // breakpoint - Conversion.ToOctal(address, 4), - Conversion.ToOctal((int)uCode[address], 11), - UCodeDisassembler.DisassembleInstruction(instruction, TaskType.Emulator)); - - view.Rows[index].Tag = (ushort)i; - } - else - { - // Update existing row - view.Rows[i].Cells[1].Value = Conversion.ToOctal(address, 4); - view.Rows[i].Cells[2].Value = Conversion.ToOctal((int)uCode[address], 11); - view.Rows[i].Cells[3].Value = UCodeDisassembler.DisassembleInstruction(instruction, TaskType.Emulator); - } - } - } - - private void HighlightMicrocodeSourceLine(DataGridView view, UInt16 address) - { + { foreach (DataGridViewRow row in view.Rows) { if (row.Tag != null && @@ -383,13 +392,22 @@ namespace Contralto } } + private void HighlightMicrocodeDisassemblyLine(DataGridView view, UInt16 address) + { + DataGridViewRow row = view.Rows[address]; + + view.ClearSelection(); + row.Selected = true; + view.CurrentCell = row.Cells[0]; + } + private void HighlightNovaSourceLine(UInt16 address) { if (address < _memoryData.Rows.Count) { _memoryData.ClearSelection(); _memoryData.Rows[address].Selected = true; - _memoryData.CurrentCell = _memoryData.Rows[address].Cells[0]; + _memoryData.CurrentCell = _memoryData.Rows[address].Cells[0]; } } @@ -408,7 +426,7 @@ namespace Contralto return; } - switch(_memoryData.Columns[e.ColumnIndex].Name) + switch (_memoryData.Columns[e.ColumnIndex].Name) { case "Bkpt": e.Value = GetNovaBreakpoint((UInt16)e.RowIndex); @@ -420,21 +438,82 @@ namespace Contralto case "Data": e.Value = Conversion.ToOctal(_system.MemoryBus.DebugReadWord((ushort)e.RowIndex), 6); - + break; case "Disassembly": e.Value = CPU.Nova.NovaDisassembler.DisassembleInstruction( - (ushort)e.RowIndex, + (ushort)e.RowIndex, _system.MemoryBus.DebugReadWord((ushort)e.RowIndex)); break; } } + private void OnMicrocodeSourceValueNeeded(object sender, DataGridViewCellValueEventArgs e) + { + if (e.RowIndex > 1024) + { + // Top of uCode memory, nothing to do. + return; + } + + DataGridView view = (DataGridView)sender; + + int bank = 0; + switch ((string)view.Tag) + { + case "RAM0": + bank = 0; + break; + + case "RAM1": + bank = 1; + break; + + case "RAM2": + bank = 2; + break; + + default: + throw new InvalidOperationException("Invalid view Tag for disassembly view."); + } + + ushort address = (ushort)(e.RowIndex + (bank * 1024)); + + // Yes, switching on the Header Text seems clumsy and awful but this is + // what WinForms has driven me to do. + switch (((DataGridView)sender).Columns[e.ColumnIndex].HeaderText) + { + case "B": + e.Value = GetMicrocodeBreakpoint(MicrocodeBank.RAM0 + bank, (ushort)(address % 1024)); + break; + + case "Addr": + e.Value = Conversion.ToOctal(e.RowIndex, 4); + break; + + case "Word": + e.Value = Conversion.ToOctal((int)UCodeMemory.UCodeRAM[address], 11); + + break; + + case "Disassembly": + // TODO: should provide means to disassemble as specific task, not just Emulator. + MicroInstruction instruction = new MicroInstruction(UCodeMemory.UCodeRAM[address]); + e.Value = UCodeDisassembler.DisassembleInstruction(instruction, TaskType.Emulator); + break; + } + } + private void ModifyMicrocodeBreakpoint(MicrocodeBank bank, UInt16 address, bool set) { - _microcodeBreakpointEnabled[(int)bank,address] = set; + _microcodeBreakpointEnabled[(int)bank, address] = set; + } + + private bool GetMicrocodeBreakpoint(MicrocodeBank bank, UInt16 address) + { + return _microcodeBreakpointEnabled[(int)bank, address]; } private bool GetNovaBreakpoint(UInt16 address) @@ -530,7 +609,7 @@ namespace Contralto { return taskColors[(int)task]; } - } + } private struct SourceLine { @@ -546,7 +625,7 @@ namespace Contralto string[] tokens = sourceText.Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries); bool annotated = false; - + // Make the compiler happy Text = sourceText; Address = String.Empty; @@ -557,7 +636,7 @@ namespace Contralto tokens[0].EndsWith(">")) { // Close enough. Look for the task tag and parse out the (octal) address - switch(tokens[0].Substring(0,2)) + switch (tokens[0].Substring(0, 2)) { case "EM": Task = TaskType.Emulator; @@ -604,7 +683,7 @@ namespace Contralto break; default: - Task = TaskType.Invalid; + Task = TaskType.Invalid; break; } @@ -621,16 +700,16 @@ namespace Contralto annotated = false; } - Text = sourceText.Substring(tokens[0].Length + 1, sourceText.Length - tokens[0].Length -1); + Text = sourceText.Substring(tokens[0].Length + 1, sourceText.Length - tokens[0].Length - 1); annotated = true; } else { // We will just display this as a non-source line annotated = false; - } + } } - + if (!annotated) { Text = sourceText; @@ -653,7 +732,7 @@ namespace Contralto private void Debugger_Load(object sender, EventArgs e) { - } + } private void OnJumpAddressKeyDown(object sender, KeyEventArgs e) { @@ -665,7 +744,7 @@ namespace Contralto UInt16 address = Convert.ToUInt16(JumpToAddress.Text, 8); // find the source address that matches this, if any. - RefreshMicrocodeDisassembly(address); + RefreshMicrocodeDisassembly(address); } catch { @@ -697,7 +776,7 @@ namespace Contralto { _execType = ExecutionType.Step; SetExecutionState(ExecutionState.SingleStep); - _controller.StartExecution(AlternateBootType.None); + _controller.StartExecution(AlternateBootType.None); } private void OnAutoStepButtonClicked(object sender, EventArgs e) @@ -719,11 +798,11 @@ namespace Contralto // _execType = ExecutionType.Normal; SetExecutionState(ExecutionState.Running); - _controller.StartExecution(AlternateBootType.None); + _controller.StartExecution(AlternateBootType.None); } private void RunToNextTaskButton_Click(object sender, EventArgs e) - { + { _execType = ExecutionType.NextTask; SetExecutionState(ExecutionState.Running); _controller.StartExecution(AlternateBootType.None); @@ -742,7 +821,7 @@ namespace Contralto _execType = ExecutionType.NextNovaInstruction; SetExecutionState(ExecutionState.Running); _controller.StartExecution(AlternateBootType.None); - + } private void OnStopButtonClicked(object sender, EventArgs e) @@ -750,14 +829,14 @@ namespace Contralto _controller.StopExecution(); Refresh(); } - + private void ResetButton_Click(object sender, EventArgs e) { - _controller.Reset(AlternateBootType.None); + _controller.Reset(AlternateBootType.None); Refresh(); - } - + } + private void OnExecutionError(Exception e) { _lastExceptionText = e.Message; @@ -776,12 +855,12 @@ namespace Contralto this.BeginInvoke(new StepDelegate(Invalidate)); System.Threading.Thread.Sleep(10); return false; /* break always */ - } + } case ExecutionType.Step: - return true; /* break always */ - - case ExecutionType.Normal: + return true; /* break always */ + + case ExecutionType.Normal: case ExecutionType.NextTask: case ExecutionType.NextNovaInstruction: @@ -810,9 +889,9 @@ namespace Contralto _system._novaInst++; } - // See if we need to stop here + // See if we need to stop here if (_execAbort || // The Stop button was hit - _microcodeBreakpointEnabled[(int)UCodeMemory.GetBank(_system.CPU.CurrentTask.TaskType),_system.CPU.CurrentTask.MPC] || // A microcode breakpoint was hit + _microcodeBreakpointEnabled[(int)UCodeMemory.GetBank(_system.CPU.CurrentTask.TaskType), _system.CPU.CurrentTask.MPC] || // A microcode breakpoint was hit (_execType == ExecutionType.NextTask && _system.CPU.NextTask != null && _system.CPU.NextTask != _system.CPU.CurrentTask) || // The next task was switched to @@ -1237,7 +1316,7 @@ namespace Contralto Running, BreakpointStop, InternalError, - } + } private struct ReservedMemoryEntry { @@ -1332,12 +1411,6 @@ namespace Contralto private bool[,] _microcodeBreakpointEnabled; // Nova Debugger breakpoints; same as above - private bool[] _novaBreakpointEnabled; - - private void HackButton_Click(object sender, EventArgs e) - { - //_system.CPU.HAX = true; - Log.Write(Logging.LogComponent.Debug, "***** HACK HIT ******"); - } + private bool[] _novaBreakpointEnabled; } } diff --git a/Contralto/UI/Debugger.resx b/Contralto/UI/Debugger.resx index 29bc6e5..a03a29e 100644 --- a/Contralto/UI/Debugger.resx +++ b/Contralto/UI/Debugger.resx @@ -153,6 +153,30 @@ True + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + True