507 lines
18 KiB
C#
507 lines
18 KiB
C#
namespace Desktop
|
|
{
|
|
partial class DebuggerForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
lblAF = new Label();
|
|
lblBC = new Label();
|
|
lblDE = new Label();
|
|
lblHL = new Label();
|
|
lblPC = new Label();
|
|
lblSP = new Label();
|
|
lblFlags = new Label();
|
|
lblTStates = new Label();
|
|
txtMemoryStart = new TextBox();
|
|
btnRefreshMemory = new Button();
|
|
txtMemoryView = new RichTextBox();
|
|
lstDisassembly = new ListBox();
|
|
lstStack = new ListBox();
|
|
label1 = new Label();
|
|
txtBreakpoint = new TextBox();
|
|
label2 = new Label();
|
|
lblIX = new Label();
|
|
lblIY = new Label();
|
|
lblIff1 = new Label();
|
|
lblIff2 = new Label();
|
|
lblIE = new Label();
|
|
btnReset = new Button();
|
|
uiUpdateTimer = new System.Windows.Forms.Timer(components);
|
|
lblFrames = new Label();
|
|
lblFPS = new Label();
|
|
lblFrameTime = new Label();
|
|
richTextBox1 = new RichTextBox();
|
|
btnCpuStep = new Button();
|
|
CpuRun = new Button();
|
|
groupBox1 = new GroupBox();
|
|
lblTone1 = new Label();
|
|
lblTone2 = new Label();
|
|
lblNoise = new Label();
|
|
lblTone0 = new Label();
|
|
lblHalt = new Label();
|
|
lblR = new Label();
|
|
groupBox1.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// lblAF
|
|
//
|
|
lblAF.AutoSize = true;
|
|
lblAF.Location = new Point(10, 7);
|
|
lblAF.Margin = new Padding(2, 0, 2, 0);
|
|
lblAF.Name = "lblAF";
|
|
lblAF.Size = new Size(26, 20);
|
|
lblAF.TabIndex = 0;
|
|
lblAF.Text = "AF";
|
|
//
|
|
// lblBC
|
|
//
|
|
lblBC.AutoSize = true;
|
|
lblBC.Location = new Point(9, 48);
|
|
lblBC.Margin = new Padding(2, 0, 2, 0);
|
|
lblBC.Name = "lblBC";
|
|
lblBC.Size = new Size(27, 20);
|
|
lblBC.TabIndex = 1;
|
|
lblBC.Text = "BC";
|
|
//
|
|
// lblDE
|
|
//
|
|
lblDE.AutoSize = true;
|
|
lblDE.Location = new Point(10, 100);
|
|
lblDE.Margin = new Padding(2, 0, 2, 0);
|
|
lblDE.Name = "lblDE";
|
|
lblDE.Size = new Size(28, 20);
|
|
lblDE.TabIndex = 2;
|
|
lblDE.Text = "DE";
|
|
//
|
|
// lblHL
|
|
//
|
|
lblHL.AutoSize = true;
|
|
lblHL.Location = new Point(10, 150);
|
|
lblHL.Margin = new Padding(2, 0, 2, 0);
|
|
lblHL.Name = "lblHL";
|
|
lblHL.Size = new Size(27, 20);
|
|
lblHL.TabIndex = 3;
|
|
lblHL.Text = "HL";
|
|
//
|
|
// lblPC
|
|
//
|
|
lblPC.AutoSize = true;
|
|
lblPC.Location = new Point(9, 200);
|
|
lblPC.Margin = new Padding(2, 0, 2, 0);
|
|
lblPC.Name = "lblPC";
|
|
lblPC.Size = new Size(26, 20);
|
|
lblPC.TabIndex = 4;
|
|
lblPC.Text = "PC";
|
|
//
|
|
// lblSP
|
|
//
|
|
lblSP.AutoSize = true;
|
|
lblSP.Location = new Point(9, 252);
|
|
lblSP.Margin = new Padding(2, 0, 2, 0);
|
|
lblSP.Name = "lblSP";
|
|
lblSP.Size = new Size(25, 20);
|
|
lblSP.TabIndex = 6;
|
|
lblSP.Text = "SP";
|
|
//
|
|
// lblFlags
|
|
//
|
|
lblFlags.AutoSize = true;
|
|
lblFlags.Location = new Point(88, 52);
|
|
lblFlags.Margin = new Padding(2, 0, 2, 0);
|
|
lblFlags.Name = "lblFlags";
|
|
lblFlags.Size = new Size(43, 20);
|
|
lblFlags.TabIndex = 7;
|
|
lblFlags.Text = "Flags";
|
|
//
|
|
// lblTStates
|
|
//
|
|
lblTStates.AutoSize = true;
|
|
lblTStates.Location = new Point(88, 7);
|
|
lblTStates.Margin = new Padding(2, 0, 2, 0);
|
|
lblTStates.Name = "lblTStates";
|
|
lblTStates.Size = new Size(63, 20);
|
|
lblTStates.TabIndex = 8;
|
|
lblTStates.Text = "T-States";
|
|
//
|
|
// txtMemoryStart
|
|
//
|
|
txtMemoryStart.Location = new Point(300, 21);
|
|
txtMemoryStart.Margin = new Padding(2);
|
|
txtMemoryStart.Name = "txtMemoryStart";
|
|
txtMemoryStart.Size = new Size(121, 27);
|
|
txtMemoryStart.TabIndex = 9;
|
|
txtMemoryStart.Text = "Memory Start";
|
|
txtMemoryStart.TextAlign = HorizontalAlignment.Center;
|
|
txtMemoryStart.TextChanged += btnRefreshMemory_Click;
|
|
//
|
|
// btnRefreshMemory
|
|
//
|
|
btnRefreshMemory.Location = new Point(425, 21);
|
|
btnRefreshMemory.Margin = new Padding(2);
|
|
btnRefreshMemory.Name = "btnRefreshMemory";
|
|
btnRefreshMemory.Size = new Size(90, 27);
|
|
btnRefreshMemory.TabIndex = 14;
|
|
btnRefreshMemory.Text = "Refresh Memory";
|
|
btnRefreshMemory.UseVisualStyleBackColor = true;
|
|
btnRefreshMemory.Click += btnRefreshMemory_Click;
|
|
//
|
|
// txtMemoryView
|
|
//
|
|
txtMemoryView.Location = new Point(88, 81);
|
|
txtMemoryView.Margin = new Padding(2);
|
|
txtMemoryView.Name = "txtMemoryView";
|
|
txtMemoryView.Size = new Size(443, 435);
|
|
txtMemoryView.TabIndex = 15;
|
|
txtMemoryView.Text = "Memory View Window";
|
|
//
|
|
// lstDisassembly
|
|
//
|
|
lstDisassembly.FormattingEnabled = true;
|
|
lstDisassembly.Location = new Point(567, 8);
|
|
lstDisassembly.Margin = new Padding(2);
|
|
lstDisassembly.Name = "lstDisassembly";
|
|
lstDisassembly.Size = new Size(252, 264);
|
|
lstDisassembly.TabIndex = 16;
|
|
//
|
|
// lstStack
|
|
//
|
|
lstStack.FormattingEnabled = true;
|
|
lstStack.Location = new Point(823, 8);
|
|
lstStack.Margin = new Padding(2);
|
|
lstStack.Name = "lstStack";
|
|
lstStack.Size = new Size(130, 264);
|
|
lstStack.TabIndex = 17;
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new Point(568, 298);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(81, 20);
|
|
label1.TabIndex = 19;
|
|
label1.Text = "Breakpoint";
|
|
//
|
|
// txtBreakpoint
|
|
//
|
|
txtBreakpoint.Location = new Point(655, 295);
|
|
txtBreakpoint.Name = "txtBreakpoint";
|
|
txtBreakpoint.Size = new Size(125, 27);
|
|
txtBreakpoint.TabIndex = 20;
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Location = new Point(233, 21);
|
|
label2.Name = "label2";
|
|
label2.Size = new Size(62, 20);
|
|
label2.TabIndex = 21;
|
|
label2.Text = "Address";
|
|
//
|
|
// lblIX
|
|
//
|
|
lblIX.AutoSize = true;
|
|
lblIX.Location = new Point(9, 298);
|
|
lblIX.Margin = new Padding(2, 0, 2, 0);
|
|
lblIX.Name = "lblIX";
|
|
lblIX.Size = new Size(22, 20);
|
|
lblIX.TabIndex = 22;
|
|
lblIX.Text = "IX";
|
|
//
|
|
// lblIY
|
|
//
|
|
lblIY.AutoSize = true;
|
|
lblIY.Location = new Point(10, 344);
|
|
lblIY.Margin = new Padding(2, 0, 2, 0);
|
|
lblIY.Name = "lblIY";
|
|
lblIY.Size = new Size(21, 20);
|
|
lblIY.TabIndex = 23;
|
|
lblIY.Text = "IY";
|
|
//
|
|
// lblIff1
|
|
//
|
|
lblIff1.AutoSize = true;
|
|
lblIff1.Location = new Point(10, 472);
|
|
lblIff1.Name = "lblIff1";
|
|
lblIff1.Size = new Size(35, 20);
|
|
lblIff1.TabIndex = 24;
|
|
lblIff1.Text = "IFF1";
|
|
//
|
|
// lblIff2
|
|
//
|
|
lblIff2.AutoSize = true;
|
|
lblIff2.Location = new Point(10, 515);
|
|
lblIff2.Name = "lblIff2";
|
|
lblIff2.Size = new Size(35, 20);
|
|
lblIff2.TabIndex = 25;
|
|
lblIff2.Text = "IFF2";
|
|
//
|
|
// lblIE
|
|
//
|
|
lblIE.AutoSize = true;
|
|
lblIE.Location = new Point(10, 435);
|
|
lblIE.Name = "lblIE";
|
|
lblIE.Size = new Size(26, 20);
|
|
lblIE.TabIndex = 26;
|
|
lblIE.Text = "IM";
|
|
//
|
|
// btnReset
|
|
//
|
|
btnReset.Location = new Point(651, 327);
|
|
btnReset.Margin = new Padding(2);
|
|
btnReset.Name = "btnReset";
|
|
btnReset.Size = new Size(132, 27);
|
|
btnReset.TabIndex = 27;
|
|
btnReset.Text = "Set Breakpoint";
|
|
btnReset.UseVisualStyleBackColor = true;
|
|
btnReset.Click += btnSetBreakpoint_Click;
|
|
//
|
|
// uiUpdateTimer
|
|
//
|
|
uiUpdateTimer.Enabled = true;
|
|
uiUpdateTimer.Interval = 1;
|
|
uiUpdateTimer.Tick += uiUpdateTimer_Tick;
|
|
//
|
|
// lblFrames
|
|
//
|
|
lblFrames.AutoSize = true;
|
|
lblFrames.Location = new Point(10, 605);
|
|
lblFrames.Margin = new Padding(2, 0, 2, 0);
|
|
lblFrames.Name = "lblFrames";
|
|
lblFrames.Size = new Size(124, 20);
|
|
lblFrames.TabIndex = 28;
|
|
lblFrames.Text = "Frames Rendered";
|
|
//
|
|
// lblFPS
|
|
//
|
|
lblFPS.AutoSize = true;
|
|
lblFPS.Location = new Point(102, 683);
|
|
lblFPS.Margin = new Padding(2, 0, 2, 0);
|
|
lblFPS.Name = "lblFPS";
|
|
lblFPS.Size = new Size(32, 20);
|
|
lblFPS.TabIndex = 29;
|
|
lblFPS.Text = "FPS";
|
|
//
|
|
// lblFrameTime
|
|
//
|
|
lblFrameTime.AutoSize = true;
|
|
lblFrameTime.Location = new Point(47, 642);
|
|
lblFrameTime.Margin = new Padding(2, 0, 2, 0);
|
|
lblFrameTime.Name = "lblFrameTime";
|
|
lblFrameTime.Size = new Size(87, 20);
|
|
lblFrameTime.TabIndex = 30;
|
|
lblFrameTime.Text = "Frame Time";
|
|
//
|
|
// richTextBox1
|
|
//
|
|
richTextBox1.Enabled = false;
|
|
richTextBox1.Location = new Point(546, 379);
|
|
richTextBox1.Name = "richTextBox1";
|
|
richTextBox1.ReadOnly = true;
|
|
richTextBox1.Size = new Size(304, 128);
|
|
richTextBox1.TabIndex = 32;
|
|
richTextBox1.Text = "Sega Master System Memory Map:\n0x0000 - 0x3FFF: ROM Slot 0 (16KB)\n0x4000 - 0x7FFF: ROM Slot 1 (16KB)\n0x8000 - 0xBFFF: ROM Slot 2 (16KB)\n0xC000 - 0xDFFF: System RAM (8KB)\n0xE000 - 0xFFFF: RAM Mirror";
|
|
//
|
|
// btnCpuStep
|
|
//
|
|
btnCpuStep.Location = new Point(860, 605);
|
|
btnCpuStep.Name = "btnCpuStep";
|
|
btnCpuStep.Size = new Size(94, 29);
|
|
btnCpuStep.TabIndex = 33;
|
|
btnCpuStep.Text = "CPU Step";
|
|
btnCpuStep.UseVisualStyleBackColor = true;
|
|
btnCpuStep.Click += btnStep_Click;
|
|
//
|
|
// CpuRun
|
|
//
|
|
CpuRun.Location = new Point(754, 606);
|
|
CpuRun.Name = "CpuRun";
|
|
CpuRun.Size = new Size(94, 29);
|
|
CpuRun.TabIndex = 34;
|
|
CpuRun.Text = "CPU Run";
|
|
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(213, 526);
|
|
groupBox1.Margin = new Padding(2);
|
|
groupBox1.Name = "groupBox1";
|
|
groupBox1.Padding = new Padding(2);
|
|
groupBox1.Size = new Size(318, 178);
|
|
groupBox1.TabIndex = 35;
|
|
groupBox1.TabStop = false;
|
|
groupBox1.Text = "Audio (SN76489)";
|
|
//
|
|
// lblTone1
|
|
//
|
|
lblTone1.AutoSize = true;
|
|
lblTone1.Location = new Point(20, 66);
|
|
lblTone1.Margin = new Padding(2, 0, 2, 0);
|
|
lblTone1.Name = "lblTone1";
|
|
lblTone1.Size = new Size(49, 20);
|
|
lblTone1.TabIndex = 3;
|
|
lblTone1.Text = "Tone1";
|
|
//
|
|
// lblTone2
|
|
//
|
|
lblTone2.AutoSize = true;
|
|
lblTone2.Location = new Point(20, 98);
|
|
lblTone2.Margin = new Padding(2, 0, 2, 0);
|
|
lblTone2.Name = "lblTone2";
|
|
lblTone2.Size = new Size(49, 20);
|
|
lblTone2.TabIndex = 2;
|
|
lblTone2.Text = "Tone2";
|
|
//
|
|
// lblNoise
|
|
//
|
|
lblNoise.AutoSize = true;
|
|
lblNoise.Location = new Point(20, 128);
|
|
lblNoise.Margin = new Padding(2, 0, 2, 0);
|
|
lblNoise.Name = "lblNoise";
|
|
lblNoise.Size = new Size(47, 20);
|
|
lblNoise.TabIndex = 1;
|
|
lblNoise.Text = "Noise";
|
|
//
|
|
// lblTone0
|
|
//
|
|
lblTone0.AutoSize = true;
|
|
lblTone0.Location = new Point(20, 38);
|
|
lblTone0.Margin = new Padding(2, 0, 2, 0);
|
|
lblTone0.Name = "lblTone0";
|
|
lblTone0.Size = new Size(49, 20);
|
|
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);
|
|
Controls.Add(richTextBox1);
|
|
Controls.Add(lblFrameTime);
|
|
Controls.Add(lblFPS);
|
|
Controls.Add(lblFrames);
|
|
Controls.Add(btnReset);
|
|
Controls.Add(lblIE);
|
|
Controls.Add(lblIff2);
|
|
Controls.Add(lblIff1);
|
|
Controls.Add(lblIY);
|
|
Controls.Add(lblIX);
|
|
Controls.Add(label2);
|
|
Controls.Add(txtBreakpoint);
|
|
Controls.Add(label1);
|
|
Controls.Add(lstStack);
|
|
Controls.Add(lstDisassembly);
|
|
Controls.Add(txtMemoryView);
|
|
Controls.Add(btnRefreshMemory);
|
|
Controls.Add(txtMemoryStart);
|
|
Controls.Add(lblTStates);
|
|
Controls.Add(lblFlags);
|
|
Controls.Add(lblSP);
|
|
Controls.Add(lblPC);
|
|
Controls.Add(lblHL);
|
|
Controls.Add(lblDE);
|
|
Controls.Add(lblBC);
|
|
Controls.Add(lblAF);
|
|
Margin = new Padding(2);
|
|
Name = "DebuggerForm";
|
|
Text = "Debugger";
|
|
groupBox1.ResumeLayout(false);
|
|
groupBox1.PerformLayout();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Label lblAF;
|
|
private Label lblBC;
|
|
private Label lblDE;
|
|
private Label lblHL;
|
|
private Label lblPC;
|
|
private Label lblSP;
|
|
private Label lblFlags;
|
|
private Label lblTStates;
|
|
private TextBox txtMemoryStart;
|
|
private Button btnRefreshMemory;
|
|
private RichTextBox txtMemoryView;
|
|
private ListBox lstStack;
|
|
public ListBox lstDisassembly;
|
|
private Label label1;
|
|
private TextBox txtBreakpoint;
|
|
private Label label2;
|
|
private Label lblIX;
|
|
private Label lblIY;
|
|
private Label lblIff1;
|
|
private Label lblIff2;
|
|
private Label lblIE;
|
|
private Button btnReset;
|
|
private Label lblFrames;
|
|
private Label lblFPS;
|
|
private Label lblFrameTime;
|
|
private RichTextBox richTextBox1;
|
|
private Button btnCpuStep;
|
|
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 Label lblHalt;
|
|
private Label lblR;
|
|
//private TextBox textBox4;
|
|
}
|
|
} |