-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathuFrASMCalculator.dfm
743 lines (743 loc) · 19.4 KB
/
uFrASMCalculator.dfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
object FrASMCalculator: TFrASMCalculator
Left = 0
Top = 0
Width = 447
Height = 406
TabOrder = 0
OnResize = FrameResize
object pnlASMRight: TPanel
Left = 247
Top = 0
Width = 200
Height = 406
Align = alRight
BevelOuter = bvNone
TabOrder = 0
object chklstCPUFlags: TCheckListBox
Left = 0
Top = 19
Width = 200
Height = 332
OnClickCheck = chklstCPUFlagsClickCheck
Align = alClient
ItemHeight = 13
Items.Strings = (
'21 CPU Flag'
'20 Virtual Interrupt Pending'
'19 Virtual Interrupt Flag'
'18 Alignment Check'
'17 Virtual Mode Flag'
'16 Resume Flag'
'15 Reserved (0)'
'14 Nested Task'
'13 I/O Privilege Level'
'12 I/O Privilege Level'
'11 Overflow flag (OF)'
'10 Direction flag (DF)'
'9 Interrupt flag (IF)'
'8 Trace flag (TF)'
'7 Sign flag (SF)'
'6 Zero flag (ZF)'
'5 Reserved (0)'
'4 Auxiliary carry flag (AF)'
'3 Reserved (0)'
'2 Parity flag (PF)'
'1 Reserved (1)'
'0 Carry flag (CF)')
TabOrder = 0
end
object pnlASMJumps: TPanel
Left = 0
Top = 351
Width = 200
Height = 55
Align = alBottom
BevelOuter = bvNone
TabOrder = 1
object lblASMJump_JO: TLabel
Left = 2
Top = 2
Width = 14
Height = 14
Hint = 'Jump if Overflow'#13#10'OF=1'
Caption = 'JO'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JNO: TLabel
Left = 2
Top = 15
Width = 22
Height = 14
Hint = 'Jump if not Overflow'#13#10'OF=0'
Caption = 'JNO'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JS: TLabel
Left = 2
Top = 28
Width = 12
Height = 14
Hint = 'Jump if negative'#13#10'SF=1'
Caption = 'JS'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JNS: TLabel
Left = 2
Top = 41
Width = 20
Height = 14
Hint = 'Jump if not negative'#13#10'SF=0'
Caption = 'JNS'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JP_JPE: TLabel
Left = 28
Top = 2
Width = 36
Height = 14
Hint = 'Jump if Parity'#13#10'Jump if Parity even'#13#10'PF=1'
Caption = 'JP/JPE'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JNP_JPO: TLabel
Left = 28
Top = 15
Width = 46
Height = 14
Hint = 'Jump if not Parity'#13#10'Jump if Parity odd'#13#10'PF=0'
Caption = 'JNP/JPO'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JE_JZ: TLabel
Left = 28
Top = 28
Width = 29
Height = 14
Hint = 'Jump if equal'#13#10'Jump if Zero'#13#10'ZF=1'#13#10'X = Y'
Caption = 'JE/JZ'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JNE_JNZ: TLabel
Left = 28
Top = 41
Width = 45
Height = 14
Hint = 'Jump if not equal'#13#10'Jump if not Zero'#13#10'ZF=0'#13#10'X <> Y'
Caption = 'JNE/JNZ'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JA_JNBE: TLabel
Left = 78
Top = 2
Width = 45
Height = 14
Hint =
'Jump if above'#13#10'Jump if not below or equal'#13#10'CF=0 AND ZF=0'#13#10'Unsign' +
'ed X > Y'
Caption = 'JA/JNBE'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JB_JNAE_JC: TLabel
Left = 78
Top = 15
Width = 62
Height = 14
Hint =
'Jump if below'#13#10'Jump if not above or equal'#13#10'Jump if Carry'#13#10'CF=1'#13#10 +
'Unsigned X < Y'
Caption = 'JB/JNAE/JC'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JAE_JNB_JNC: TLabel
Left = 78
Top = 28
Width = 70
Height = 14
Hint =
'Jump if above or equal'#13#10'Jump if not below'#13#10'Jump if Carry'#13#10'CF=0'#13#10 +
'Unsigned X >= Y'
Caption = 'JAE/JNB/JNC'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JBE_JNA: TLabel
Left = 78
Top = 41
Width = 45
Height = 14
Hint =
'Jump if below or equal'#13#10'Jump if not above'#13#10'CF=1 OR ZF=1'#13#10'Unsigne' +
'd X <= Y'
Caption = 'JBE/JNA'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JG_JNLE: TLabel
Left = 152
Top = 2
Width = 44
Height = 14
Hint =
'Jump if greater'#13#10'Jump if not less or equal'#13#10'ZF=0 AND SF=OF'#13#10'Sign' +
'ed X > Y'
Caption = 'JG/JNLE'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JL_JNGE: TLabel
Left = 152
Top = 15
Width = 44
Height = 14
Hint = 'Jump if less'#13#10'Jump if not greater or equal'#13#10'SF<>OF'#13#10'Signed X < Y'
Caption = 'JL/JNGE'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JGE_JNL: TLabel
Left = 152
Top = 28
Width = 44
Height = 14
Hint = 'Jump if greater or equal'#13#10'Jump if not less'#13#10'SF=OF'#13#10'Signed X >= Y'
Caption = 'JGE/JNL'
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object lblASMJump_JLE_JNG: TLabel
Left = 152
Top = 41
Width = 44
Height = 14
Hint =
'Jump if less or equal'#13#10'Jump if not greater'#13#10'ZF=1 OR SF<>OF'#13#10'Sign' +
'ed X <= Y'
Caption = 'JLE/JNG'
Enabled = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
end
object pnlASMCPUFlags: TPanel
Left = 0
Top = 0
Width = 200
Height = 19
Align = alTop
BevelOuter = bvNone
TabOrder = 2
DesignSize = (
200
19)
object lbledtASMCPUFlags: TLabeledEdit
Left = 83
Top = -1
Width = 117
Height = 21
Anchors = [akLeft, akTop, akRight, akBottom]
EditLabel.Width = 78
EditLabel.Height = 13
EditLabel.Caption = 'CPU Flags (Hex)'
LabelPosition = lpLeft
MaxLength = 8
TabOrder = 0
OnChange = lbledtASMCPUFlagsChange
OnKeyDown = ASMHexKeyDown
OnKeyPress = ASMHexKeyPress
end
end
end
object pnlASMLeft: TPanel
Left = 0
Top = 0
Width = 247
Height = 406
Align = alClient
BevelOuter = bvNone
TabOrder = 1
object pnlCaption: TPanel
Left = 0
Top = 33
Width = 247
Height = 14
Align = alTop
BevelOuter = bvNone
TabOrder = 3
object lblASMOperation: TLabel
Left = 0
Top = 0
Width = 247
Height = 14
Align = alClient
Alignment = taCenter
Caption = 'Logical Exclusive OR'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
end
object btnASMSwap: TBitBtn
Left = 0
Top = -1
Width = 16
Height = 16
Hint = 'Swap Operands'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 0
OnClick = btnASMSwapClick
end
end
object pnlASMOperands: TPanel
Left = 0
Top = 47
Width = 247
Height = 82
Align = alTop
BevelOuter = bvNone
TabOrder = 0
object splASMOperands: TSplitter
Left = 123
Top = 0
Height = 82
end
object grpOperand1: TGroupBox
Left = 0
Top = 0
Width = 123
Height = 82
Align = alLeft
Caption = 'Operand 1'
TabOrder = 0
DesignSize = (
123
82)
object lbledtASMHex1: TLabeledEdit
Left = 36
Top = 16
Width = 84
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 19
EditLabel.Height = 13
EditLabel.Caption = 'Hex'
LabelPosition = lpLeft
MaxLength = 8
TabOrder = 0
Text = '00'
OnChange = lbledtASMHexChange
OnKeyDown = ASMHexKeyDown
OnKeyPress = ASMHexKeyPress
OnKeyUp = lbledtASMHexKeyUp
end
object lbledtASMTyped1: TLabeledEdit
Left = 36
Top = 37
Width = 84
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 30
EditLabel.Height = 13
EditLabel.Caption = 'Typed'
LabelPosition = lpLeft
TabOrder = 1
Text = '0'
OnChange = lbledtASMTypedChange
OnKeyDown = lbledtASMTypedKeyDown
OnKeyPress = lbledtASMTypedKeyPress
OnKeyUp = lbledtASMTypedKeyUp
end
object lbledtASMBinary1: TLabeledEdit
Left = 36
Top = 58
Width = 84
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 30
EditLabel.Height = 13
EditLabel.Caption = 'Binary'
LabelPosition = lpLeft
TabOrder = 2
Text = '0'
OnKeyPress = KeyPressReadOnly
end
object btnASMOperand1Result: TBitBtn
Left = 105
Top = 0
Width = 16
Height = 16
Hint = 'Copy from Result'
Anchors = [akTop, akRight]
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 3
OnClick = btnASMOperandResultClick
end
end
object grpOperand2: TGroupBox
Left = 126
Top = 0
Width = 121
Height = 82
Align = alClient
Caption = 'Operand 2'
TabOrder = 1
DesignSize = (
121
82)
object lbledtASMHex2: TLabeledEdit
Left = 36
Top = 16
Width = 84
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 19
EditLabel.Height = 13
EditLabel.Caption = 'Hex'
LabelPosition = lpLeft
MaxLength = 8
TabOrder = 0
Text = '400000'
OnChange = lbledtASMHexChange
OnKeyDown = ASMHexKeyDown
OnKeyPress = ASMHexKeyPress
OnKeyUp = lbledtASMHexKeyUp
end
object lbledtASMTyped2: TLabeledEdit
Left = 36
Top = 37
Width = 84
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 30
EditLabel.Height = 13
EditLabel.Caption = 'Typed'
LabelPosition = lpLeft
TabOrder = 1
Text = '4194304'
OnChange = lbledtASMTypedChange
OnKeyDown = lbledtASMTypedKeyDown
OnKeyPress = lbledtASMTypedKeyPress
OnKeyUp = lbledtASMTypedKeyUp
end
object lbledtASMBinary2: TLabeledEdit
Left = 36
Top = 58
Width = 84
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 30
EditLabel.Height = 13
EditLabel.Caption = 'Binary'
LabelPosition = lpLeft
TabOrder = 2
Text = '00000000010000000000000000000000'
OnKeyPress = KeyPressReadOnly
end
object btnASMOperand2Result: TBitBtn
Left = 104
Top = 0
Width = 16
Height = 16
Hint = 'Copy from Result'
Anchors = [akTop, akRight]
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = [fsBold]
ParentFont = False
TabOrder = 3
OnClick = btnASMOperandResultClick
end
end
end
object grpResult: TGroupBox
Left = 0
Top = 129
Width = 247
Height = 82
Align = alTop
Caption = 'Result'
TabOrder = 1
DesignSize = (
247
82)
object lbledtASMHex3: TLabeledEdit
Left = 36
Top = 16
Width = 208
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 19
EditLabel.Height = 13
EditLabel.Caption = 'Hex'
LabelPosition = lpLeft
MaxLength = 2
TabOrder = 0
Text = '00'
OnKeyPress = KeyPressReadOnly
end
object lbledtASMTyped3: TLabeledEdit
Left = 36
Top = 37
Width = 208
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 30
EditLabel.Height = 13
EditLabel.Caption = 'Typed'
LabelPosition = lpLeft
TabOrder = 1
Text = '0'
OnKeyPress = KeyPressReadOnly
end
object lbledtASMBinary3: TLabeledEdit
Left = 36
Top = 58
Width = 208
Height = 21
Anchors = [akLeft, akTop, akRight]
AutoSize = False
EditLabel.Width = 30
EditLabel.Height = 13
EditLabel.Caption = 'Binary'
LabelPosition = lpLeft
TabOrder = 2
Text = '0'
OnKeyPress = KeyPressReadOnly
end
object chkASMSigned: TCheckBox
Left = 188
Top = -1
Width = 52
Height = 17
Anchors = [akTop, akRight]
Caption = 'Signed'
TabOrder = 3
OnClick = chkASMSignedClick
end
end
object rgASMArchitecture: TRadioGroup
Left = 0
Top = 0
Width = 247
Height = 33
Align = alTop
Caption = 'Architecture'
Columns = 2
ItemIndex = 0
Items.Strings = (
'x86'
'x64')
TabOrder = 2
OnClick = rgASMArchitectureClick
end
object pnlOperation: TPanel
Left = 0
Top = 211
Width = 247
Height = 195
Align = alClient
BevelOuter = bvNone
TabOrder = 4
DesignSize = (
247
195)
object rgASMOperator: TRadioGroup
Left = 0
Top = 0
Width = 247
Height = 195
Align = alClient
Caption = 'Operators'
Columns = 4
ItemIndex = 5
Items.Strings = (
'aaa'
'aad'
'aam'
'aas'
'adc'
'add'
'and'
'bsf'
'bsr'
'bswap'
'bt'
'btc'
'btr'
'bts'
'cbw'
'cdq'
'cmp'
'cwd'
'cwde'
'daa'
'das'
'dec'
'div'
'idiv'
'imul'
'inc'
'lzcnt'
'mul'
'neg'
'not'
'or'
'popcnt'
'rcl'
'rcr'
'rol'
'ror'
'sar'
'sbb'
'shl/sal'
'shld'
'shr'
'shrd'
'sub'
'test'
'xor')
TabOrder = 0
OnClick = rgASMOperatorClick
end
object chkASMCarryFlag: TCheckBox
Left = 208
Top = 0
Width = 33
Height = 17
Anchors = [akTop, akRight]
Caption = 'CF'
TabOrder = 1
OnClick = lbledtASMShiftChange
end
object grpASMShift: TGroupBox
Left = 188
Top = 160
Width = 59
Height = 35
Anchors = [akRight, akBottom]
Caption = 'Shift'
Enabled = False
TabOrder = 2
object lbledtASMShift: TLabeledEdit
Left = 26
Top = 13
Width = 31
Height = 21
AutoSize = False
EditLabel.Width = 19
EditLabel.Height = 13
EditLabel.Caption = 'Hex'
LabelPosition = lpLeft
MaxLength = 2
TabOrder = 0
Text = '0'
OnChange = lbledtASMShiftChange
OnKeyDown = ASMHexKeyDown
OnKeyPress = ASMHexKeyPress
end
end
end
end
end