| 1 |
32 |
robfinch |
#pragma once
|
| 2 |
|
|
#include "stdafx.h"
|
| 3 |
|
|
|
| 4 |
|
|
extern clsSystem system1;
|
| 5 |
|
|
|
| 6 |
|
|
namespace emuThor {
|
| 7 |
|
|
|
| 8 |
|
|
using namespace System;
|
| 9 |
|
|
using namespace System::ComponentModel;
|
| 10 |
|
|
using namespace System::Collections;
|
| 11 |
|
|
using namespace System::Windows::Forms;
|
| 12 |
|
|
using namespace System::Data;
|
| 13 |
|
|
using namespace System::Drawing;
|
| 14 |
|
|
using namespace System::Threading;
|
| 15 |
|
|
|
| 16 |
|
|
/// <summary>
|
| 17 |
|
|
/// Summary for frmStack
|
| 18 |
|
|
/// </summary>
|
| 19 |
|
|
public ref class frmStack : public System::Windows::Forms::Form
|
| 20 |
|
|
{
|
| 21 |
|
|
public:
|
| 22 |
|
|
Mutex^ mut;
|
| 23 |
|
|
frmStack(Mutex^ m)
|
| 24 |
|
|
{
|
| 25 |
|
|
mut = m;
|
| 26 |
|
|
InitializeComponent();
|
| 27 |
|
|
//
|
| 28 |
|
|
//TODO: Add the constructor code here
|
| 29 |
|
|
//
|
| 30 |
|
|
int xx;
|
| 31 |
|
|
char buf[4000];
|
| 32 |
|
|
buf[0] = '\0';
|
| 33 |
|
|
mut->WaitOne();
|
| 34 |
|
|
for (xx = -128; xx < 128; xx+=8) {
|
| 35 |
|
|
sprintf(&buf[strlen(buf)], "%c %08I64X: %016I64X\r\n", xx==0 ? '>' : ' ',
|
| 36 |
|
|
system1.cpu2.GetGP(27)+xx, system1.Read(system1.cpu2.GetGP(27)+xx));
|
| 37 |
|
|
}
|
| 38 |
|
|
textBox1->Text = gcnew String(buf);
|
| 39 |
|
|
buf[0] = '\0';
|
| 40 |
|
|
for (xx = -128; xx < 128; xx+=8) {
|
| 41 |
|
|
sprintf(&buf[strlen(buf)], "%c %08I64X: %016I64X\r\n", xx==0 ? '>' : ' ',
|
| 42 |
|
|
system1.cpu2.GetGP(26)+xx, system1.Read(system1.cpu2.GetGP(26)+xx));
|
| 43 |
|
|
}
|
| 44 |
|
|
mut->ReleaseMutex();
|
| 45 |
|
|
textBox2->Text = gcnew String(buf);
|
| 46 |
|
|
}
|
| 47 |
|
|
|
| 48 |
|
|
protected:
|
| 49 |
|
|
/// <summary>
|
| 50 |
|
|
/// Clean up any resources being used.
|
| 51 |
|
|
/// </summary>
|
| 52 |
|
|
~frmStack()
|
| 53 |
|
|
{
|
| 54 |
|
|
if (components)
|
| 55 |
|
|
{
|
| 56 |
|
|
delete components;
|
| 57 |
|
|
}
|
| 58 |
|
|
}
|
| 59 |
|
|
private: System::Windows::Forms::TextBox^ textBox1;
|
| 60 |
|
|
private: System::Windows::Forms::TextBox^ textBox2;
|
| 61 |
|
|
private: System::Windows::Forms::Label^ label1;
|
| 62 |
|
|
private: System::Windows::Forms::Label^ label2;
|
| 63 |
|
|
protected:
|
| 64 |
|
|
|
| 65 |
|
|
private:
|
| 66 |
|
|
/// <summary>
|
| 67 |
|
|
/// Required designer variable.
|
| 68 |
|
|
/// </summary>
|
| 69 |
|
|
System::ComponentModel::Container ^components;
|
| 70 |
|
|
|
| 71 |
|
|
#pragma region Windows Form Designer generated code
|
| 72 |
|
|
/// <summary>
|
| 73 |
|
|
/// Required method for Designer support - do not modify
|
| 74 |
|
|
/// the contents of this method with the code editor.
|
| 75 |
|
|
/// </summary>
|
| 76 |
|
|
void InitializeComponent(void)
|
| 77 |
|
|
{
|
| 78 |
|
|
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
|
| 79 |
|
|
this->textBox2 = (gcnew System::Windows::Forms::TextBox());
|
| 80 |
|
|
this->label1 = (gcnew System::Windows::Forms::Label());
|
| 81 |
|
|
this->label2 = (gcnew System::Windows::Forms::Label());
|
| 82 |
|
|
this->SuspendLayout();
|
| 83 |
|
|
//
|
| 84 |
|
|
// textBox1
|
| 85 |
|
|
//
|
| 86 |
|
|
this->textBox1->Location = System::Drawing::Point(12, 32);
|
| 87 |
|
|
this->textBox1->Multiline = true;
|
| 88 |
|
|
this->textBox1->Name = L"textBox1";
|
| 89 |
|
|
this->textBox1->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
|
| 90 |
|
|
this->textBox1->Size = System::Drawing::Size(228, 241);
|
| 91 |
|
|
this->textBox1->TabIndex = 0;
|
| 92 |
|
|
//
|
| 93 |
|
|
// textBox2
|
| 94 |
|
|
//
|
| 95 |
|
|
this->textBox2->Location = System::Drawing::Point(254, 32);
|
| 96 |
|
|
this->textBox2->Multiline = true;
|
| 97 |
|
|
this->textBox2->Name = L"textBox2";
|
| 98 |
|
|
this->textBox2->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
|
| 99 |
|
|
this->textBox2->Size = System::Drawing::Size(228, 241);
|
| 100 |
|
|
this->textBox2->TabIndex = 1;
|
| 101 |
|
|
//
|
| 102 |
|
|
// label1
|
| 103 |
|
|
//
|
| 104 |
|
|
this->label1->AutoSize = true;
|
| 105 |
|
|
this->label1->Location = System::Drawing::Point(12, 16);
|
| 106 |
|
|
this->label1->Name = L"label1";
|
| 107 |
|
|
this->label1->Size = System::Drawing::Size(61, 13);
|
| 108 |
|
|
this->label1->TabIndex = 2;
|
| 109 |
|
|
this->label1->Text = L"Stack View";
|
| 110 |
|
|
//
|
| 111 |
|
|
// label2
|
| 112 |
|
|
//
|
| 113 |
|
|
this->label2->AutoSize = true;
|
| 114 |
|
|
this->label2->Location = System::Drawing::Point(251, 16);
|
| 115 |
|
|
this->label2->Name = L"label2";
|
| 116 |
|
|
this->label2->Size = System::Drawing::Size(93, 13);
|
| 117 |
|
|
this->label2->TabIndex = 3;
|
| 118 |
|
|
this->label2->Text = L"Base Pointer View";
|
| 119 |
|
|
//
|
| 120 |
|
|
// frmStack
|
| 121 |
|
|
//
|
| 122 |
|
|
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
|
| 123 |
|
|
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
|
| 124 |
|
|
this->ClientSize = System::Drawing::Size(506, 306);
|
| 125 |
|
|
this->Controls->Add(this->label2);
|
| 126 |
|
|
this->Controls->Add(this->label1);
|
| 127 |
|
|
this->Controls->Add(this->textBox2);
|
| 128 |
|
|
this->Controls->Add(this->textBox1);
|
| 129 |
|
|
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
|
| 130 |
|
|
this->MaximizeBox = false;
|
| 131 |
|
|
this->Name = L"frmStack";
|
| 132 |
|
|
this->Text = L"emuThor - Stack View";
|
| 133 |
|
|
this->ResumeLayout(false);
|
| 134 |
|
|
this->PerformLayout();
|
| 135 |
|
|
|
| 136 |
|
|
}
|
| 137 |
|
|
#pragma endregion
|
| 138 |
|
|
};
|
| 139 |
|
|
}
|