APU fully implemented and working but approx 0.25s latency to fix

This commit is contained in:
2026-05-14 22:31:23 +01:00
parent cafcf625ad
commit 780f8ee790
7 changed files with 160 additions and 18 deletions

View File

@@ -58,6 +58,12 @@
richTextBox1 = new RichTextBox();
button1 = new Button();
CpuRun = new Button();
groupBox1 = new GroupBox();
lblTone0 = new Label();
lblNoise = new Label();
lblTone2 = new Label();
lblTone1 = new Label();
groupBox1.SuspendLayout();
SuspendLayout();
//
// lblAF
@@ -164,10 +170,10 @@
//
// txtMemoryView
//
txtMemoryView.Location = new Point(110, 100);
txtMemoryView.Location = new Point(110, 101);
txtMemoryView.Margin = new Padding(2);
txtMemoryView.Name = "txtMemoryView";
txtMemoryView.Size = new Size(553, 1118);
txtMemoryView.Size = new Size(553, 543);
txtMemoryView.TabIndex = 15;
txtMemoryView.Text = "Memory View Window";
//
@@ -242,7 +248,7 @@
// lblIff1
//
lblIff1.AutoSize = true;
lblIff1.Location = new Point(709, 514);
lblIff1.Location = new Point(11, 533);
lblIff1.Margin = new Padding(4, 0, 4, 0);
lblIff1.Name = "lblIff1";
lblIff1.Size = new Size(45, 25);
@@ -252,7 +258,7 @@
// lblIff2
//
lblIff2.AutoSize = true;
lblIff2.Location = new Point(709, 572);
lblIff2.Location = new Point(11, 586);
lblIff2.Margin = new Padding(4, 0, 4, 0);
lblIff2.Name = "lblIff2";
lblIff2.Size = new Size(45, 25);
@@ -262,12 +268,12 @@
// lblIE
//
lblIE.AutoSize = true;
lblIE.Location = new Point(710, 462);
lblIE.Location = new Point(11, 486);
lblIE.Margin = new Padding(4, 0, 4, 0);
lblIE.Name = "lblIE";
lblIE.Size = new Size(133, 25);
lblIE.Size = new Size(33, 25);
lblIE.TabIndex = 26;
lblIE.Text = "Interrupt Mode";
lblIE.Text = "IM";
//
// btnReset
//
@@ -289,7 +295,7 @@
// lblFrames
//
lblFrames.AutoSize = true;
lblFrames.Location = new Point(709, 852);
lblFrames.Location = new Point(14, 660);
lblFrames.Margin = new Padding(2, 0, 2, 0);
lblFrames.Name = "lblFrames";
lblFrames.Size = new Size(149, 25);
@@ -299,7 +305,7 @@
// lblFPS
//
lblFPS.AutoSize = true;
lblFPS.Location = new Point(824, 949);
lblFPS.Location = new Point(129, 757);
lblFPS.Margin = new Padding(2, 0, 2, 0);
lblFPS.Name = "lblFPS";
lblFPS.Size = new Size(41, 25);
@@ -309,7 +315,7 @@
// lblFrameTime
//
lblFrameTime.AutoSize = true;
lblFrameTime.Location = new Point(755, 898);
lblFrameTime.Location = new Point(60, 706);
lblFrameTime.Margin = new Padding(2, 0, 2, 0);
lblFrameTime.Name = "lblFrameTime";
lblFrameTime.Size = new Size(104, 25);
@@ -319,7 +325,7 @@
// richTextBox1
//
richTextBox1.Enabled = false;
richTextBox1.Location = new Point(709, 636);
richTextBox1.Location = new Point(682, 474);
richTextBox1.Margin = new Padding(4);
richTextBox1.Name = "richTextBox1";
richTextBox1.ReadOnly = true;
@@ -329,7 +335,7 @@
//
// button1
//
button1.Location = new Point(694, 1030);
button1.Location = new Point(1075, 756);
button1.Margin = new Padding(4);
button1.Name = "button1";
button1.Size = new Size(118, 36);
@@ -340,7 +346,7 @@
//
// CpuRun
//
CpuRun.Location = new Point(694, 1104);
CpuRun.Location = new Point(943, 757);
CpuRun.Margin = new Padding(4);
CpuRun.Name = "CpuRun";
CpuRun.Size = new Size(118, 36);
@@ -349,11 +355,61 @@
CpuRun.UseVisualStyleBackColor = true;
CpuRun.Click += CpuRun_Click;
//
// groupBox1
//
groupBox1.Controls.Add(lblTone1);
groupBox1.Controls.Add(lblTone2);
groupBox1.Controls.Add(lblNoise);
groupBox1.Controls.Add(lblTone0);
groupBox1.Location = new Point(266, 658);
groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(397, 222);
groupBox1.TabIndex = 35;
groupBox1.TabStop = false;
groupBox1.Text = "Audio (SN76489)";
//
// lblTone0
//
lblTone0.AutoSize = true;
lblTone0.Location = new Point(25, 48);
lblTone0.Name = "lblTone0";
lblTone0.Size = new Size(59, 25);
lblTone0.TabIndex = 0;
lblTone0.Text = "Tone0";
//
// lblNoise
//
lblNoise.AutoSize = true;
lblNoise.Location = new Point(25, 160);
lblNoise.Name = "lblNoise";
lblNoise.Size = new Size(57, 25);
lblNoise.TabIndex = 1;
lblNoise.Text = "Noise";
//
// lblTone2
//
lblTone2.AutoSize = true;
lblTone2.Location = new Point(25, 122);
lblTone2.Name = "lblTone2";
lblTone2.Size = new Size(59, 25);
lblTone2.TabIndex = 2;
lblTone2.Text = "Tone2";
//
// lblTone1
//
lblTone1.AutoSize = true;
lblTone1.Location = new Point(25, 83);
lblTone1.Name = "lblTone1";
lblTone1.Size = new Size(59, 25);
lblTone1.TabIndex = 3;
lblTone1.Text = "Tone1";
//
// DebuggerForm
//
AutoScaleDimensions = new SizeF(10F, 25F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1206, 1238);
ClientSize = new Size(1206, 892);
Controls.Add(groupBox1);
Controls.Add(CpuRun);
Controls.Add(button1);
Controls.Add(richTextBox1);
@@ -385,6 +441,8 @@
Margin = new Padding(2);
Name = "DebuggerForm";
Text = "Debugger";
groupBox1.ResumeLayout(false);
groupBox1.PerformLayout();
ResumeLayout(false);
PerformLayout();
}
@@ -420,6 +478,11 @@
private Button button1;
private Button CpuRun;
public System.Windows.Forms.Timer uiUpdateTimer;
private GroupBox groupBox1;
private Label lblTone1;
private Label lblTone2;
private Label lblNoise;
private Label lblTone0;
//private TextBox textBox4;
}
}