Updated Z80 CPU to fix interrupts etc...

This commit is contained in:
2026-05-26 22:02:47 +01:00
parent b5695b5c2f
commit ce46e7ed52
6 changed files with 121 additions and 47 deletions

View File

@@ -63,6 +63,8 @@
lblTone2 = new Label();
lblNoise = new Label();
lblTone0 = new Label();
lblHalt = new Label();
lblR = new Label();
groupBox1.SuspendLayout();
SuspendLayout();
//
@@ -243,7 +245,7 @@
// lblIff1
//
lblIff1.AutoSize = true;
lblIff1.Location = new Point(9, 426);
lblIff1.Location = new Point(10, 472);
lblIff1.Name = "lblIff1";
lblIff1.Size = new Size(35, 20);
lblIff1.TabIndex = 24;
@@ -252,7 +254,7 @@
// lblIff2
//
lblIff2.AutoSize = true;
lblIff2.Location = new Point(9, 469);
lblIff2.Location = new Point(10, 515);
lblIff2.Name = "lblIff2";
lblIff2.Size = new Size(35, 20);
lblIff2.TabIndex = 25;
@@ -261,7 +263,7 @@
// lblIE
//
lblIE.AutoSize = true;
lblIE.Location = new Point(9, 389);
lblIE.Location = new Point(10, 435);
lblIE.Name = "lblIE";
lblIE.Size = new Size(26, 20);
lblIE.TabIndex = 26;
@@ -287,7 +289,7 @@
// lblFrames
//
lblFrames.AutoSize = true;
lblFrames.Location = new Point(11, 528);
lblFrames.Location = new Point(10, 605);
lblFrames.Margin = new Padding(2, 0, 2, 0);
lblFrames.Name = "lblFrames";
lblFrames.Size = new Size(124, 20);
@@ -297,7 +299,7 @@
// lblFPS
//
lblFPS.AutoSize = true;
lblFPS.Location = new Point(103, 606);
lblFPS.Location = new Point(102, 683);
lblFPS.Margin = new Padding(2, 0, 2, 0);
lblFPS.Name = "lblFPS";
lblFPS.Size = new Size(32, 20);
@@ -307,7 +309,7 @@
// lblFrameTime
//
lblFrameTime.AutoSize = true;
lblFrameTime.Location = new Point(48, 565);
lblFrameTime.Location = new Point(47, 642);
lblFrameTime.Margin = new Padding(2, 0, 2, 0);
lblFrameTime.Name = "lblFrameTime";
lblFrameTime.Size = new Size(87, 20);
@@ -351,9 +353,9 @@
groupBox1.Controls.Add(lblNoise);
groupBox1.Controls.Add(lblTone0);
groupBox1.Location = new Point(213, 526);
groupBox1.Margin = new Padding(2, 2, 2, 2);
groupBox1.Margin = new Padding(2);
groupBox1.Name = "groupBox1";
groupBox1.Padding = new Padding(2, 2, 2, 2);
groupBox1.Padding = new Padding(2);
groupBox1.Size = new Size(318, 178);
groupBox1.TabIndex = 35;
groupBox1.TabStop = false;
@@ -399,11 +401,31 @@
lblTone0.TabIndex = 0;
lblTone0.Text = "Tone0";
//
// lblHalt
//
lblHalt.AutoSize = true;
lblHalt.Location = new Point(9, 564);
lblHalt.Name = "lblHalt";
lblHalt.Size = new Size(37, 20);
lblHalt.TabIndex = 36;
lblHalt.Text = "Halt";
//
// lblR
//
lblR.AutoSize = true;
lblR.Location = new Point(9, 392);
lblR.Name = "lblR";
lblR.Size = new Size(18, 20);
lblR.TabIndex = 37;
lblR.Text = "R";
//
// DebuggerForm
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(965, 714);
Controls.Add(lblR);
Controls.Add(lblHalt);
Controls.Add(groupBox1);
Controls.Add(CpuRun);
Controls.Add(btnCpuStep);
@@ -478,6 +500,8 @@
private Label lblTone2;
private Label lblNoise;
private Label lblTone0;
private Label lblHalt;
private Label lblR;
//private TextBox textBox4;
}
}