Subversion Repositories ht46f47_simulator

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
object Form2: TForm2
2
  Left = 0
3
  Top = 0
4
  Caption = 'HT46F47 Simulator'
5
  ClientHeight = 662
6
  ClientWidth = 851
7
  Color = clBtnFace
8
  Font.Charset = DEFAULT_CHARSET
9
  Font.Color = clWindowText
10
  Font.Height = -11
11
  Font.Name = 'Tahoma'
12
  Font.Style = []
13
  OldCreateOrder = False
14
  Position = poScreenCenter
15
  OnShow = FormShow
16
  PixelsPerInch = 96
17
  TextHeight = 13
18
  object Label20: TLabel
19
    Left = 24
20
    Top = 392
21
    Width = 100
22
    Height = 13
23
    Caption = 'Command Reference'
24
  end
25
  object BtnStart: TButton
26
    Left = 728
27
    Top = 253
28
    Width = 115
29
    Height = 49
30
    Caption = 'Run'
31
    TabOrder = 0
32
    OnClick = BtnStartClick
33
  end
34
  object BtnStop: TButton
35
    Left = 728
36
    Top = 312
37
    Width = 115
38
    Height = 49
39
    Caption = 'Stop'
40
    Enabled = False
41
    TabOrder = 1
42
    OnClick = BtnStopClick
43
  end
44
  object GroupBox1: TGroupBox
45
    Left = 728
46
    Top = 37
47
    Width = 113
48
    Height = 169
49
    Caption = 'Internal state'
50
    TabOrder = 2
51
    object Label7: TLabel
52
      Left = 7
53
      Top = 24
54
      Width = 13
55
      Height = 13
56
      Caption = 'PC'
57
    end
58
    object Label14: TLabel
59
      Left = 51
60
      Top = 138
61
      Width = 6
62
      Height = 13
63
      Caption = '0'
64
    end
65
    object Label13: TLabel
66
      Left = 8
67
      Top = 138
68
      Width = 29
69
      Height = 13
70
      Caption = 'Reg D'
71
    end
72
    object Label12: TLabel
73
      Left = 51
74
      Top = 119
75
      Width = 6
76
      Height = 13
77
      Caption = '0'
78
    end
79
    object Label11: TLabel
80
      Left = 8
81
      Top = 119
82
      Width = 29
83
      Height = 13
84
      Caption = 'Reg C'
85
    end
86
    object Label10: TLabel
87
      Left = 51
88
      Top = 100
89
      Width = 6
90
      Height = 13
91
      Caption = '0'
92
    end
93
    object Label9: TLabel
94
      Left = 7
95
      Top = 100
96
      Width = 28
97
      Height = 13
98
      Caption = 'Reg B'
99
    end
100
    object Label8: TLabel
101
      Left = 51
102
      Top = 24
103
      Width = 12
104
      Height = 13
105
      Caption = '00'
106
    end
107
    object Label6: TLabel
108
      Left = 51
109
      Top = 81
110
      Width = 6
111
      Height = 13
112
      Caption = '0'
113
    end
114
    object Label5: TLabel
115
      Left = 7
116
      Top = 81
117
      Width = 29
118
      Height = 13
119
      Caption = 'Reg A'
120
    end
121
    object Label4: TLabel
122
      Left = 51
123
      Top = 62
124
      Width = 12
125
      Height = 13
126
      Caption = '00'
127
    end
128
    object Label3: TLabel
129
      Left = 7
130
      Top = 62
131
      Width = 17
132
      Height = 13
133
      Caption = 'Ret'
134
    end
135
    object Label2: TLabel
136
      Left = 51
137
      Top = 43
138
      Width = 6
139
      Height = 13
140
      Caption = '0'
141
    end
142
    object Label1: TLabel
143
      Left = 7
144
      Top = 43
145
      Width = 28
146
      Height = 13
147
      Caption = 'Page:'
148
    end
149
  end
150
  object BtnRandom: TButton
151
    Left = 24
152
    Top = 25
153
    Width = 75
154
    Height = 25
155
    Caption = 'Rnd'
156
    TabOrder = 3
157
    OnClick = BtnRandomClick
158
  end
159
  object GroupBox2: TGroupBox
160
    Left = 483
161
    Top = 25
162
    Width = 225
163
    Height = 149
164
    Caption = 'Input'
