TRIS_A + TRIS_B

This commit is contained in:
Mike Schwörer 2017-05-11 10:49:42 +02:00
parent e3985dc887
commit 7cb924f580
4 changed files with 710 additions and 7 deletions

View File

@ -68,6 +68,40 @@
this.c1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.c2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.lbStack = new System.Windows.Forms.ListBox();
this.btn_RA_Tris_7 = new System.Windows.Forms.Button();
this.btn_RA_Tris_6 = new System.Windows.Forms.Button();
this.btn_RA_Tris_5 = new System.Windows.Forms.Button();
this.btn_RA_Tris_4 = new System.Windows.Forms.Button();
this.btn_RA_Tris_3 = new System.Windows.Forms.Button();
this.btn_RA_Tris_2 = new System.Windows.Forms.Button();
this.btn_RA_Tris_1 = new System.Windows.Forms.Button();
this.btn_RA_1 = new System.Windows.Forms.Button();
this.btn_RA_2 = new System.Windows.Forms.Button();
this.btn_RA_3 = new System.Windows.Forms.Button();
this.btn_RA_4 = new System.Windows.Forms.Button();
this.btn_RA_5 = new System.Windows.Forms.Button();
this.btn_RA_6 = new System.Windows.Forms.Button();
this.btn_RA_7 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.btn_RB_1 = new System.Windows.Forms.Button();
this.btn_RB_2 = new System.Windows.Forms.Button();
this.btn_RB_3 = new System.Windows.Forms.Button();
this.btn_RB_4 = new System.Windows.Forms.Button();
this.btn_RB_5 = new System.Windows.Forms.Button();
this.btn_RB_6 = new System.Windows.Forms.Button();
this.btn_RB_7 = new System.Windows.Forms.Button();
this.btn_RB_Tris_1 = new System.Windows.Forms.Button();
this.btn_RB_Tris_2 = new System.Windows.Forms.Button();
this.btn_RB_Tris_3 = new System.Windows.Forms.Button();
this.btn_RB_Tris_4 = new System.Windows.Forms.Button();
this.btn_RB_Tris_5 = new System.Windows.Forms.Button();
this.btn_RB_Tris_6 = new System.Windows.Forms.Button();
this.btn_RB_Tris_7 = new System.Windows.Forms.Button();
this.btn_RB_0 = new System.Windows.Forms.Button();
this.btn_RB_Tris_0 = new System.Windows.Forms.Button();
this.btn_RA_0 = new System.Windows.Forms.Button();
this.btn_RA_Tris_0 = new System.Windows.Forms.Button();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
@ -386,11 +420,383 @@
this.lbStack.Size = new System.Drawing.Size(66, 355);
this.lbStack.TabIndex = 19;
//
// btn_RA_Tris_7
//
this.btn_RA_Tris_7.Location = new System.Drawing.Point(913, 459);
this.btn_RA_Tris_7.Name = "btn_RA_Tris_7";
this.btn_RA_Tris_7.Size = new System.Drawing.Size(21, 23);
this.btn_RA_Tris_7.TabIndex = 20;
this.btn_RA_Tris_7.Text = "i";
this.btn_RA_Tris_7.UseVisualStyleBackColor = true;
this.btn_RA_Tris_7.Click += new System.EventHandler(this.btn_RA_Tris_7_Click);
//
// btn_RA_Tris_6
//
this.btn_RA_Tris_6.Location = new System.Drawing.Point(940, 459);
this.btn_RA_Tris_6.Name = "btn_RA_Tris_6";
this.btn_RA_Tris_6.Size = new System.Drawing.Size(21, 23);
this.btn_RA_Tris_6.TabIndex = 21;
this.btn_RA_Tris_6.Text = "i";
this.btn_RA_Tris_6.UseVisualStyleBackColor = true;
this.btn_RA_Tris_6.Click += new System.EventHandler(this.btn_RA_Tris_6_Click);
//
// btn_RA_Tris_5
//
this.btn_RA_Tris_5.Location = new System.Drawing.Point(967, 459);
this.btn_RA_Tris_5.Name = "btn_RA_Tris_5";
this.btn_RA_Tris_5.Size = new System.Drawing.Size(21, 23);
this.btn_RA_Tris_5.TabIndex = 22;
this.btn_RA_Tris_5.Text = "i";
this.btn_RA_Tris_5.UseVisualStyleBackColor = true;
this.btn_RA_Tris_5.Click += new System.EventHandler(this.btn_RA_Tris_5_Click);
//
// btn_RA_Tris_4
//
this.btn_RA_Tris_4.Location = new System.Drawing.Point(994, 459);
this.btn_RA_Tris_4.Name = "btn_RA_Tris_4";
this.btn_RA_Tris_4.Size = new System.Drawing.Size(21, 23);
this.btn_RA_Tris_4.TabIndex = 23;
this.btn_RA_Tris_4.Text = "i";
this.btn_RA_Tris_4.UseVisualStyleBackColor = true;
this.btn_RA_Tris_4.Click += new System.EventHandler(this.btn_RA_Tris_4_Click);
//
// btn_RA_Tris_3
//
this.btn_RA_Tris_3.Location = new System.Drawing.Point(1021, 459);
this.btn_RA_Tris_3.Name = "btn_RA_Tris_3";
this.btn_RA_Tris_3.Size = new System.Drawing.Size(21, 23);
this.btn_RA_Tris_3.TabIndex = 24;
this.btn_RA_Tris_3.Text = "i";
this.btn_RA_Tris_3.UseVisualStyleBackColor = true;
this.btn_RA_Tris_3.Click += new System.EventHandler(this.btn_RA_Tris_3_Click);
//
// btn_RA_Tris_2
//
this.btn_RA_Tris_2.Location = new System.Drawing.Point(1048, 459);
this.btn_RA_Tris_2.Name = "btn_RA_Tris_2";
this.btn_RA_Tris_2.Size = new System.Drawing.Size(21, 23);
this.btn_RA_Tris_2.TabIndex = 25;
this.btn_RA_Tris_2.Text = "i";
this.btn_RA_Tris_2.UseVisualStyleBackColor = true;
this.btn_RA_Tris_2.Click += new System.EventHandler(this.btn_RA_Tris_2_Click);
//
// btn_RA_Tris_1
//
this.btn_RA_Tris_1.Location = new System.Drawing.Point(1075, 459);
this.btn_RA_Tris_1.Name = "btn_RA_Tris_1";
this.btn_RA_Tris_1.Size = new System.Drawing.Size(21, 23);
this.btn_RA_Tris_1.TabIndex = 26;
this.btn_RA_Tris_1.Text = "i";
this.btn_RA_Tris_1.UseVisualStyleBackColor = true;
this.btn_RA_Tris_1.Click += new System.EventHandler(this.btn_RA_Tris_1_Click);
//
// btn_RA_1
//
this.btn_RA_1.Location = new System.Drawing.Point(1075, 488);
this.btn_RA_1.Name = "btn_RA_1";
this.btn_RA_1.Size = new System.Drawing.Size(21, 23);
this.btn_RA_1.TabIndex = 33;
this.btn_RA_1.Text = "0";
this.btn_RA_1.UseVisualStyleBackColor = true;
this.btn_RA_1.Click += new System.EventHandler(this.btn_RA_1_Click);
//
// btn_RA_2
//
this.btn_RA_2.Location = new System.Drawing.Point(1048, 488);
this.btn_RA_2.Name = "btn_RA_2";
this.btn_RA_2.Size = new System.Drawing.Size(21, 23);
this.btn_RA_2.TabIndex = 32;
this.btn_RA_2.Text = "0";
this.btn_RA_2.UseVisualStyleBackColor = true;
this.btn_RA_2.Click += new System.EventHandler(this.btn_RA_2_Click);
//
// btn_RA_3
//
this.btn_RA_3.Location = new System.Drawing.Point(1021, 488);
this.btn_RA_3.Name = "btn_RA_3";
this.btn_RA_3.Size = new System.Drawing.Size(21, 23);
this.btn_RA_3.TabIndex = 31;
this.btn_RA_3.Text = "0";
this.btn_RA_3.UseVisualStyleBackColor = true;
this.btn_RA_3.Click += new System.EventHandler(this.btn_RA_3_Click);
//
// btn_RA_4
//
this.btn_RA_4.Location = new System.Drawing.Point(994, 488);
this.btn_RA_4.Name = "btn_RA_4";
this.btn_RA_4.Size = new System.Drawing.Size(21, 23);
this.btn_RA_4.TabIndex = 30;
this.btn_RA_4.Text = "0";
this.btn_RA_4.UseVisualStyleBackColor = true;
this.btn_RA_4.Click += new System.EventHandler(this.btn_RA_4_Click);
//
// btn_RA_5
//
this.btn_RA_5.Location = new System.Drawing.Point(967, 488);
this.btn_RA_5.Name = "btn_RA_5";
this.btn_RA_5.Size = new System.Drawing.Size(21, 23);
this.btn_RA_5.TabIndex = 29;
this.btn_RA_5.Text = "0";
this.btn_RA_5.UseVisualStyleBackColor = true;
this.btn_RA_5.Click += new System.EventHandler(this.btn_RA_5_Click);
//
// btn_RA_6
//
this.btn_RA_6.Location = new System.Drawing.Point(940, 488);
this.btn_RA_6.Name = "btn_RA_6";
this.btn_RA_6.Size = new System.Drawing.Size(21, 23);
this.btn_RA_6.TabIndex = 28;
this.btn_RA_6.Text = "0";
this.btn_RA_6.UseVisualStyleBackColor = true;
this.btn_RA_6.Click += new System.EventHandler(this.btn_RA_6_Click);
//
// btn_RA_7
//
this.btn_RA_7.Location = new System.Drawing.Point(913, 488);
this.btn_RA_7.Name = "btn_RA_7";
this.btn_RA_7.Size = new System.Drawing.Size(21, 23);
this.btn_RA_7.TabIndex = 27;
this.btn_RA_7.Text = "0";
this.btn_RA_7.UseVisualStyleBackColor = true;
this.btn_RA_7.Click += new System.EventHandler(this.btn_RA_7_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(915, 438);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(22, 13);
this.label2.TabIndex = 34;
this.label2.Text = "RA";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(915, 524);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(22, 13);
this.label5.TabIndex = 49;
this.label5.Text = "RB";
//
// btn_RB_1
//
this.btn_RB_1.Location = new System.Drawing.Point(1075, 574);
this.btn_RB_1.Name = "btn_RB_1";
this.btn_RB_1.Size = new System.Drawing.Size(21, 23);
this.btn_RB_1.TabIndex = 48;
this.btn_RB_1.Text = "0";
this.btn_RB_1.UseVisualStyleBackColor = true;
this.btn_RB_1.Click += new System.EventHandler(this.btn_RB_1_Click);
//
// btn_RB_2
//
this.btn_RB_2.Location = new System.Drawing.Point(1048, 574);
this.btn_RB_2.Name = "btn_RB_2";
this.btn_RB_2.Size = new System.Drawing.Size(21, 23);
this.btn_RB_2.TabIndex = 47;
this.btn_RB_2.Text = "0";
this.btn_RB_2.UseVisualStyleBackColor = true;
this.btn_RB_2.Click += new System.EventHandler(this.btn_RB_2_Click);
//
// btn_RB_3
//
this.btn_RB_3.Location = new System.Drawing.Point(1021, 574);
this.btn_RB_3.Name = "btn_RB_3";
this.btn_RB_3.Size = new System.Drawing.Size(21, 23);
this.btn_RB_3.TabIndex = 46;
this.btn_RB_3.Text = "0";
this.btn_RB_3.UseVisualStyleBackColor = true;
this.btn_RB_3.Click += new System.EventHandler(this.btn_RB_3_Click);
//
// btn_RB_4
//
this.btn_RB_4.Location = new System.Drawing.Point(994, 574);
this.btn_RB_4.Name = "btn_RB_4";
this.btn_RB_4.Size = new System.Drawing.Size(21, 23);
this.btn_RB_4.TabIndex = 45;
this.btn_RB_4.Text = "0";
this.btn_RB_4.UseVisualStyleBackColor = true;
this.btn_RB_4.Click += new System.EventHandler(this.btn_RB_4_Click);
//
// btn_RB_5
//
this.btn_RB_5.Location = new System.Drawing.Point(967, 574);
this.btn_RB_5.Name = "btn_RB_5";
this.btn_RB_5.Size = new System.Drawing.Size(21, 23);
this.btn_RB_5.TabIndex = 44;
this.btn_RB_5.Text = "0";
this.btn_RB_5.UseVisualStyleBackColor = true;
this.btn_RB_5.Click += new System.EventHandler(this.btn_RB_5_Click);
//
// btn_RB_6
//
this.btn_RB_6.Location = new System.Drawing.Point(940, 574);
this.btn_RB_6.Name = "btn_RB_6";
this.btn_RB_6.Size = new System.Drawing.Size(21, 23);
this.btn_RB_6.TabIndex = 43;
this.btn_RB_6.Text = "0";
this.btn_RB_6.UseVisualStyleBackColor = true;
this.btn_RB_6.Click += new System.EventHandler(this.btn_RB_6_Click);
//
// btn_RB_7
//
this.btn_RB_7.Location = new System.Drawing.Point(913, 574);
this.btn_RB_7.Name = "btn_RB_7";
this.btn_RB_7.Size = new System.Drawing.Size(21, 23);
this.btn_RB_7.TabIndex = 42;
this.btn_RB_7.Text = "0";
this.btn_RB_7.UseVisualStyleBackColor = true;
this.btn_RB_7.Click += new System.EventHandler(this.btn_RB_7_Click);
//
// btn_RB_Tris_1
//
this.btn_RB_Tris_1.Location = new System.Drawing.Point(1075, 545);
this.btn_RB_Tris_1.Name = "btn_RB_Tris_1";
this.btn_RB_Tris_1.Size = new System.Drawing.Size(21, 23);
this.btn_RB_Tris_1.TabIndex = 41;
this.btn_RB_Tris_1.Text = "i";
this.btn_RB_Tris_1.UseVisualStyleBackColor = true;
this.btn_RB_Tris_1.Click += new System.EventHandler(this.btn_RB_Tris_1_Click);
//
// btn_RB_Tris_2
//
this.btn_RB_Tris_2.Location = new System.Drawing.Point(1048, 545);
this.btn_RB_Tris_2.Name = "btn_RB_Tris_2";
this.btn_RB_Tris_2.Size = new System.Drawing.Size(21, 23);
this.btn_RB_Tris_2.TabIndex = 40;
this.btn_RB_Tris_2.Text = "i";
this.btn_RB_Tris_2.UseVisualStyleBackColor = true;
this.btn_RB_Tris_2.Click += new System.EventHandler(this.btn_RB_Tris_2_Click);
//
// btn_RB_Tris_3
//
this.btn_RB_Tris_3.Location = new System.Drawing.Point(1021, 545);
this.btn_RB_Tris_3.Name = "btn_RB_Tris_3";
this.btn_RB_Tris_3.Size = new System.Drawing.Size(21, 23);
this.btn_RB_Tris_3.TabIndex = 39;
this.btn_RB_Tris_3.Text = "i";
this.btn_RB_Tris_3.UseVisualStyleBackColor = true;
this.btn_RB_Tris_3.Click += new System.EventHandler(this.btn_RB_Tris_3_Click);
//
// btn_RB_Tris_4
//
this.btn_RB_Tris_4.Location = new System.Drawing.Point(994, 545);
this.btn_RB_Tris_4.Name = "btn_RB_Tris_4";
this.btn_RB_Tris_4.Size = new System.Drawing.Size(21, 23);
this.btn_RB_Tris_4.TabIndex = 38;
this.btn_RB_Tris_4.Text = "i";
this.btn_RB_Tris_4.UseVisualStyleBackColor = true;
this.btn_RB_Tris_4.Click += new System.EventHandler(this.btn_RB_Tris_4_Click);
//
// btn_RB_Tris_5
//
this.btn_RB_Tris_5.Location = new System.Drawing.Point(967, 545);
this.btn_RB_Tris_5.Name = "btn_RB_Tris_5";
this.btn_RB_Tris_5.Size = new System.Drawing.Size(21, 23);
this.btn_RB_Tris_5.TabIndex = 37;
this.btn_RB_Tris_5.Text = "i";
this.btn_RB_Tris_5.UseVisualStyleBackColor = true;
this.btn_RB_Tris_5.Click += new System.EventHandler(this.btn_RB_Tris_5_Click);
//
// btn_RB_Tris_6
//
this.btn_RB_Tris_6.Location = new System.Drawing.Point(940, 545);
this.btn_RB_Tris_6.Name = "btn_RB_Tris_6";
this.btn_RB_Tris_6.Size = new System.Drawing.Size(21, 23);
this.btn_RB_Tris_6.TabIndex = 36;
this.btn_RB_Tris_6.Text = "i";
this.btn_RB_Tris_6.UseVisualStyleBackColor = true;
this.btn_RB_Tris_6.Click += new System.EventHandler(this.btn_RB_Tris_6_Click);
//
// btn_RB_Tris_7
//
this.btn_RB_Tris_7.Location = new System.Drawing.Point(913, 545);
this.btn_RB_Tris_7.Name = "btn_RB_Tris_7";
this.btn_RB_Tris_7.Size = new System.Drawing.Size(21, 23);
this.btn_RB_Tris_7.TabIndex = 35;
this.btn_RB_Tris_7.Text = "i";
this.btn_RB_Tris_7.UseVisualStyleBackColor = true;
this.btn_RB_Tris_7.Click += new System.EventHandler(this.btn_RB_Tris_7_Click);
//
// btn_RB_0
//
this.btn_RB_0.Location = new System.Drawing.Point(1102, 574);
this.btn_RB_0.Name = "btn_RB_0";
this.btn_RB_0.Size = new System.Drawing.Size(21, 23);
this.btn_RB_0.TabIndex = 53;
this.btn_RB_0.Text = "0";
this.btn_RB_0.UseVisualStyleBackColor = true;
this.btn_RB_0.Click += new System.EventHandler(this.btn_RB_0_Click);
//
// btn_RB_Tris_0
//
this.btn_RB_Tris_0.Location = new System.Drawing.Point(1102, 545);
this.btn_RB_Tris_0.Name = "btn_RB_Tris_0";
this.btn_RB_Tris_0.Size = new System.Drawing.Size(21, 23);
this.btn_RB_Tris_0.TabIndex = 52;
this.btn_RB_Tris_0.Text = "i";
this.btn_RB_Tris_0.UseVisualStyleBackColor = true;
this.btn_RB_Tris_0.Click += new System.EventHandler(this.btn_RB_Tris_0_Click);
//
// btn_RA_0
//
this.btn_RA_0.Location = new System.Drawing.Point(1102, 488);
this.btn_RA_0.Name = "btn_RA_0";
this.btn_RA_0.Size = new System.Drawing.Size(21, 23);
this.btn_RA_0.TabIndex = 51;
this.btn_RA_0.Text = "0";
this.btn_RA_0.UseVisualStyleBackColor = true;
this.btn_RA_0.Click += new System.EventHandler(this.btn_RA_0_Click);
//
// btn_RA_Tris_0
//
this.btn_RA_Tris_0.Location = new System.Drawing.Point(1102, 459);
this.btn_RA_Tris_0.Name = "btn_RA_Tris_0";
this.btn_RA_Tris_0.Size = new System.Drawing.Size(21, 23);
this.btn_RA_Tris_0.TabIndex = 50;
this.btn_RA_Tris_0.Text = "i";
this.btn_RA_Tris_0.UseVisualStyleBackColor = true;
this.btn_RA_Tris_0.Click += new System.EventHandler(this.btn_RA_Tris_0_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1298, 692);
this.Controls.Add(this.btn_RB_0);
this.Controls.Add(this.btn_RB_Tris_0);
this.Controls.Add(this.btn_RA_0);
this.Controls.Add(this.btn_RA_Tris_0);
this.Controls.Add(this.label5);
this.Controls.Add(this.btn_RB_1);
this.Controls.Add(this.btn_RB_2);
this.Controls.Add(this.btn_RB_3);
this.Controls.Add(this.btn_RB_4);
this.Controls.Add(this.btn_RB_5);
this.Controls.Add(this.btn_RB_6);
this.Controls.Add(this.btn_RB_7);
this.Controls.Add(this.btn_RB_Tris_1);
this.Controls.Add(this.btn_RB_Tris_2);
this.Controls.Add(this.btn_RB_Tris_3);
this.Controls.Add(this.btn_RB_Tris_4);
this.Controls.Add(this.btn_RB_Tris_5);
this.Controls.Add(this.btn_RB_Tris_6);
this.Controls.Add(this.btn_RB_Tris_7);
this.Controls.Add(this.label2);
this.Controls.Add(this.btn_RA_1);
this.Controls.Add(this.btn_RA_2);
this.Controls.Add(this.btn_RA_3);
this.Controls.Add(this.btn_RA_4);
this.Controls.Add(this.btn_RA_5);
this.Controls.Add(this.btn_RA_6);
this.Controls.Add(this.btn_RA_7);
this.Controls.Add(this.btn_RA_Tris_1);
this.Controls.Add(this.btn_RA_Tris_2);
this.Controls.Add(this.btn_RA_Tris_3);
this.Controls.Add(this.btn_RA_Tris_4);
this.Controls.Add(this.btn_RA_Tris_5);
this.Controls.Add(this.btn_RA_Tris_6);
this.Controls.Add(this.btn_RA_Tris_7);
this.Controls.Add(this.lbStack);
this.Controls.Add(this.lvSpecial);
this.Controls.Add(this.insertTime);
@ -460,6 +866,40 @@
private System.Windows.Forms.ColumnHeader columnHeader14;
private System.Windows.Forms.ColumnHeader columnHeader15;
private System.Windows.Forms.ColumnHeader columnHeader16;
private System.Windows.Forms.Button btn_RA_Tris_7;
private System.Windows.Forms.Button btn_RA_Tris_6;
private System.Windows.Forms.Button btn_RA_Tris_5;
private System.Windows.Forms.Button btn_RA_Tris_4;
private System.Windows.Forms.Button btn_RA_Tris_3;
private System.Windows.Forms.Button btn_RA_Tris_2;
private System.Windows.Forms.Button btn_RA_Tris_1;
private System.Windows.Forms.Button btn_RA_1;
private System.Windows.Forms.Button btn_RA_2;
private System.Windows.Forms.Button btn_RA_3;
private System.Windows.Forms.Button btn_RA_4;
private System.Windows.Forms.Button btn_RA_5;
private System.Windows.Forms.Button btn_RA_6;
private System.Windows.Forms.Button btn_RA_7;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btn_RB_1;
private System.Windows.Forms.Button btn_RB_2;
private System.Windows.Forms.Button btn_RB_3;
private System.Windows.Forms.Button btn_RB_4;
private System.Windows.Forms.Button btn_RB_5;
private System.Windows.Forms.Button btn_RB_6;
private System.Windows.Forms.Button btn_RB_7;
private System.Windows.Forms.Button btn_RB_Tris_1;
private System.Windows.Forms.Button btn_RB_Tris_2;
private System.Windows.Forms.Button btn_RB_Tris_3;
private System.Windows.Forms.Button btn_RB_Tris_4;
private System.Windows.Forms.Button btn_RB_Tris_5;
private System.Windows.Forms.Button btn_RB_Tris_6;
private System.Windows.Forms.Button btn_RB_Tris_7;
private System.Windows.Forms.Button btn_RB_0;
private System.Windows.Forms.Button btn_RB_Tris_0;
private System.Windows.Forms.Button btn_RA_0;
private System.Windows.Forms.Button btn_RA_Tris_0;
}
}

