OpenCores
URL https://opencores.org/ocsvn/thor/thor/trunk

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [emuThor/] [source/] [frmInterrupts.h] - Blame information for rev 32

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 32 robfinch
#pragma once
2
extern bool irq1024Hz;
3
extern bool irq30Hz;
4
extern bool irqKeyboard;
5
extern bool irqUart;
6
extern bool trigger30;
7
extern bool trigger1024;
8
extern volatile unsigned int interval1024;
9
extern volatile unsigned int interval30;
10
 
11
namespace emuThor {
12
 
13
        using namespace System;
14
        using namespace System::ComponentModel;
15
        using namespace System::Collections;
16
        using namespace System::Windows::Forms;
17
        using namespace System::Data;
18
        using namespace System::Drawing;
19
        using namespace System::Threading;
20
 
21
        /// <summary>
22
        /// Summary for frmInterrupts
23
        /// </summary>
24
        public ref class frmInterrupts : public System::Windows::Forms::Form
25
        {
26
        public:
27
                Mutex^ mut;
28
                frmInterrupts(Mutex^ m)
29
                {
30
                        mut = m;
31
                        InitializeComponent();
32
                        //
33
                        //TODO: Add the constructor code here
34
                        //
35
                        char buf[20];
36
 
37
                        mut->WaitOne();
38
                        system1.pic1.Step();
39
                        trigger30 = false;
40
                        trigger1024 = false;
41
                        checkBox0En->Checked = system1.pic1.enables[0];
42
                        checkBox1En->Checked = system1.pic1.enables[1];
43
                        checkBox2En->Checked = system1.pic1.enables[2];
44
                        checkBox3En->Checked = system1.pic1.enables[3];
45
                        checkBox7En->Checked = system1.pic1.enables[7];
46
                        checkBox1Act->Checked = system1.pic1.irq1024Hz;
47
                        checkBox2Act->Checked = system1.pic1.irq30Hz;
48
                        checkBox3Act->Checked = system1.pic1.irqKeyboard;
49
                        checkBox7Act->Checked = system1.pic1.irqUart;
50
                        checkBoxIRQOut->Checked = system1.pic1.irq;
51
                        sprintf(buf, "%d (%02X)", system1.pic1.vecno, system1.pic1.vecno);
52
                        mut->ReleaseMutex();
53
                        textBoxVecno->Text = gcnew String(buf);
54
                }
55
                frmInterrupts(void)
56
                {
57
                        InitializeComponent();
58
                        //
59
                        //TODO: Add the constructor code here
60
                        //
61
                        char buf[20];
62
 
63
                        mut->WaitOne();
64
                        system1.pic1.Step();
65
                        trigger30 = false;
66
                        trigger1024 = false;
67
                        checkBox0En->Checked = system1.pic1.enables[0];
68
                        checkBox1En->Checked = system1.pic1.enables[1];
69
                        checkBox2En->Checked = system1.pic1.enables[2];
70
                        checkBox3En->Checked = system1.pic1.enables[3];
71
                        checkBox7En->Checked = system1.pic1.enables[7];
72
                        checkBox1Act->Checked = system1.pic1.irq1024Hz;
73
                        checkBox2Act->Checked = system1.pic1.irq30Hz;
74
                        checkBox3Act->Checked = system1.pic1.irqKeyboard;
75
                        checkBox7Act->Checked = system1.pic1.irqUart;
76
                        checkBoxIRQOut->Checked = system1.pic1.irq;
77
                        sprintf(buf, "%d (%02X)", system1.pic1.vecno, system1.pic1.vecno);
78
                        mut->ReleaseMutex();
79
                        textBoxVecno->Text = gcnew String(buf);
80
                }
81
 
82
        protected:
83
                /// <summary>
84
                /// Clean up any resources being used.
85
                /// </summary>
86
                ~frmInterrupts()
87
                {
88
                        if (components)
89
                        {
90
                                delete components;
91
                        }
92
                }
93
        private: System::Windows::Forms::Button^  btnOK;
94
        protected:
95
        private: System::Windows::Forms::Label^  label2;
96
        private: System::Windows::Forms::Label^  label1;
97
        private: System::Windows::Forms::Button^  btnTrigger30;
98
        private: System::Windows::Forms::ComboBox^  comboBox30;
99
        private: System::Windows::Forms::Button^  btnTrigger1024;
100
        private: System::Windows::Forms::ComboBox^  comboBox1024;
101
        private: System::Windows::Forms::CheckBox^  checkBox1024;
102
        private: System::Windows::Forms::CheckBox^  checkBoxKeyboard;
103
        private: System::Windows::Forms::CheckBox^  checkBox30;
104
        private: System::Windows::Forms::CheckBox^  checkBoxUart;
105
        private: System::Windows::Forms::GroupBox^  groupBox1;
106
        private: System::Windows::Forms::Label^  label6;
107
        private: System::Windows::Forms::Label^  label5;
108
        private: System::Windows::Forms::TextBox^  textBoxVecno;
109
        private: System::Windows::Forms::CheckBox^  checkBoxIRQOut;
110
 
111
 
112
        private: System::Windows::Forms::CheckBox^  checkBoxNMIOut;
113
 
114
        private: System::Windows::Forms::Label^  label4;
115
        private: System::Windows::Forms::CheckBox^  checkBox17;
116
        private: System::Windows::Forms::CheckBox^  checkBox18;
117
        private: System::Windows::Forms::CheckBox^  checkBox19;
118
        private: System::Windows::Forms::CheckBox^  checkBox20;
119
        private: System::Windows::Forms::CheckBox^  checkBox21;
120
        private: System::Windows::Forms::CheckBox^  checkBox22;
121
        private: System::Windows::Forms::CheckBox^  checkBox23;
122
        private: System::Windows::Forms::CheckBox^  checkBox24;
123
        private: System::Windows::Forms::CheckBox^  checkBox7Act;
124
 
125
        private: System::Windows::Forms::CheckBox^  checkBox26;
126
        private: System::Windows::Forms::CheckBox^  checkBox27;
127
        private: System::Windows::Forms::CheckBox^  checkBox28;
128
        private: System::Windows::Forms::CheckBox^  checkBox3Act;
129
 
130
        private: System::Windows::Forms::CheckBox^  checkBox2Act;
131
 
132
        private: System::Windows::Forms::CheckBox^  checkBox1Act;
133
 
134
        private: System::Windows::Forms::CheckBox^  checkBox0Act;
135
 
136
        private: System::Windows::Forms::Label^  label3;
137
        private: System::Windows::Forms::CheckBox^  checkBox16;
138
        private: System::Windows::Forms::CheckBox^  checkBox15;
139
        private: System::Windows::Forms::CheckBox^  checkBox14;
140
        private: System::Windows::Forms::CheckBox^  checkBox13;
141
        private: System::Windows::Forms::CheckBox^  checkBox12;
142
        private: System::Windows::Forms::CheckBox^  checkBox11;
143
        private: System::Windows::Forms::CheckBox^  checkBox10;
144
        private: System::Windows::Forms::CheckBox^  checkBox9;
145
        private: System::Windows::Forms::CheckBox^  checkBox7En;
146
 
147
        private: System::Windows::Forms::CheckBox^  checkBox7;
148
        private: System::Windows::Forms::CheckBox^  checkBox6;
149
        private: System::Windows::Forms::CheckBox^  checkBox4En;
150
 
151
        private: System::Windows::Forms::CheckBox^  checkBox3En;
152
 
153
        private: System::Windows::Forms::CheckBox^  checkBox2En;
154
 
155
        private: System::Windows::Forms::CheckBox^  checkBox1En;
156
 
157
        private: System::Windows::Forms::CheckBox^  checkBox0En;
158
 
159
 
160
        private:
161
                /// <summary>
162
                /// Required designer variable.
163
                /// </summary>
164
                System::ComponentModel::Container ^components;
165
 
166
#pragma region Windows Form Designer generated code
167
                /// <summary>
168
                /// Required method for Designer support - do not modify
169
                /// the contents of this method with the code editor.
170
                /// </summary>
171
                void InitializeComponent(void)
172
                {
173
                        this->btnOK = (gcnew System::Windows::Forms::Button());
174
                        this->label2 = (gcnew System::Windows::Forms::Label());
175
                        this->label1 = (gcnew System::Windows::Forms::Label());
176
                        this->btnTrigger30 = (gcnew System::Windows::Forms::Button());
177
                        this->comboBox30 = (gcnew System::Windows::Forms::ComboBox());
178
                        this->btnTrigger1024 = (gcnew System::Windows::Forms::Button());
179
                        this->comboBox1024 = (gcnew System::Windows::Forms::ComboBox());
180
                        this->checkBox1024 = (gcnew System::Windows::Forms::CheckBox());
181
                        this->checkBoxKeyboard = (gcnew System::Windows::Forms::CheckBox());
182
                        this->checkBox30 = (gcnew System::Windows::Forms::CheckBox());
183
                        this->checkBoxUart = (gcnew System::Windows::Forms::CheckBox());
184
                        this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
185
                        this->label6 = (gcnew System::Windows::Forms::Label());
186
                        this->label5 = (gcnew System::Windows::Forms::Label());
187
                        this->textBoxVecno = (gcnew System::Windows::Forms::TextBox());
188
                        this->checkBoxIRQOut = (gcnew System::Windows::Forms::CheckBox());
189
                        this->checkBoxNMIOut = (gcnew System::Windows::Forms::CheckBox());
190
                        this->label4 = (gcnew System::Windows::Forms::Label());
191
                        this->checkBox17 = (gcnew System::Windows::Forms::CheckBox());
192
                        this->checkBox18 = (gcnew System::Windows::Forms::CheckBox());
193
                        this->checkBox19 = (gcnew System::Windows::Forms::CheckBox());
194
                        this->checkBox20 = (gcnew System::Windows::Forms::CheckBox());
195
                        this->checkBox21 = (gcnew System::Windows::Forms::CheckBox());
196
                        this->checkBox22 = (gcnew System::Windows::Forms::CheckBox());
197
                        this->checkBox23 = (gcnew System::Windows::Forms::CheckBox());
198
                        this->checkBox24 = (gcnew System::Windows::Forms::CheckBox());
199
                        this->checkBox7Act = (gcnew System::Windows::Forms::CheckBox());
200
                        this->checkBox26 = (gcnew System::Windows::Forms::CheckBox());
201
                        this->checkBox27 = (gcnew System::Windows::Forms::CheckBox());
202
                        this->checkBox28 = (gcnew System::Windows::Forms::CheckBox());
203
                        this->checkBox3Act = (gcnew System::Windows::Forms::CheckBox());
204
                        this->checkBox2Act = (gcnew System::Windows::Forms::CheckBox());
205
                        this->checkBox1Act = (gcnew System::Windows::Forms::CheckBox());
206
                        this->checkBox0Act = (gcnew System::Windows::Forms::CheckBox());
207
                        this->label3 = (gcnew System::Windows::Forms::Label());
208
                        this->checkBox16 = (gcnew System::Windows::Forms::CheckBox());
209
                        this->checkBox15 = (gcnew System::Windows::Forms::CheckBox());
210
                        this->checkBox14 = (gcnew System::Windows::Forms::CheckBox());
211
                        this->checkBox13 = (gcnew System::Windows::Forms::CheckBox());
212
                        this->checkBox12 = (gcnew System::Windows::Forms::CheckBox());
213
                        this->checkBox11 = (gcnew System::Windows::Forms::CheckBox());
214
                        this->checkBox10 = (gcnew System::Windows::Forms::CheckBox());
215
                        this->checkBox9 = (gcnew System::Windows::Forms::CheckBox());
216
                        this->checkBox7En = (gcnew System::Windows::Forms::CheckBox());
217
                        this->checkBox7 = (gcnew System::Windows::Forms::CheckBox());
218
                        this->checkBox6 = (gcnew System::Windows::Forms::CheckBox());
219
                        this->checkBox4En = (gcnew System::Windows::Forms::CheckBox());
220
                        this->checkBox3En = (gcnew System::Windows::Forms::CheckBox());
221
                        this->checkBox2En = (gcnew System::Windows::Forms::CheckBox());
222
                        this->checkBox1En = (gcnew System::Windows::Forms::CheckBox());
223
                        this->checkBox0En = (gcnew System::Windows::Forms::CheckBox());
224
                        this->groupBox1->SuspendLayout();
225
                        this->SuspendLayout();
226
                        // 
227
                        // btnOK
228
                        // 
229
                        this->btnOK->DialogResult = System::Windows::Forms::DialogResult::OK;
230
                        this->btnOK->Location = System::Drawing::Point(247, 115);
231
                        this->btnOK->Name = L"btnOK";
232
                        this->btnOK->Size = System::Drawing::Size(75, 23);
233
                        this->btnOK->TabIndex = 19;
234
                        this->btnOK->Text = L"OK";
235
                        this->btnOK->UseVisualStyleBackColor = true;
236
                        this->btnOK->Click += gcnew System::EventHandler(this, &frmInterrupts::btnOK_Click);
237
                        // 
238
                        // label2
239
                        // 
240
                        this->label2->AutoSize = true;
241
                        this->label2->Location = System::Drawing::Point(107, 21);
242
                        this->label2->Name = L"label2";
243
                        this->label2->Size = System::Drawing::Size(57, 13);
244
                        this->label2->TabIndex = 18;
245
                        this->label2->Text = L"Frequency";
246
                        // 
247
                        // label1
248
                        // 
249
                        this->label1->AutoSize = true;
250
                        this->label1->Location = System::Drawing::Point(10, 21);
251
                        this->label1->Name = L"label1";
252
                        this->label1->Size = System::Drawing::Size(77, 13);
253
                        this->label1->TabIndex = 17;
254
                        this->label1->Text = L"Source Enable";
255
                        // 
256
                        // btnTrigger30
257
                        // 
258
                        this->btnTrigger30->Location = System::Drawing::Point(247, 70);
259
                        this->btnTrigger30->Name = L"btnTrigger30";
260
                        this->btnTrigger30->Size = System::Drawing::Size(75, 23);
261
                        this->btnTrigger30->TabIndex = 16;
262
                        this->btnTrigger30->Text = L"Trigger";
263
                        this->btnTrigger30->UseVisualStyleBackColor = true;
264
                        this->btnTrigger30->Click += gcnew System::EventHandler(this, &frmInterrupts::btnTrigger30_Click);
265
                        // 
266
                        // comboBox30
267
                        // 
268
                        this->comboBox30->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
269
                        this->comboBox30->FormattingEnabled = true;
270
                        this->comboBox30->Items->AddRange(gcnew cli::array< System::Object^  >(5) {L"30Hz", L"3 Hz", L"Every 3 seconds", L"Every 30 Seconds",
271
                                L"One shot"});
272
                        this->comboBox30->Location = System::Drawing::Point(110, 72);
273
                        this->comboBox30->Name = L"comboBox30";
274
                        this->comboBox30->Size = System::Drawing::Size(121, 21);
275
                        this->comboBox30->TabIndex = 15;
276
                        // 
277
                        // btnTrigger1024
278
                        // 
279
                        this->btnTrigger1024->Location = System::Drawing::Point(247, 41);
280
                        this->btnTrigger1024->Name = L"btnTrigger1024";
281
                        this->btnTrigger1024->Size = System::Drawing::Size(75, 23);
282
                        this->btnTrigger1024->TabIndex = 14;
283
                        this->btnTrigger1024->Text = L"Trigger";
284
                        this->btnTrigger1024->UseVisualStyleBackColor = true;
285
                        this->btnTrigger1024->Click += gcnew System::EventHandler(this, &frmInterrupts::btnTrigger1024_Click);
286
                        // 
287
                        // comboBox1024
288
                        // 
289
                        this->comboBox1024->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
290
                        this->comboBox1024->FormattingEnabled = true;
291
                        this->comboBox1024->Items->AddRange(gcnew cli::array< System::Object^  >(3) {L"102 Hz", L"1 Hz", L"One shot"});
292
                        this->comboBox1024->Location = System::Drawing::Point(110, 43);
293
                        this->comboBox1024->Name = L"comboBox1024";
294
                        this->comboBox1024->Size = System::Drawing::Size(121, 21);
295
                        this->comboBox1024->TabIndex = 13;
296
                        // 
297
                        // checkBox1024
298
                        // 
299
                        this->checkBox1024->AutoSize = true;
300
                        this->checkBox1024->Location = System::Drawing::Point(13, 47);
301
                        this->checkBox1024->Name = L"checkBox1024";
302
                        this->checkBox1024->Size = System::Drawing::Size(63, 17);
303
                        this->checkBox1024->TabIndex = 12;
304
                        this->checkBox1024->Text = L"1024Hz";
305
                        this->checkBox1024->UseVisualStyleBackColor = true;
306
                        // 
307
                        // checkBoxKeyboard
308
                        // 
309
                        this->checkBoxKeyboard->AutoSize = true;
310
                        this->checkBoxKeyboard->Enabled = false;
311
                        this->checkBoxKeyboard->Location = System::Drawing::Point(13, 93);
312
                        this->checkBoxKeyboard->Name = L"checkBoxKeyboard";
313
                        this->checkBoxKeyboard->Size = System::Drawing::Size(71, 17);
314
                        this->checkBoxKeyboard->TabIndex = 11;
315
                        this->checkBoxKeyboard->Text = L"Keyboard";
316
                        this->checkBoxKeyboard->UseVisualStyleBackColor = true;
317
                        // 
318
                        // checkBox30
319
                        // 
320
                        this->checkBox30->AutoSize = true;
321
                        this->checkBox30->Location = System::Drawing::Point(13, 70);
322
                        this->checkBox30->Name = L"checkBox30";
323
                        this->checkBox30->Size = System::Drawing::Size(51, 17);
324
                        this->checkBox30->TabIndex = 10;
325
                        this->checkBox30->Text = L"30Hz";
326
                        this->checkBox30->UseVisualStyleBackColor = true;
327
                        // 
328
                        // checkBoxUart
329
                        // 
330
                        this->checkBoxUart->AutoSize = true;
331
                        this->checkBoxUart->Enabled = false;
332
                        this->checkBoxUart->Location = System::Drawing::Point(13, 116);
333
                        this->checkBoxUart->Name = L"checkBoxUart";
334
                        this->checkBoxUart->Size = System::Drawing::Size(46, 17);
335
                        this->checkBoxUart->TabIndex = 20;
336
                        this->checkBoxUart->Text = L"Uart";
337
                        this->checkBoxUart->UseVisualStyleBackColor = true;
338
                        // 
339
                        // groupBox1
340
                        // 
341
                        this->groupBox1->Controls->Add(this->label6);
342
                        this->groupBox1->Controls->Add(this->label5);
343
                        this->groupBox1->Controls->Add(this->textBoxVecno);
344
                        this->groupBox1->Controls->Add(this->checkBoxIRQOut);
345
                        this->groupBox1->Controls->Add(this->checkBoxNMIOut);
346
                        this->groupBox1->Controls->Add(this->label4);
347
                        this->groupBox1->Controls->Add(this->checkBox17);
348
                        this->groupBox1->Controls->Add(this->checkBox18);
349
                        this->groupBox1->Controls->Add(this->checkBox19);
350
                        this->groupBox1->Controls->Add(this->checkBox20);
351
                        this->groupBox1->Controls->Add(this->checkBox21);
352
                        this->groupBox1->Controls->Add(this->checkBox22);
353
                        this->groupBox1->Controls->Add(this->checkBox23);
354
                        this->groupBox1->Controls->Add(this->checkBox24);
355
                        this->groupBox1->Controls->Add(this->checkBox7Act);
356
                        this->groupBox1->Controls->Add(this->checkBox26);
357
                        this->groupBox1->Controls->Add(this->checkBox27);
358
                        this->groupBox1->Controls->Add(this->checkBox28);
359
                        this->groupBox1->Controls->Add(this->checkBox3Act);
360
                        this->groupBox1->Controls->Add(this->checkBox2Act);
361
                        this->groupBox1->Controls->Add(this->checkBox1Act);
362
                        this->groupBox1->Controls->Add(this->checkBox0Act);
363
                        this->groupBox1->Controls->Add(this->label3);
364
                        this->groupBox1->Controls->Add(this->checkBox16);
365
                        this->groupBox1->Controls->Add(this->checkBox15);
366
                        this->groupBox1->Controls->Add(this->checkBox14);
367
                        this->groupBox1->Controls->Add(this->checkBox13);
368
                        this->groupBox1->Controls->Add(this->checkBox12);
369
                        this->groupBox1->Controls->Add(this->checkBox11);
370
                        this->groupBox1->Controls->Add(this->checkBox10);
371
                        this->groupBox1->Controls->Add(this->checkBox9);
372
                        this->groupBox1->Controls->Add(this->checkBox7En);
373
                        this->groupBox1->Controls->Add(this->checkBox7);
374
                        this->groupBox1->Controls->Add(this->checkBox6);
375
                        this->groupBox1->Controls->Add(this->checkBox4En);
376
                        this->groupBox1->Controls->Add(this->checkBox3En);
377
                        this->groupBox1->Controls->Add(this->checkBox2En);
378
                        this->groupBox1->Controls->Add(this->checkBox1En);
379
                        this->groupBox1->Controls->Add(this->checkBox0En);
380
                        this->groupBox1->Location = System::Drawing::Point(12, 144);
381
                        this->groupBox1->Name = L"groupBox1";
382
                        this->groupBox1->Size = System::Drawing::Size(310, 414);
383
                        this->groupBox1->TabIndex = 21;
384
                        this->groupBox1->TabStop = false;
385
                        this->groupBox1->Text = L"PIC State";
386
                        // 
387
                        // label6
388
                        // 
389
                        this->label6->AutoSize = true;
390
                        this->label6->Location = System::Drawing::Point(232, 26);
391
                        this->label6->Name = L"label6";
392
                        this->label6->Size = System::Drawing::Size(59, 13);
393
                        this->label6->TabIndex = 38;
394
                        this->label6->Text = L"PIC Output";
395
                        // 
396
                        // label5
397
                        // 
398
                        this->label5->AutoSize = true;
399
                        this->label5->Enabled = false;
400
                        this->label5->Location = System::Drawing::Point(232, 93);
401
                        this->label5->Name = L"label5";
402
                        this->label5->Size = System::Drawing::Size(38, 13);
403
                        this->label5->TabIndex = 37;
404
                        this->label5->Text = L"Vecno";
405
                        // 
406
                        // textBoxVecno
407
                        // 
408
                        this->textBoxVecno->Enabled = false;
409
                        this->textBoxVecno->Location = System::Drawing::Point(235, 112);
410
                        this->textBoxVecno->Name = L"textBoxVecno";
411
                        this->textBoxVecno->Size = System::Drawing::Size(56, 20);
412
                        this->textBoxVecno->TabIndex = 36;
413
                        // 
414
                        // checkBoxIRQOut
415
                        // 
416
                        this->checkBoxIRQOut->AutoSize = true;
417
                        this->checkBoxIRQOut->Enabled = false;
418
                        this->checkBoxIRQOut->Location = System::Drawing::Point(235, 69);
419
                        this->checkBoxIRQOut->Name = L"checkBoxIRQOut";
420
                        this->checkBoxIRQOut->Size = System::Drawing::Size(45, 17);
421
                        this->checkBoxIRQOut->TabIndex = 35;
422
                        this->checkBoxIRQOut->Text = L"IRQ";
423
                        this->checkBoxIRQOut->UseVisualStyleBackColor = true;
424
                        // 
425
                        // checkBoxNMIOut
426
                        // 
427
                        this->checkBoxNMIOut->AutoSize = true;
428
                        this->checkBoxNMIOut->Enabled = false;
429
                        this->checkBoxNMIOut->Location = System::Drawing::Point(235, 46);
430
                        this->checkBoxNMIOut->Name = L"checkBoxNMIOut";
431
                        this->checkBoxNMIOut->Size = System::Drawing::Size(46, 17);
432
                        this->checkBoxNMIOut->TabIndex = 34;
433
                        this->checkBoxNMIOut->Text = L"NMI";
434
                        this->checkBoxNMIOut->UseVisualStyleBackColor = true;
435
                        // 
436
                        // label4
437
                        // 
438
                        this->label4->AutoSize = true;
439
                        this->label4->Location = System::Drawing::Point(119, 26);
440
                        this->label4->Name = L"label4";
441
                        this->label4->Size = System::Drawing::Size(64, 13);
442
                        this->label4->TabIndex = 33;
443
                        this->label4->Text = L"Input Active";
444
                        // 
445
                        // checkBox17
446
                        // 
447
                        this->checkBox17->AutoSize = true;
448
                        this->checkBox17->Enabled = false;
449
                        this->checkBox17->Location = System::Drawing::Point(119, 390);
450
                        this->checkBox17->Name = L"checkBox17";
451
                        this->checkBox17->Size = System::Drawing::Size(97, 17);
452
                        this->checkBox17->TabIndex = 32;
453
                        this->checkBox17->Text = L"15 Unassigned";
454
                        this->checkBox17->UseVisualStyleBackColor = true;
455
                        // 
456
                        // checkBox18
457
                        // 
458
                        this->checkBox18->AutoSize = true;
459
                        this->checkBox18->Enabled = false;
460
                        this->checkBox18->Location = System::Drawing::Point(119, 367);
461
                        this->checkBox18->Name = L"checkBox18";
462
                        this->checkBox18->Size = System::Drawing::Size(97, 17);
463
                        this->checkBox18->TabIndex = 31;
464
                        this->checkBox18->Text = L"14 Unassigned";
465
                        this->checkBox18->UseVisualStyleBackColor = true;
466
                        // 
467
                        // checkBox19
468
                        // 
469
                        this->checkBox19->AutoSize = true;
470
                        this->checkBox19->Enabled = false;
471
                        this->checkBox19->Location = System::Drawing::Point(119, 344);
472
                        this->checkBox19->Name = L"checkBox19";
473
                        this->checkBox19->Size = System::Drawing::Size(97, 17);
474
                        this->checkBox19->TabIndex = 30;
475
                        this->checkBox19->Text = L"13 Unassigned";
476
                        this->checkBox19->UseVisualStyleBackColor = true;
477
                        // 
478
                        // checkBox20
479
                        // 
480
                        this->checkBox20->AutoSize = true;
481
                        this->checkBox20->Enabled = false;
482
                        this->checkBox20->Location = System::Drawing::Point(119, 321);
483
                        this->checkBox20->Name = L"checkBox20";
484
                        this->checkBox20->Size = System::Drawing::Size(97, 17);
485
                        this->checkBox20->TabIndex = 29;
486
                        this->checkBox20->Text = L"12 Unassigned";
487
                        this->checkBox20->UseVisualStyleBackColor = true;
488
                        // 
489
                        // checkBox21
490
                        // 
491
                        this->checkBox21->AutoSize = true;
492
                        this->checkBox21->Enabled = false;
493
                        this->checkBox21->Location = System::Drawing::Point(119, 299);
494
                        this->checkBox21->Name = L"checkBox21";
495
                        this->checkBox21->Size = System::Drawing::Size(97, 17);
496
                        this->checkBox21->TabIndex = 28;
497
                        this->checkBox21->Text = L"11 Unassigned";
498
                        this->checkBox21->UseVisualStyleBackColor = true;
499
                        // 
500
                        // checkBox22
501
                        // 
502
                        this->checkBox22->AutoSize = true;
503
                        this->checkBox22->Enabled = false;
504
                        this->checkBox22->Location = System::Drawing::Point(119, 276);
505
                        this->checkBox22->Name = L"checkBox22";
506
                        this->checkBox22->Size = System::Drawing::Size(97, 17);
507
                        this->checkBox22->TabIndex = 27;
508
                        this->checkBox22->Text = L"10 Unassigned";
509
                        this->checkBox22->UseVisualStyleBackColor = true;
510
                        // 
511
                        // checkBox23
512
                        // 
513
                        this->checkBox23->AutoSize = true;
514
                        this->checkBox23->Enabled = false;
515
                        this->checkBox23->Location = System::Drawing::Point(119, 253);
516
                        this->checkBox23->Name = L"checkBox23";
517
                        this->checkBox23->Size = System::Drawing::Size(91, 17);
518
                        this->checkBox23->TabIndex = 26;
519
                        this->checkBox23->Text = L"9 Unassigned";
520
                        this->checkBox23->UseVisualStyleBackColor = true;
521
                        // 
522
                        // checkBox24
523
                        // 
524
                        this->checkBox24->AutoSize = true;
525
                        this->checkBox24->Enabled = false;
526
                        this->checkBox24->Location = System::Drawing::Point(119, 230);
527
                        this->checkBox24->Name = L"checkBox24";
528
                        this->checkBox24->Size = System::Drawing::Size(91, 17);
529
                        this->checkBox24->TabIndex = 25;
530
                        this->checkBox24->Text = L"8 Unassigned";
531
                        this->checkBox24->UseVisualStyleBackColor = true;
532
                        // 
533
                        // checkBox7Act
534
                        // 
535
                        this->checkBox7Act->AutoSize = true;
536
                        this->checkBox7Act->Enabled = false;
537
                        this->checkBox7Act->Location = System::Drawing::Point(119, 207);
538
                        this->checkBox7Act->Name = L"checkBox7Act";
539
                        this->checkBox7Act->Size = System::Drawing::Size(55, 17);
540
                        this->checkBox7Act->TabIndex = 24;
541
                        this->checkBox7Act->Text = L"7 Uart";
542
                        this->checkBox7Act->UseVisualStyleBackColor = true;
543
                        // 
544
                        // checkBox26
545
                        // 
546
                        this->checkBox26->AutoSize = true;
547
                        this->checkBox26->Enabled = false;
548
                        this->checkBox26->Location = System::Drawing::Point(119, 184);
549
                        this->checkBox26->Name = L"checkBox26";
550
                        this->checkBox26->Size = System::Drawing::Size(91, 17);
551
                        this->checkBox26->TabIndex = 23;
552
                        this->checkBox26->Text = L"6 Unassigned";
553
                        this->checkBox26->UseVisualStyleBackColor = true;
554
                        // 
555
                        // checkBox27
556
                        // 
557
                        this->checkBox27->AutoSize = true;
558
                        this->checkBox27->Enabled = false;
559
                        this->checkBox27->Location = System::Drawing::Point(119, 161);
560
                        this->checkBox27->Name = L"checkBox27";
561
                        this->checkBox27->Size = System::Drawing::Size(91, 17);
562
                        this->checkBox27->TabIndex = 22;
563
                        this->checkBox27->Text = L"5 Unassigned";
564
                        this->checkBox27->UseVisualStyleBackColor = true;
565
                        // 
566
                        // checkBox28
567
                        // 
568
                        this->checkBox28->AutoSize = true;
569
                        this->checkBox28->Enabled = false;
570
                        this->checkBox28->Location = System::Drawing::Point(119, 138);
571
                        this->checkBox28->Name = L"checkBox28";
572
                        this->checkBox28->Size = System::Drawing::Size(91, 17);
573
                        this->checkBox28->TabIndex = 21;
574
                        this->checkBox28->Text = L"4 Unassigned";
575
                        this->checkBox28->UseVisualStyleBackColor = true;
576
                        // 
577
                        // checkBox3Act
578
                        // 
579
                        this->checkBox3Act->AutoSize = true;
580
                        this->checkBox3Act->Enabled = false;
581
                        this->checkBox3Act->Location = System::Drawing::Point(119, 115);
582
                        this->checkBox3Act->Name = L"checkBox3Act";
583
                        this->checkBox3Act->Size = System::Drawing::Size(80, 17);
584
                        this->checkBox3Act->TabIndex = 20;
585
                        this->checkBox3Act->Text = L"3 Keyboard";
586
                        this->checkBox3Act->UseVisualStyleBackColor = true;
587
                        // 
588
                        // checkBox2Act
589
                        // 
590
                        this->checkBox2Act->AutoSize = true;
591
                        this->checkBox2Act->Enabled = false;
592
                        this->checkBox2Act->Location = System::Drawing::Point(119, 92);
593
                        this->checkBox2Act->Name = L"checkBox2Act";
594
                        this->checkBox2Act->Size = System::Drawing::Size(60, 17);
595
                        this->checkBox2Act->TabIndex = 19;
596
                        this->checkBox2Act->Text = L"2 30Hz";
597
                        this->checkBox2Act->UseVisualStyleBackColor = true;
598
                        // 
599
                        // checkBox1Act
600
                        // 
601
                        this->checkBox1Act->AutoSize = true;
602
                        this->checkBox1Act->Enabled = false;
603
                        this->checkBox1Act->Location = System::Drawing::Point(119, 69);
604
                        this->checkBox1Act->Name = L"checkBox1Act";
605
                        this->checkBox1Act->Size = System::Drawing::Size(72, 17);
606
                        this->checkBox1Act->TabIndex = 18;
607
                        this->checkBox1Act->Text = L"1 1024Hz";
608
                        this->checkBox1Act->UseVisualStyleBackColor = true;
609
                        // 
610
                        // checkBox0Act
611
                        // 
612
                        this->checkBox0Act->AutoSize = true;
613
                        this->checkBox0Act->Enabled = false;
614
                        this->checkBox0Act->Location = System::Drawing::Point(119, 46);
615
                        this->checkBox0Act->Name = L"checkBox0Act";
616
                        this->checkBox0Act->Size = System::Drawing::Size(55, 17);
617
                        this->checkBox0Act->TabIndex = 17;
618
                        this->checkBox0Act->Text = L"0 NMI";
619
                        this->checkBox0Act->UseVisualStyleBackColor = true;
620
                        // 
621
                        // label3
622
                        // 
623
                        this->label3->AutoSize = true;
624
                        this->label3->Location = System::Drawing::Point(6, 26);
625
                        this->label3->Name = L"label3";
626
                        this->label3->Size = System::Drawing::Size(46, 13);
627
                        this->label3->TabIndex = 16;
628
                        this->label3->Text = L"Enabled";
629
                        // 
630
                        // checkBox16
631
                        // 
632
                        this->checkBox16->AutoSize = true;
633
                        this->checkBox16->Enabled = false;
634
                        this->checkBox16->Location = System::Drawing::Point(6, 390);
635
                        this->checkBox16->Name = L"checkBox16";
636
                        this->checkBox16->Size = System::Drawing::Size(97, 17);
637
                        this->checkBox16->TabIndex = 15;
638
                        this->checkBox16->Text = L"15 Unassigned";
639
                        this->checkBox16->UseVisualStyleBackColor = true;
640
                        // 
641
                        // checkBox15
642
                        // 
643
                        this->checkBox15->AutoSize = true;
644
                        this->checkBox15->Enabled = false;
645
                        this->checkBox15->Location = System::Drawing::Point(6, 367);
646
                        this->checkBox15->Name = L"checkBox15";
647
                        this->checkBox15->Size = System::Drawing::Size(97, 17);
648
                        this->checkBox15->TabIndex = 14;
649
                        this->checkBox15->Text = L"14 Unassigned";
650
                        this->checkBox15->UseVisualStyleBackColor = true;
651
                        // 
652
                        // checkBox14
653
                        // 
654
                        this->checkBox14->AutoSize = true;
655
                        this->checkBox14->Enabled = false;
656
                        this->checkBox14->Location = System::Drawing::Point(6, 344);
657
                        this->checkBox14->Name = L"checkBox14";
658
                        this->checkBox14->Size = System::Drawing::Size(97, 17);
659
                        this->checkBox14->TabIndex = 13;
660
                        this->checkBox14->Text = L"13 Unassigned";
661
                        this->checkBox14->UseVisualStyleBackColor = true;
662
                        // 
663
                        // checkBox13
664
                        // 
665
                        this->checkBox13->AutoSize = true;
666
                        this->checkBox13->Enabled = false;
667
                        this->checkBox13->Location = System::Drawing::Point(6, 321);
668
                        this->checkBox13->Name = L"checkBox13";
669
                        this->checkBox13->Size = System::Drawing::Size(97, 17);
670
                        this->checkBox13->TabIndex = 12;
671
                        this->checkBox13->Text = L"12 Unassigned";
672
                        this->checkBox13->UseVisualStyleBackColor = true;
673
                        // 
674
                        // checkBox12
675
                        // 
676
                        this->checkBox12->AutoSize = true;
677
                        this->checkBox12->Enabled = false;
678
                        this->checkBox12->Location = System::Drawing::Point(6, 299);
679
                        this->checkBox12->Name = L"checkBox12";
680
                        this->checkBox12->Size = System::Drawing::Size(97, 17);
681
                        this->checkBox12->TabIndex = 11;
682
                        this->checkBox12->Text = L"11 Unassigned";
683
                        this->checkBox12->UseVisualStyleBackColor = true;
684
                        // 
685
                        // checkBox11
686
                        // 
687
                        this->checkBox11->AutoSize = true;
688
                        this->checkBox11->Enabled = false;
689
                        this->checkBox11->Location = System::Drawing::Point(6, 276);
690
                        this->checkBox11->Name = L"checkBox11";
691
                        this->checkBox11->Size = System::Drawing::Size(97, 17);
692
                        this->checkBox11->TabIndex = 10;
693
                        this->checkBox11->Text = L"10 Unassigned";
694
                        this->checkBox11->UseVisualStyleBackColor = true;
695
                        // 
696
                        // checkBox10
697
                        // 
698
                        this->checkBox10->AutoSize = true;
699
                        this->checkBox10->Enabled = false;
700
                        this->checkBox10->Location = System::Drawing::Point(6, 253);
701
                        this->checkBox10->Name = L"checkBox10";
702
                        this->checkBox10->Size = System::Drawing::Size(91, 17);
703
                        this->checkBox10->TabIndex = 9;
704
                        this->checkBox10->Text = L"9 Unassigned";
705
                        this->checkBox10->UseVisualStyleBackColor = true;
706
                        // 
707
                        // checkBox9
708
                        // 
709
                        this->checkBox9->AutoSize = true;
710
                        this->checkBox9->Enabled = false;
711
                        this->checkBox9->Location = System::Drawing::Point(6, 230);
712
                        this->checkBox9->Name = L"checkBox9";
713
                        this->checkBox9->Size = System::Drawing::Size(91, 17);
714
                        this->checkBox9->TabIndex = 8;
715
                        this->checkBox9->Text = L"8 Unassigned";
716
                        this->checkBox9->UseVisualStyleBackColor = true;
717
                        // 
718
                        // checkBox7En
719
                        // 
720
                        this->checkBox7En->AutoSize = true;
721
                        this->checkBox7En->Enabled = false;
722
                        this->checkBox7En->Location = System::Drawing::Point(6, 207);
723
                        this->checkBox7En->Name = L"checkBox7En";
724
                        this->checkBox7En->Size = System::Drawing::Size(55, 17);
725
                        this->checkBox7En->TabIndex = 7;
726
                        this->checkBox7En->Text = L"7 Uart";
727
                        this->checkBox7En->UseVisualStyleBackColor = true;
728
                        // 
729
                        // checkBox7
730
                        // 
731
                        this->checkBox7->AutoSize = true;
732
                        this->checkBox7->Enabled = false;
733
                        this->checkBox7->Location = System::Drawing::Point(6, 184);
734
                        this->checkBox7->Name = L"checkBox7";
735
                        this->checkBox7->Size = System::Drawing::Size(91, 17);
736
                        this->checkBox7->TabIndex = 6;
737
                        this->checkBox7->Text = L"6 Unassigned";
738
                        this->checkBox7->UseVisualStyleBackColor = true;
739
                        // 
740
                        // checkBox6
741
                        // 
742
                        this->checkBox6->AutoSize = true;
743
                        this->checkBox6->Enabled = false;
744
                        this->checkBox6->Location = System::Drawing::Point(6, 161);
745
                        this->checkBox6->Name = L"checkBox6";
746
                        this->checkBox6->Size = System::Drawing::Size(91, 17);
747
                        this->checkBox6->TabIndex = 5;
748
                        this->checkBox6->Text = L"5 Unassigned";
749
                        this->checkBox6->UseVisualStyleBackColor = true;
750
                        // 
751
                        // checkBox4En
752
                        // 
753
                        this->checkBox4En->AutoSize = true;
754
                        this->checkBox4En->Enabled = false;
755
                        this->checkBox4En->Location = System::Drawing::Point(6, 138);
756
                        this->checkBox4En->Name = L"checkBox4En";
757
                        this->checkBox4En->Size = System::Drawing::Size(91, 17);
758
                        this->checkBox4En->TabIndex = 4;
759
                        this->checkBox4En->Text = L"4 Unassigned";
760
                        this->checkBox4En->UseVisualStyleBackColor = true;
761
                        // 
762
                        // checkBox3En
763
                        // 
764
                        this->checkBox3En->AutoSize = true;
765
                        this->checkBox3En->Enabled = false;
766
                        this->checkBox3En->Location = System::Drawing::Point(6, 115);
767
                        this->checkBox3En->Name = L"checkBox3En";
768
                        this->checkBox3En->Size = System::Drawing::Size(80, 17);
769
                        this->checkBox3En->TabIndex = 3;
770
                        this->checkBox3En->Text = L"3 Keyboard";
771
                        this->checkBox3En->UseVisualStyleBackColor = true;
772
                        // 
773
                        // checkBox2En
774
                        // 
775
                        this->checkBox2En->AutoSize = true;
776
                        this->checkBox2En->Enabled = false;
777
                        this->checkBox2En->Location = System::Drawing::Point(6, 92);
778
                        this->checkBox2En->Name = L"checkBox2En";
779
                        this->checkBox2En->Size = System::Drawing::Size(60, 17);
780
                        this->checkBox2En->TabIndex = 2;
781
                        this->checkBox2En->Text = L"2 30Hz";
782
                        this->checkBox2En->UseVisualStyleBackColor = true;
783
                        // 
784
                        // checkBox1En
785
                        // 
786
                        this->checkBox1En->AutoSize = true;
787
                        this->checkBox1En->Enabled = false;
788
                        this->checkBox1En->Location = System::Drawing::Point(6, 69);
789
                        this->checkBox1En->Name = L"checkBox1En";
790
                        this->checkBox1En->Size = System::Drawing::Size(72, 17);
791
                        this->checkBox1En->TabIndex = 1;
792
                        this->checkBox1En->Text = L"1 1024Hz";
793
                        this->checkBox1En->UseVisualStyleBackColor = true;
794
                        // 
795
                        // checkBox0En
796
                        // 
797
                        this->checkBox0En->AutoSize = true;
798
                        this->checkBox0En->Enabled = false;
799
                        this->checkBox0En->Location = System::Drawing::Point(6, 46);
800
                        this->checkBox0En->Name = L"checkBox0En";
801
                        this->checkBox0En->Size = System::Drawing::Size(55, 17);
802
                        this->checkBox0En->TabIndex = 0;
803
                        this->checkBox0En->Text = L"0 NMI";
804
                        this->checkBox0En->UseVisualStyleBackColor = true;
805
                        // 
806
                        // frmInterrupts
807
                        // 
808
                        this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
809
                        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
810
                        this->ClientSize = System::Drawing::Size(331, 568);
811
                        this->Controls->Add(this->groupBox1);
812
                        this->Controls->Add(this->checkBoxUart);
813
                        this->Controls->Add(this->btnOK);
814
                        this->Controls->Add(this->label2);
815
                        this->Controls->Add(this->label1);
816
                        this->Controls->Add(this->btnTrigger30);
817
                        this->Controls->Add(this->comboBox30);
818
                        this->Controls->Add(this->btnTrigger1024);
819
                        this->Controls->Add(this->comboBox1024);
820
                        this->Controls->Add(this->checkBox1024);
821
                        this->Controls->Add(this->checkBoxKeyboard);
822
                        this->Controls->Add(this->checkBox30);
823
                        this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
824
                        this->MaximizeBox = false;
825
                        this->Name = L"frmInterrupts";
826
                        this->SizeGripStyle = System::Windows::Forms::SizeGripStyle::Hide;
827
                        this->Text = L"emuThor - Interrupts";
828
                        this->Load += gcnew System::EventHandler(this, &frmInterrupts::frmInterrupts_Load);
829
                        this->groupBox1->ResumeLayout(false);
830
                        this->groupBox1->PerformLayout();
831
                        this->ResumeLayout(false);
832
                        this->PerformLayout();
833
 
834
                }
835
#pragma endregion
836
        private: System::Void btnOK_Click(System::Object^  sender, System::EventArgs^  e) {
837
                         }
838
private: System::Void btnTrigger1024_Click(System::Object^  sender, System::EventArgs^  e) {
839
                         if (this->checkBox1024->Checked) {
840
                         mut->WaitOne();
841
                         switch(this->comboBox30->SelectedIndex) {
842
                         case 0: interval1024 = 98; break;
843
                         case 1: interval1024 = 977; break;
844
                         case 2: interval1024 = -1; break;
845
                         }
846
                         trigger1024 = true;
847
                         mut->ReleaseMutex();
848
                         }
849
                 }
850
private: System::Void btnTrigger30_Click(System::Object^  sender, System::EventArgs^  e) {
851
                         if (this->checkBox30->Checked) {
852
                     mut->WaitOne();
853
                         switch(this->comboBox30->SelectedIndex) {
854
                         case 0: interval30 = 33; break;
855
                         case 1: interval30 = 333; break;
856
                         case 2: interval30 = 3333; break;
857
                         case 3: interval30 = 33333; break;
858
                         case 4: interval30 = -1; break;
859
                         }
860
                         trigger30 = true;
861
                         mut->ReleaseMutex();
862
                         }
863
                 }
864
private: System::Void frmInterrupts_Load(System::Object^  sender, System::EventArgs^  e) {
865
                 }
866
};
867
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.