165
    TabOrder = 4
166
    object Label15: TLabel
167
      Left = 24
168
      Top = 67
169
      Width = 20
170
      Height = 13
171
      Caption = 'AD1'
172
    end
173
    object Label16: TLabel
174
      Left = 95
175
      Top = 67
176
      Width = 20
177
      Height = 13
178
      Caption = 'AD2'
179
    end
180
    object Label17: TLabel
181
      Left = 24
182
      Top = 22
183
      Width = 42
184
      Height = 13
185
      Caption = 'Digital In'
186
    end
187
    object CheckBox1: TCheckBox
188
      Left = 24
189
      Top = 36
190
      Width = 33
191
      Height = 17
192
      Caption = '1'
193
      TabOrder = 0
194
    end
195
    object CheckBox2: TCheckBox
196
      Left = 63
197
      Top = 36
198
      Width = 33
199
      Height = 17
200
      Caption = '2'
201
      TabOrder = 1
202
    end
203
    object CheckBox3: TCheckBox
204
      Left = 102
205
      Top = 36
206
      Width = 33
207
      Height = 17
208
      Caption = '4'
209
      TabOrder = 2
210
    end
211
    object CheckBox4: TCheckBox
212
      Left = 141
213
      Top = 36
214
      Width = 33
215
      Height = 17
216
      Caption = '8'
217
      TabOrder = 3
218
    end
219
    object SpinEdit2: TSpinEdit
220
      Left = 95
221
      Top = 80
222
      Width = 65
223
      Height = 22
224
      MaxValue = 15
225
      MinValue = 0
226
      TabOrder = 5
227
      Value = 0
228
    end
229
    object SpinEdit1: TSpinEdit
230
      Left = 24
231
      Top = 80
232
      Width = 65
233
      Height = 22
234
      MaxValue = 15
235
      MinValue = 0
236
      TabOrder = 4
237
      Value = 0
238
    end
239
    object CheckBox5: TCheckBox
240
      Left = 24
241
      Top = 111
242
      Width = 41
243
      Height = 17
244
      Caption = 'S1'
245
      TabOrder = 6
246
    end
247
    object CheckBox6: TCheckBox
248
      Left = 88
249
      Top = 111
250
      Width = 41
251
      Height = 17
252
      Caption = 'S2'
253
      TabOrder = 7
254
    end
255
  end
256
  object GroupBox3: TGroupBox
257
    Left = 483
258
    Top = 180
259
    Width = 225
260
    Height = 181
261
    Caption = 'Digital Out'
262
    TabOrder = 5
263
    object Label18: TLabel
264
      Left = 16
265
      Top = 24
266
      Width = 50
267
      Height = 13
268
      Caption = 'Digital Out'
269
    end
270
    object Label19: TLabel
271
      Left = 16
272
      Top = 90
273
      Width = 24
274
      Height = 13
275
      Caption = 'PWM'
276
    end
277
    object Panel1: TPanel
278
      Left = 16
279
      Top = 43
280
      Width = 41
281
      Height = 41
282
      Caption = '1'
283
      Color = clWhite
284
      ParentBackground = False
285
      TabOrder = 0
286
    end
287
    object Panel2: TPanel
288
      Left = 63
289
      Top = 43
290
      Width = 41
291
      Height = 41
292
      Caption = '2'
293
      Color = clWhite
294
      ParentBackground = False
295
      TabOrder = 1
296
    end
297
    object Panel3: TPanel
298
      Left = 110
299
      Top = 43
300
      Width = 41
301
      Height = 41
302
      Caption = '4'
303
      Color = clWhite
304
      ParentBackground = False
305
      TabOrder = 2
306
    end
307
    object Panel4: TPanel
308
      Left = 157
309
      Top = 43
310
      Width = 41
311
      Height = 41
312
      Caption = '8'
313
      Color = clWhite
314
      ParentBackground = False
315
      TabOrder = 3
316
    end
317
    object SpinEdit3: TSpinEdit
318
      Left = 16
319
      Top = 104
320
      Width = 65
321
      Height = 22
322
      TabStop = False
323
      MaxValue = 15
324
      MinValue = 0
325
      ReadOnly = True
326
      TabOrder = 4
327
      Value = 0
328
    end
329
  end
330
  object Memo1: TMemo
331
    Left = 24
332
    Top = 408