View File

@ -187,6 +187,45 @@ namespace PIC_Simulator
lbStack.Items.Clear();
foreach (var u in programm.Stack) lbStack.Items.Add(u.ToString());
// RA + RB aktualisieren
btn_RA_0.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 0) ? 1 : 0).ToString();
btn_RA_1.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 1) ? 1 : 0).ToString();
btn_RA_2.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 2) ? 1 : 0).ToString();
btn_RA_3.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 3) ? 1 : 0).ToString();
btn_RA_4.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 4) ? 1 : 0).ToString();
btn_RA_5.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 5) ? 1 : 0).ToString();
btn_RA_6.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 6) ? 1 : 0).ToString();
btn_RA_7.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 7) ? 1 : 0).ToString();
btn_RA_Tris_0.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 0) ? "i" : "o");
btn_RA_Tris_1.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 1) ? "i" : "o");
btn_RA_Tris_2.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 2) ? "i" : "o");
btn_RA_Tris_3.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 3) ? "i" : "o");
btn_RA_Tris_4.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 4) ? "i" : "o");
btn_RA_Tris_5.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 5) ? "i" : "o");
btn_RA_Tris_6.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 6) ? "i" : "o");
btn_RA_Tris_7.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 7) ? "i" : "o");
btn_RB_0.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 0) ? 1 : 0).ToString();
btn_RB_1.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 1) ? 1 : 0).ToString();
btn_RB_2.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 2) ? 1 : 0).ToString();
btn_RB_3.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 3) ? 1 : 0).ToString();
btn_RB_4.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 4) ? 1 : 0).ToString();
btn_RB_5.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 5) ? 1 : 0).ToString();
btn_RB_6.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 6) ? 1 : 0).ToString();
btn_RB_7.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 7) ? 1 : 0).ToString();
btn_RB_Tris_0.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 0) ? "i" : "o");
btn_RB_Tris_1.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 1) ? "i" : "o");
btn_RB_Tris_2.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 2) ? "i" : "o");
btn_RB_Tris_3.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 3) ? "i" : "o");
btn_RB_Tris_4.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 4) ? "i" : "o");
btn_RB_Tris_5.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 5) ? "i" : "o");
btn_RB_Tris_6.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 6) ? "i" : "o");
btn_RB_Tris_7.Text = (programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 7) ? "i" : "o");
}
private void box_CodeView_DoubleClick(object sender, EventArgs e)
@ -205,6 +244,230 @@ namespace PIC_Simulator
OberflaecheAktualisieren();
}
}
private void btn_RA_Tris_7_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 7, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 7));
OberflaecheAktualisieren();
}
private void btn_RA_Tris_6_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 6, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 6));
OberflaecheAktualisieren();
}
private void btn_RA_Tris_5_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 5, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 5));
OberflaecheAktualisieren();
}
private void btn_RA_Tris_4_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 4, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 4));
OberflaecheAktualisieren();
}
private void btn_RA_Tris_3_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 3, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 3));
OberflaecheAktualisieren();
}
private void btn_RA_Tris_2_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 2, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 2));
OberflaecheAktualisieren();
}
private void btn_RA_Tris_1_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 1, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 1));
OberflaecheAktualisieren();
}
private void btn_RA_Tris_0_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 0, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_A, 0));
OberflaecheAktualisieren();
}
private void btn_RA_7_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 7, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 7));
OberflaecheAktualisieren();
}
private void btn_RA_6_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 6, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 6));
OberflaecheAktualisieren();
}
private void btn_RA_5_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 5, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 5));
OberflaecheAktualisieren();
}
private void btn_RA_4_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 4, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 4));
OberflaecheAktualisieren();
}
private void btn_RA_3_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 3, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 3));
OberflaecheAktualisieren();
}
private void btn_RA_2_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 2, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 2));
OberflaecheAktualisieren();
}
private void btn_RA_1_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 1, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 1));
OberflaecheAktualisieren();
}
private void btn_RA_0_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 0, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_A, 0));
OberflaecheAktualisieren();
}
private void btn_RB_Tris_7_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 7, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 7));
OberflaecheAktualisieren();
}
private void btn_RB_Tris_6_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 6, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 6));
OberflaecheAktualisieren();
}
private void btn_RB_Tris_5_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 5, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 5));
OberflaecheAktualisieren();
}
private void btn_RB_Tris_4_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 4, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 4));
OberflaecheAktualisieren();
}
private void btn_RB_Tris_3_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 3, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 3));
OberflaecheAktualisieren();
}
private void btn_RB_Tris_2_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 2, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 2));
OberflaecheAktualisieren();
}
private void btn_RB_Tris_1_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 1, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 1));
OberflaecheAktualisieren();
}
private void btn_RB_Tris_0_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 0, !programm.GetRegisterOhneBank(PICProgramm.ADDR_TRIS_B, 0));
OberflaecheAktualisieren();
}
private void btn_RB_7_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 7, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 7));
OberflaecheAktualisieren();
}
private void btn_RB_6_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 6, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 6));
OberflaecheAktualisieren();
}
private void btn_RB_5_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 5, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 5));
OberflaecheAktualisieren();
}
private void btn_RB_4_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 4, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 4));
OberflaecheAktualisieren();
}
private void btn_RB_3_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 3, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 3));
OberflaecheAktualisieren();
}
private void btn_RB_2_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 2, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 2));
OberflaecheAktualisieren();
}
private void btn_RB_1_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 1, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 1));
OberflaecheAktualisieren();
}
private void btn_RB_0_Click(object sender, EventArgs e)
{
if (programm == null) return;
programm.SetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 0, !programm.GetRegisterOhneBank(PICProgramm.ADDR_PORT_B, 0));
OberflaecheAktualisieren();
}
}
}