333
    Width = 433
334
    Height = 233
335
    Font.Charset = ANSI_CHARSET
336
    Font.Color = clWindowText
337
    Font.Height = -11
338
    Font.Name = 'Courier New'
339
    Font.Style = []
340
    Lines.Strings = (
341
      ' 10'#9'LED 0000'#9'PORT 0'
342
      ' 11'#9'LED 0001'#9'PORT 1'
343
      ' 12'#9'LED 0010'#9'PORT 2'
344
      ' 13'#9'LED 0011'#9'PORT 3'
345
      ' 14'#9'LED 0100'#9'PORT 4'
346
      ' 15'#9'LED 0101'#9'PORT 5'
347
      ' 16'#9'LED 0110'#9'PORT 6'
348
      ' 17'#9'LED 0111'#9'PORT 7'
349
      ' 18'#9'LED 1000'#9'PORT 8'
350
      ' 19'#9'LED 1001'#9'PORT 9'
351
      ' 1A'#9'LED 1010'#9'PORT 10'
352
      ' 1B'#9'LED 1011'#9'PORT 11'
353
      ' 1C'#9'LED 1100'#9'PORT 12'
354
      ' 1D'#9'LED 1101'#9'PORT 13'
355
      ' 1E'#9'LED 1110'#9'PORT 14'
356
      ' 1F'#9'LED 1111'#9'PORT 15'
357
      ''
358
      ' 20'#9'WAIT 1ms'
359
      ' 21'#9'WAIT 2ms'
360
      ' 22'#9'WAIT 5ms'
361
      ' 23'#9'WAIT 10ms'
362
      ' 24'#9'WAIT 20ms'
363
      ' 25'#9'WAIT 50ms'
364
      ' 26'#9'WAIT 100ms'
365
      ' 27'#9'WAIT 200ms'
366
      ' 28'#9'WAIT 500ms'
367
      ' 29'#9'WAIT 1s'
368
      ' 2A'#9'WAIT 2s'
369
      ' 2B'#9'WAIT 5s'
370
      ' 2C'#9'WAIT 10s'
371
      ' 2D'#9'WAIT 20s'
372
      ' 2E'#9'WAIT 30s'
373
      ' 2F'#9'WAIT 60s'
374
      ''
375
      ' 30'#9'JUMP -0'#9#9'HALT'
376
      ' 31'#9'JUMP -1'
377
      ' 32'#9'JUMP -2'
378
      ' 33'#9'JUMP -3'
379
      ' 34'#9'JUMP -4'
380
      ' 35'#9'JUMP -5'
381
      ' 36'#9'JUMP -6'
382
      ' 37'#9'JUMP -7'
383
      ' 38'#9'JUMP -8'
384
      ' 39'#9'JUMP -9'
385
      ' 3A'#9'JUMP -10'
386
      ' 3B'#9'JUMP -11'
387
      ' 3C'#9'JUMP -12'
388
      ' 3D'#9'JUMP -13'
389
      ' 3E'#9'JUMP -14'
390
      ' 3F'#9'JUMP -15'
391
      ''
392
      ' 40'#9'SET A=0'
393
      ' 41'#9'SET A=1'
394
      ' 42'#9'SET A=2'
395
      ' 43'#9'SET A=3'
396
      ' 44'#9'SET A=4'
397
      ' 45'#9'SET A=5'
398
      ' 46'#9'SET A=6'
399
      ' 47'#9'SET A=7'
400
      ' 48'#9'SET A=8'
401
      ' 49'#9'SET A=9'
402
      ' 4A'#9'SET A=10'
403
      ' 4B'#9'SET A=11'
404
      ' 4C'#9'SET A=12'
405
      ' 4D'#9'SET A=13'
406
      ' 4E'#9'SET A=14'
407
      ' 4F'#9'SET A=15'
408
      ''
409
      ' 50'
410
      ' 51'#9'SET B=A'
411
      ' 52'#9'SET C=A'
412
      ' 53'#9'SET D=A'
413
      ' 54'#9'SET Dout=A'
414
      ' 55'#9'SET Dout.0=A.0'
415
      ' 56'#9'SET Dout.1=A.0'
416
      ' 57'#9'SET Dout.2=A.0'
417
      ' 58'#9'SET Dout.3=A.0'
418
      ' 59'#9'SET PWM=A'
419
      ' 5A'
420
      ' 5B'
421
      ' 5C'
422
      ' 5D'
423
      ' 5E'
424
      ' 5F'
425
      ''
426
      ' 60'
427
      ' 61'#9'SET A=B'
428
      ' 62'#9'SET A=C'
429
      ' 63'#9'SET A=D'
430
      ' 64'#9'SET A=Din'
431
      ' 65'#9'SET A=Din.0'
432
      ' 66'#9'SET A=Din.1'
433
      ' 67'#9'SET A=Din.2'
434
      ' 68'#9'SET A=Din.3'
435
      ' 69'#9'SET A=AD1'
436
      ' 6A'#9'SET A=AD2'
437
      ' 6B'
438
      ' 6C'
439
      ' 6D'
440
      ' 6E'
441
      ' 6F'
442
      ''
443
      ' 70'
444
      ' 71'#9'SET A=A+1'
445
      ' 72'#9'SET A=A-1'
446
      ' 73'#9'SET A=A+B'
447
      ' 74'#9'SET A=A-B'
448
      ' 75'#9'SET A=A*B'
449
      ' 76'#9'SET A=A/B'
450
      ' 77'#9'SET A=A&B'#9#9#9'AND'
451
      ' 78'#9'SET A=A|B'#9#9#9'OR'
452
      ' 79'#9'SET A=A^B'#9#9#9'XOR'
453
      ' 7A'#9'SET A=~A'#9#9#9'NOT'
454
      ' 7B'
455
      ' 7C'
456
      ' 7D'
457
      ' 7E'
458
      ' 7F'
459
      ''
460
      ' 80'#9'PAGE 0'#9#9#9#9'Page is used by JUMP, CALL, CTIMES and DTIMES'
461
      ' 81'#9'PAGE 1'
462
      ' 82'#9'PAGE 2'
463
      ' 83'#9'PAGE 3'
464
      ' 84'#9'PAGE 4'
465
      ' 85'#9'PAGE 5'
466
      ' 86'#9'PAGE 6'
467
      ' 87'#9'PAGE 7'
468
      ' 88'#9'PAGE 8'
469
      ' 89'#9'PAGE 9'
470
      ' 8A'#9'PAGE A'
471
      ' 8B'#9'PAGE B'
472
      ' 8C'#9'PAGE C'
473
      ' 8D'#9'PAGE D'
474
      ' 8E'#9'PAGE E'
475
      ' 8F'#9'PAGE F'
476
      ''
477
      ' 90'#9'JUMP <PAGE>0'
478
      ' 91'#9'JUMP <PAGE>1'
479
      ' 92'#9'JUMP <PAGE>2'
480
      ' 93'#9'JUMP <PAGE>3'
481
      ' 94'#9'JUMP <PAGE>4'
482
      ' 95'#9'JUMP <PAGE>5'
483
      ' 96'#9'JUMP <PAGE>6'
484
      ' 97'#9'JUMP <PAGE>7'
485
      ' 98'#9'JUMP <PAGE>8'
486
      ' 99'#9'JUMP <PAGE>9'
487
      ' 9A'#9'JUMP <PAGE>A'
488
      ' 9B'#9'JUMP <PAGE>B'
489
      ' 9C'#9'JUMP <PAGE>C'
490
      ' 9D'#9'JUMP <PAGE>D'
491
      ' 9E'#9'JUMP <PAGE>E'
492
      ' 9F'#9'JUMP <PAGE>F'
493
      ''
494
 
495
        ' A0'#9'CTIMES <PAGE>0'#9#9#9'IF C>0 THEN ( C=C-1 ; JUMP <PAGE>X ) ELSE C' +
496
        'ONTINUE'
497
      ' A1'#9'CTIMES <PAGE>1'
498
      ' A2'#9'CTIMES <PAGE>2'
499
      ' A3'#9'CTIMES <PAGE>3'
500
      ' A4'#9'CTIMES <PAGE>4'
501
      ' A5'#9'CTIMES <PAGE>5'
502
      ' A6'#9'CTIMES <PAGE>6'
503
      ' A7'#9'CTIMES <PAGE>7'
504
      ' A8'#9'CTIMES <PAGE>8'
505
      ' A9'#9'CTIMES <PAGE>9'
506
      ' AA'#9'CTIMES <PAGE>A'
507
      ' AB'#9'CTIMES <PAGE>B'
508
      ' AC'#9'CTIMES <PAGE>C'
509
      ' AD'#9'CTIMES <PAGE>D'
510
      ' AE'#9'CTIMES <PAGE>E'
511
      ' AF'#9'CTIMES <PAGE>F'
512
      ''
513
 
514
        ' B0'#9'DTIMES <PAGE>0'#9#9#9'IF D>0 THEN ( D=D-1 ; JUMP <PAGE>X ) ELSE C' +
515
        'ONTINUE'
516
      ' B1'#9'DTIMES <PAGE>1'
517
      ' B2'#9'DTIMES <PAGE>2'
518
      ' B3'#9'DTIMES <PAGE>3'
519
      ' B4'#9'DTIMES <PAGE>4'
520
      ' B5'#9'DTIMES <PAGE>5'
521
      ' B6'#9'DTIMES <PAGE>6'
522
      ' B7'#9'DTIMES <PAGE>7'
523
      ' B8'#9'DTIMES <PAGE>8'
524
      ' B9'#9'DTIMES <PAGE>9'
525
      ' BA'#9'DTIMES <PAGE>A'
526
      ' BB'#9'DTIMES <PAGE>B'
527
      ' BC'#9'DTIMES <PAGE>C'
528
      ' BD'#9'DTIMES <PAGE>D'
529
      ' BE'#9'DTIMES <PAGE>E'
530
      ' BF'#9'DTIMES <PAGE>F'
531
      ''
532
      ' C0'
533
      ' C1'#9'SKIP_IF A>B'
534
      ' C2'#9'SKIP_IF A<B'
535
      ' C3'#9'SKIP_IF A=B'
536
      ' C4'#9'SKIP_IF Din.0=1'
537
      ' C5'#9'SKIP_IF Din.1=1'
538
      ' C6'#9'SKIP_IF Din.2=1'
539
      ' C7'#9'SKIP_IF Din.3=1'
540
      ' C8'#9'SKIP_IF Din.0=0'
541
      ' C9'#9'SKIP_IF Din.1=0'
542
      ' CA'#9'SKIP_IF Din.2=0'
543
      ' CB'#9'SKIP_IF Din.3=0'
544
      ' CC'#9'SKIP_IF S1=0'
545
      ' CD'#9'SKIP_IF S2=0'
546
      ' CE'#9'SKIP_IF S1=1'
547
      ' CF'#9'SKIP_IF S2=1'
548
      ''
549
      ' D0'#9'CALL <PAGE>0'
550
      ' D1'#9'CALL <PAGE>1'
551
      ' D2'#9'CALL <PAGE>2'
552
      ' D3'#9'CALL <PAGE>3'
553
      ' D4'#9'CALL <PAGE>4'
554
      ' D5'#9'CALL <PAGE>5'
555
      ' D6'#9'CALL <PAGE>6'
556
      ' D7'#9'CALL <PAGE>7'
557
      ' D8'#9'CALL <PAGE>8'
558
      ' D9'#9'CALL <PAGE>9'
559
      ' DA'#9'CALL <PAGE>A'
560
      ' DB'#9'CALL <PAGE>B'
561
      ' DC'#9'CALL <PAGE>C'
562
      ' DD'#9'CALL <PAGE>D'
563
      ' DE'#9'CALL <PAGE>E'
564
      ' DF'#9'CALL <PAGE>F'
565
      ''
566
      ' E0'#9'RET')
567
    ParentFont = False
568
    ReadOnly = True
569
    ScrollBars = ssBoth
570
    TabOrder = 6
571
  end
572
  object Memo2: TMemo
573
    Left = 24
574
    Top = 56
575
    Width = 433
576
    Height = 313
577
    Font.Charset = ANSI_CHARSET
578
    Font.Color = clWindowText
579
    Font.Height = -11
580
    Font.Name = 'Courier New'
581
    Font.Style = []
582
    Lines.Strings = (
583
      '80 42 52 1F 26 27 10 26 27 A3 42 52 18 27 14 27'
584
      '12 27 11 27 12 27 14 27 AC 18 27 10 27 91')
585
    ParentFont = False
586
    ReadOnly = True
587
    ScrollBars = ssVertical
588
    TabOrder = 7
589
    WantTabs = True
590
  end
591
end