View File

@ -790,7 +790,7 @@ namespace PIC_Simulator.PIC
SetRegister(index, SetBit(GetRegister(index), bit, wert));
}
private void SetRegisterOhneBank(uint index, uint bit, bool wert)
public void SetRegisterOhneBank(uint index, uint bit, bool wert)
{
Register[index] = SetBit(Register[index], bit, wert);
}

View File

@ -2,15 +2,15 @@
[ ] Darstellung /Prog.- struktur/all.Diagr.
[ ] Befehlsbeschreibung + Diagramme
[X] PDF-Hilfedatei aus Prog. aufrufen
[ ] Bedienkomfort
[ ] Kommentare sinnvoll und ausreich
[ ] Funkt., Meth., Klassen Befehlsnachbild.
[ ] Variablenbezeichner / Variablennamen
[/] Bedienkomfort
[/] Kommentare sinnvoll und ausreich
[/] Funkt., Meth., Klassen Befehlsnachbild.
[/] Variablenbezeichner / Variablennamen
[?] INIT-Werte bei RESET
[X] Laufzeitzähler
[ ] Latchfunktion der IO-Register
[?] Latchfunktion der IO-Register
[X] frei wählbare Quarzfrequenz
[ ] Breakpoints
[X] Breakpoints
[ ] Hardwareansteuerung
[X] Testprogramm 1 (Literalbefehle)
[ ] Testprogramm 2 (CALL, GOTO etc)