-
Notifications
You must be signed in to change notification settings - Fork 0
/
DEBUG.PAS
1797 lines (1714 loc) · 60.9 KB
/
DEBUG.PAS
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
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{ @author: Sylvain Maltais (support@gladir.com)
@created: 2022
@website(https://www.gladir.com/pcdos-0)
@abstract(Target: Turbo Pascal, Free Pascal)
}
Program DEBUG;
Uses Crt,DOS;
Const
CommandList:Array[0..36]of String[4]=(
'A','C','DB','DD','DI','DL','DM','DW','DX','E','EXIT',
'F','G','H','ID','IW','L','M','MC','MD','N',
'OD','OW','P','PR','Q','QUIT','R',
'RM','RN','RNR','S','T','TM','U','W','D'
);
CommandName:Array[0..36]of String[35]=(
'Assembler',
'Comparer',
'Sortir un octet',
'Sortir un double mot',
'Sortir un interruption',
'Sortir le LDT',
'Sortir une chaine MCB',
'Sortir un mot',
'Sortir la memoire etendu',
'Entrer',
'Sortir',
'Remplir',
'Aller a',
'Hexadecimal',
'Entree de port d''un double mot',
'Entree de port d''un mot',
'Charge un fichier',
'Deplacer',
'Fixe le mode FPU',
'Deplacer',
'Nom',
'Sortie de port d''un double mot',
'Sortie de port d''un mot',
'Traitement',
'Retourne le traitement',
'Sortir',
'Sortir',
'Registre',
'Registre MMX',
'Registre FPU',
'Registre FPU',
'Recherche',
'Trace',
'Mode tracage',
'Dessembler',
'Ecrire le fichier',
'Sortir'
);
CommandSyntax:Array[0..36]of String[50]=(
'A [adresse]',
'C intervalle adresse',
'DB intervalle',
'DD intervalle',
'DI interruption [compteur]',
'DL selecteur [compteur]',
'DM',
'DW intervalle',
'DX [adresse_physique]',
'E adresse [liste]',
'EXIT',
'F intervalle liste',
'G [=adresse] [point_d_arret]',
'H valeur1 valeur2',
'ID port',
'IW port',
'L [adresse]',
'M intervalle adresse',
'MC [2:N] (2=287, N=Pas de FPU)',
'MD',
'N [[unite:][chemin]nomfichier [listeparametre]]',
'OD port valeur',
'OW port valeur',
'P [=adresse] [compteur]',
'PR',
'Q',
'QUIT',
'R [registre [valeur]]',
'RM',
'RN',
'RNR',
'S intervalle liste',
'T [=adresse] [compteur]',
'TM [0|1]',
'U [intervalle]',
'W [adresse]',
'D [intervalle]'
);
Type
Instr80x86Rec=Record
BaseSize:Byte;
AsmName:String[10];
AsmName66h:String[10];
AsmName0Fh:String[10];
Param:Boolean;
End;
Const
{Adresse d'assembleur pour le micro-processeur Intel (Cpu Intel)}
ciBXnSI=$00;{©[BX+SI]î,88+}
ciBXnDI=$01;{©[BX+DI]î,88+}
ciBPnSI=$02;{©[BP+SI]î,88+}
ciBPnDI=$03;{©[BP+DI]î,88+}
ciSI=$04;{©[SI]î,88+}
ciDI=$05;{©[DI]î,88+}
ciBP=$06;{©[BP]î,88+}
ciBX=$07;{©[BX]î,88+}
{Instruction d'assembleur pour le micro-processeur Intel (Cpu Intel)}
ciAAA=$37;{©AAAî,88+}
ciAAD_=$D5;{©AADî,88+}
ciAAM_=$D4;{©AAMî,88+}
ciAAS=$3F;{©AASî,88+}
ciAdcAL_=$14;{©ADC AL,??hî,286+}
ciAdcAX_=$15;{©ADC AX,????hî,286+}
ciAddAL_=$04;{©ADD AL,??hî,286+}
ciAddAX_=$05;{©ADD AX,????hî,286+}
ciAndAL_=$24;{©AND AL,??hî,286+}
ciAndAX_=$25;{©AND AX,????hî,286+}
ciCallFarAbs=$9A;{©CALL FAR ????h:????hî,88+}
ciCBW=$98;{©CBWî,88+}
ciCC=$CC;{©INT 03hî(Code Sp'cial CCh),88+}
ciCLC=$F8;{©CLCî,88+}
ciCLD=$FC;{©CLDî,88+}
ciCLI=$FA;{©CLIî,88+}
ciCMC=$F5;{©CMCî,88+}
ciCmpAL_=$3C;{©CMP AL,??hî,286+}
ciCmpAX_=$3D;{©CMP AX,????hî,286+}
ciCmpSB=$A6;{©CMPSBî,88+}
ciCmpSW=$A7;{©CMPSWî,88+}
ciCS=$2E;{©CSî,88+}
ciCWD=$99;{©CWDî,88+}
ciDAA=$27;{©DAAî,88+}
ciDAS=$2F;{©DASî,88+}
ciDecAX=$48;{©DEC AXî,88+}
ciDecBP=$4D;{©DEC BPî,88+}
ciDecBX=$4B;{©DEC BXî,88+}
ciDecCX=$49;{©DEC CXî,88+}
ciDecDI=$4F;{©DEC DIî,88+}
ciDecDX=$4A;{©DEC DXî,88+}
ciDecSI=$4E;{©DEC SIî,88+}
ciDecSP=$4C;{©DEC SPî,88+}
ciDS=$3E;{©DSî,88+}
ciES=$26;{©ESî,88+}
ciFS=$64;{©FSî,386+}
ciGS=$65;{©GSî,386+}
ciHLT=$F4;{©HLTî,88+}
ciIncAX=$40;{©INC AXî,88+}
ciIncBP=$45;{©INC BPî,88+}
ciIncBX=$43;{©INC BXî,88+}
ciIncCX=$41;{©INC CXî,88+}
ciIncDI=$47;{©INC DIî,88+}
ciIncDX=$42;{©INC DXî,88+}
ciIncSI=$46;{©INC SIî,88+}
ciIncSP=$44;{©INC SPî,88+}
ciInsB=$6C;{©INSBî,88+}
ciInsW=$6D;{©INSWî,88+}
ciInt=$CD;{©INT ??hî,88+}
ciIntO=$CE;{©INTOî,88+}
ciIRet=$CF;{©IRETî,88+}
ciJBE=$76;{©JBE ?î,88+}
ciJC=$72;{©JC ?î,88+}
ciJG=$7E;{©JG ?î,88+}
ciJL=$7C;{©JL ?î,88+}
ciJMP_Word=$E9;{©JMP ????î,88+}
ciJNBE=$77;{©JNBE ?î,88+}
ciJNC=$73;{©JNC ?î,88+}
ciJNG=$7F;{©JNG ?î,88+}
ciJNL=$7D;{©JNL ?î,88+}
ciJNO=$71;{©JNO ?î,88+}
ciJNP=$7B;{©JNP ?î,88+}
ciJNS=$79;{©JNS ?î,88+}
ciJNZ=$75;{©JNZ ?î,88+}
ciJO=$70;{©JO ?î,88+}
ciJP=$7A;{©JP ?î,88+}
ciJS=$78;{©JS ?î,88+}
ciJZ=$74;{©JZ ?î,88+}
ciLAHF=$9F;{©LAHFî,88+}
ciLAR=$020F;{©LARî,386+}
ciLeave=$C9;{©LEAVEî,286+}
ciLDS=$C5;{©LDS reg,memî,88+}
ciLES=$C4;{©LES reg,memî,88+}
ciLFS=$B40F;{©LFS reg,memî,386+}
ciLGS=$B50F;{©LGS reg,memî,386+}
ciLock=$F0;{©LOCK ?î,88+}
ciLODSB=$AC;{©LODSBî,88+}
ciLODSD=$AD66;{©LODSDî,386+}
ciLODSW=$AD;{©LODSWî,88+}
ciLSL=$030F;{©LSL ?î,386+}
ciLSS=$B20F;{©LSS reg,memî,386+}
ciMovAL_=$A0;{©MOV AL,[addr]î,286+}
ciMovAL_Byte=$B0;{©MOV AL,??î,88+}
ciMovAX_=$A1;{©MOV AX,[addr]î,286+}
ciMovAX_Word=$B8;{©MOV AX,????î, 88+}
ciMovAH_AL=$E08A;{©MOV AH,ALî,88+}
ciMovBP_SP=$EC8B;{©MOV BP,SPî,88+}
ciMovBX_CX=$D98B;{©MOV BX,CXî,88+}
ciMovCX_BX=$CB8B;{©MOV CX,BXî,88+}
ciMovDX_Word=$BA;{©MOV DX,????î,88+}
ciMovEAX_ES_DI=$058B6626;{©MOV EAX,ES:[DI]î,386+}
ciMovES_DI_EAX=$05896626;{©MOV ES:[DI],EAXî,386+}
ciMovSB=$A4;{©MOVSBî,88+}
ciMovSD=$A566;{©MOVSDî,386+}
ciMovSW=$A5;{©MOVSWî,88+}
ciNOP=$90;{©NOPî,88+}
ciOutDX_AL=$EE;{©OUT DX,ALî,88+}
ciOutDX_AX=$EF;{©OUT DX,AXî,88+}
ciOutSB=$6E;{©OUTSBî,286+}
ciOutSD=$6F66;{©OUTSDî,386+}
ciOutSW=$6F;{©OUTSWî,286+}
ciPopAX=$58;{©POP AXî,88+}
ciPopBP=$5D;{©POP BPî,88+}
ciPopBX=$5B;{©POP BXî,88+}
ciPopCX=$59;{©POP CXî,88+}
ciPopDX=$5A;{©POP DXî,88+}
ciPopDI=$5F;{©POP DIî,88+}
ciPopDS=$1F;{©POP DSî,88+}
ciPopEAX=$5866;{©POP EAXî,386+}
ciPopEBX=$5B66;{©POP EBXî,386+}
ciPopECX=$5966;{©POP ECXî,386+}
ciPopEDI=$66+(ciPopDI shl 8);{©PUSH EDIî,386+}
ciPopEDX=$5A66;{©POP EDXî,386+}
ciPopFS=$A10F;{©PUSH FSî,386+}
ciPopGS=$A90F;{©PUSH GSî,386+}
ciPopES=$07;{©POP ESî,88+}
ciPopSI=$5E;{©POP SIî,88+}
ciPopSP=$5C;{©POP SPî,88+}
ciPopSS=$17;{©POP SSî,88+}
ciPopA=$61;{©POPAî,286+}
ciPopF=$9D;{©POPFî,88+}
ciPushA=$60;{©PUSHAî,286+}
ciPushAX=$50;{©PUSH AXî,88+}
ciPushBP=$55;{©PUSH BPî,88+}
ciPushBX=$53;{©PUSH BXî,88+}
ciPushCS=$0E;{©PUSH CSî,88+}
ciPushCX=$51;{©PUSH CXî,88+}
ciPushDI=$57;{©PUSH DIî,88+}
ciPushDS=$1E;{©PUSH DSî,88+}
ciPushDX=$52;{©PUSH DXî,88+}
ciPushEAX=$5066;{©PUSH EAXî,386+}
ciPushEBX=$5366;{©PUSH EBXî,386+}
ciPushECX=$5166;{©PUSH ECXî,386+}
ciPushEDX=$5266;{©PUSH EDXî,386+}
ciPushEDI=$66+(ciPushDI shl 8);{©PUSH EDIî,386+}
ciPushES=$06;{©PUSH ESî,88+}
ciPushFS=$A00F;{©PUSH FSî,386+}
ciPushGS=$A80F;{©PUSH GSî, 386+}
ciPushMemB=$6A;{©PUSH ??î, 286+}
ciPushSI=$56;{©PUSH SIî,88+}
ciPushSP=$54;{©PUSH SPî,88+}
ciPushSS=$16;{©PUSH SSî,88+}
ciPushF=$9C;{©PUSHFî,88+}
ciRepNZ=$F2;{©REPNZ ?î,88+}
ciRep=$F3;{©REP ?î,88+}
ciRetF=$CB;{©RETFî,88+}
ciRetN=$C3;{©RETNî,88+}
ciRet=ciRetN;{©RETNîou©RETFî,88+}
ciSAHF=$9E;{©SAHFî,88+}
ciSbbAL_=$1C;{©SBB AL,??hî,286+}
ciSbbAX_=$1D;{©SBB AX,????hî,286+}
ciSCASB=$AE;{©SCASBî,88+}
ciSCASD=$AF66;{©SCASSî,386+}
ciSCASW=$AF;{©SCASWî,88+}
ciSHR_AX_=$E8C1;{©SHR AX,?î,88+}
ciSHR_CX_=$E9C1;{©SHR CX,?î,88+}
ciSubAL_=$2C;{ ©SUB AL,??hî,286+}
ciSubAX_=$2D;{©SUB AX,????hî,286+}
ciSS=$36;{©SSî,88+}
ciSTC=$F9;{©STCî,88+}
ciSTD=$FD;{©STDî,88+}
ciSTI=$FB;{©STIî,88+}
ciSTOSB=$AA;{©STOSBî,88+}
ciSTOSD=$AB66;{©STOSDî,386+}
ciSTOSW=$AB;{©STOSWî,88+}
ciXchgAXnBP=$95;{©XCHG AX,BPî,88+}
ciXchgAXnBX=$93;{©XCHG AX,BXî,88+}
ciXchgAXnCX=$91;{©XCHG AX,CXî,88+}
ciXchgAXnDI=$97;{©XCHG AX,DIî,88+}
ciXchgAXnDX=$92;{©XCHG AX,DXî,88+}
ciXchgAXnSI=$96;{©XCHG AX,SIî,88+}
ciXchgAXnSP=$94;{©XCHG AX,SPî,88+}
ciXchgEAX_DS_SI=$048B663E;{©XCHG EAX,DS:[SI]î,386+}
ciXlat=$D7;{©XLATî,88+}
ciXOR_=$81;{©XOR ?,?î,88+}
ciXOR_AL_=$34;{©XOR AL,??hî,286+}
ciXOR_AX_=$35;{©XOR AX,????hî,286+}
Const
RegWord:Array[0..7]of String[2]=('AX','CX','DX','BX','SP','BP','SI','DI');
RegByte:Array[0..7]of String[2]=('AL','CL','DL','BL','AH','CH','DH','BH');
RegS:Array[0..3]of String[2]=('ES','CS','SS','DS');
BasS:Array[0..7]of String[3]=('ADD','OR', 'ADC','SBB','AND','SUB','XOR','CMP');
RotS:Array[0..7]of String[3]=('ROL','ROR','RCL','RCR','SHL','SHR','SAR','SAL');
SmpS:Array[2..7]of String[4]=('NOT','NEG','MUL','IMUL','DIV','IDIV');
PtrS:Array[0..1]of String[9]=('Byte Ptr ','Word Ptr ');
PrcS:Array[0..1]of String[9]=('Near Ptr ','Far Ptr ');
FlgS:Array[0..$F]of String[2]=(
{0} 'O ',
{1} 'NO',
{2} 'C ',
{3} 'NC',
{4} 'Z ',
{5} 'NZ',
{6} 'BE',
{7} 'A ',
{8} 'S ',
{9} 'NS',
{A} 'P ',
{B} 'NP',
{C} 'L ',
{D} 'NL',
{E} 'G ',
{F} 'NG');
Instr80x86:Array[0..$FF]of Instr80x86Rec=(
(BaseSize:$02;AsmName:'ADD'; AsmName66h:''; AsmName0Fh:'';Param:True), { [00h] ADD mem/reg,regbyte }
(BaseSize:$02;AsmName:'ADD'; AsmName66h:''; AsmName0Fh:'';Param:True), { [01h] ADD }
(BaseSize:$02;AsmName:'ADD'; AsmName66h:''; AsmName0Fh:'';Param:True), { [02h] ADD }
(BaseSize:$02;AsmName:'ADD'; AsmName66h:''; AsmName0Fh:'';Param:True), { [03h] ADD }
(BaseSize:$02;AsmName:'ADD'; AsmName66h:''; AsmName0Fh:'';Param:True), { [04h] ADD AL,kk }
(BaseSize:$03;AsmName:'ADD'; AsmName66h:''; AsmName0Fh:'';Param:True), { [05h] ADD AX,jjkk }
(BaseSize:$01;AsmName:'PUSH ES'; AsmName66h:''; AsmName0Fh:'CLTS';Param:False), { [06h] PUSH ES }
(BaseSize:$01;AsmName:'POP ES'; AsmName66h:''; AsmName0Fh:'LOADALL';Param:False), { [07h] POP ES }
(BaseSize:$02;AsmName:'OR'; AsmName66h:''; AsmName0Fh:'WBINVD';Param:True), { [08h] OR }
(BaseSize:$02;AsmName:'OR'; AsmName66h:''; AsmName0Fh:'INVD';Param:True), { [09h] OR }
(BaseSize:$02;AsmName:'OR'; AsmName66h:''; AsmName0Fh:'';Param:True), { [0Ah] OR }
(BaseSize:$02;AsmName:'OR'; AsmName66h:''; AsmName0Fh:'';Param:True), { [0Bh] OR }
(BaseSize:$02;AsmName:'OR'; AsmName66h:''; AsmName0Fh:'';Param:True), { [0Ch] OR AL,kk }
(BaseSize:$03;AsmName:'OR'; AsmName66h:''; AsmName0Fh:'';Param:True), { [0Dh] OR AX,jjkk }
(BaseSize:$01;AsmName:'PUSH CS'; AsmName66h:''; AsmName0Fh:'';Param:False), { [0Eh] PUSH CS }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [0Fh] Inutilise }
(BaseSize:$02;AsmName:'ADC'; AsmName66h:''; AsmName0Fh:'';Param:True), { [10h] ADC }
(BaseSize:$02;AsmName:'ADC'; AsmName66h:''; AsmName0Fh:'';Param:True), { [11h] ADC }
(BaseSize:$02;AsmName:'ADC'; AsmName66h:''; AsmName0Fh:'';Param:True), { [12h] ADC }
(BaseSize:$02;AsmName:'ADC'; AsmName66h:''; AsmName0Fh:'';Param:True), { [13h] ADC }
(BaseSize:$02;AsmName:'ADC'; AsmName66h:''; AsmName0Fh:'';Param:True), { [14h] ADC AL,kk }
(BaseSize:$03;AsmName:'ADC'; AsmName66h:''; AsmName0Fh:'';Param:True), { [15h] ADC AX,jjkk }
(BaseSize:$01;AsmName:'PUSH SS'; AsmName66h:''; AsmName0Fh:'';Param:False), { [16h] PUSH SS }
(BaseSize:$01;AsmName:'POP SS'; AsmName66h:''; AsmName0Fh:'';Param:False), { [17h] POP SS }
(BaseSize:$02;AsmName:'SBB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [18h] SBB }
(BaseSize:$02;AsmName:'SBB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [19h] SBB }
(BaseSize:$02;AsmName:'SBB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [1Ah] SBB }
(BaseSize:$02;AsmName:'SBB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [1Bh] SBB }
(BaseSize:$02;AsmName:'SBB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [1Ch] SBB AL,kk }
(BaseSize:$03;AsmName:'SBB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [1Dh] SBB AX,jjkk }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [1Eh] PUSH DS }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [1Fh] POP DS }
(BaseSize:$02;AsmName:'AND'; AsmName66h:''; AsmName0Fh:'';Param:True), { [20h] AND }
(BaseSize:$02;AsmName:'AND'; AsmName66h:''; AsmName0Fh:'';Param:True), { [21h] AND }
(BaseSize:$02;AsmName:'AND'; AsmName66h:''; AsmName0Fh:'';Param:True), { [22h] AND }
(BaseSize:$02;AsmName:'AND'; AsmName66h:''; AsmName0Fh:'';Param:True), { [23h] AND }
(BaseSize:$02;AsmName:'AND'; AsmName66h:''; AsmName0Fh:'';Param:True), { [24h] AND AL,kk }
(BaseSize:$03;AsmName:'AND'; AsmName66h:''; AsmName0Fh:'';Param:True), { [25h] AND AX,jjkk }
(BaseSize:$01;AsmName:'ES:'; AsmName66h:''; AsmName0Fh:'';Param:False), { [26h] ES: }
(BaseSize:$01;AsmName:'DAA'; AsmName66h:''; AsmName0Fh:'';Param:True), { [27h] DAA }
(BaseSize:$02;AsmName:'SUB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [28h] SUB }
(BaseSize:$02;AsmName:'SUB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [29h] SUB }
(BaseSize:$02;AsmName:'SUB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [2Ah] SUB }
(BaseSize:$02;AsmName:'SUB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [2Bh] SUB }
(BaseSize:$02;AsmName:'SUB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [2Ch] SUB AL,kk }
(BaseSize:$03;AsmName:'SUB'; AsmName66h:''; AsmName0Fh:'';Param:True), { [2Dh] SUB AX,jjkk }
(BaseSize:$01;AsmName:'CS:'; AsmName66h:''; AsmName0Fh:'';Param:False), { [2Eh] CS: }
(BaseSize:$01;AsmName:'DAS'; AsmName66h:''; AsmName0Fh:'';Param:False), { [2Fh] DAS }
(BaseSize:$02;AsmName:'XOR'; AsmName66h:''; AsmName0Fh:'WRMSR';Param:True), { [30h] XOR }
(BaseSize:$02;AsmName:'XOR'; AsmName66h:''; AsmName0Fh:'RDTSC';Param:True), { [31h] XOR }
(BaseSize:$02;AsmName:'XOR'; AsmName66h:''; AsmName0Fh:'RDMSR';Param:True), { [32h] XOR }
(BaseSize:$02;AsmName:'XOR'; AsmName66h:''; AsmName0Fh:'RDPMC';Param:True), { [33h] XOR }
(BaseSize:$02;AsmName:'XOR'; AsmName66h:''; AsmName0Fh:'';Param:True), { [34h] XOR AL,kk }
(BaseSize:$03;AsmName:'XOR'; AsmName66h:''; AsmName0Fh:'';Param:True), { [35h] XOR AX,jjkk }
(BaseSize:$01;AsmName:'SS:'; AsmName66h:''; AsmName0Fh:'';Param:False), { [36h] SS: }
(BaseSize:$01;AsmName:'AAA'; AsmName66h:''; AsmName0Fh:'';Param:False), { [37h] AAA }
(BaseSize:$02;AsmName:'CMP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [38h] CMP }
(BaseSize:$02;AsmName:'CMP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [39h] CMP }
(BaseSize:$02;AsmName:'CMP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [3Ah] CMP }
(BaseSize:$02;AsmName:'CMP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [3Bh] CMP }
(BaseSize:$02;AsmName:'CMP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [3Ch] CMP AL,kk }
(BaseSize:$03;AsmName:'CMP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [3Dh] CMP AX,jjkk }
(BaseSize:$01;AsmName:'DS:'; AsmName66h:''; AsmName0Fh:'';Param:False), { [3Eh] DS: }
(BaseSize:$01;AsmName:'AAS'; AsmName66h:''; AsmName0Fh:'';Param:False), { [3Fh] AAS }
(BaseSize:$01;AsmName:'INC AX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [40h] INC AX }
(BaseSize:$01;AsmName:'INC CX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [41h] INC CX }
(BaseSize:$01;AsmName:'INC DX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [42h] INC DX }
(BaseSize:$01;AsmName:'INC BX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [43h] INC BX }
(BaseSize:$01;AsmName:'INC SP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [44h] INC SP }
(BaseSize:$01;AsmName:'INC BP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [45h] INC BP }
(BaseSize:$01;AsmName:'INC SI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [46h] INC SI }
(BaseSize:$01;AsmName:'INC DI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [47h] INC DI }
(BaseSize:$01;AsmName:'DEC AX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [48h] DEC AX }
(BaseSize:$01;AsmName:'DEC CX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [49h] DEC CX }
(BaseSize:$01;AsmName:'DEC DX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [4Ah] DEC DX }
(BaseSize:$01;AsmName:'DEC BX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [4Bh] DEC BX }
(BaseSize:$01;AsmName:'DEC SP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [4Ch] DEC SP }
(BaseSize:$01;AsmName:'DEC BP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [4Dh] DEC BP }
(BaseSize:$01;AsmName:'DEC SI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [4Eh] DEC SI }
(BaseSize:$01;AsmName:'DEC DI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [4Fh] DEC DI }
(BaseSize:$01;AsmName:'PUSH AX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [50h] PUSH AX }
(BaseSize:$01;AsmName:'PUSH CX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [51h] PUSH CX }
(BaseSize:$01;AsmName:'PUSH DX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [52h] PUSH DX }
(BaseSize:$01;AsmName:'PUSH BX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [53h] PUSH BX }
(BaseSize:$01;AsmName:'PUSH SP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [54h] PUSH SP }
(BaseSize:$01;AsmName:'PUSH BP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [55h] PUSH BP }
(BaseSize:$01;AsmName:'PUSH SI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [56h] PUSH SI }
(BaseSize:$01;AsmName:'PUSH DI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [57h] PUSH DI }
(BaseSize:$01;AsmName:'POP AX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [58h] POP AX }
(BaseSize:$01;AsmName:'POP CX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [59h] POP CX }
(BaseSize:$01;AsmName:'POP DX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [5Ah] POP DX }
(BaseSize:$01;AsmName:'POP BX'; AsmName66h:''; AsmName0Fh:'';Param:False), { [5Bh] POP BX }
(BaseSize:$01;AsmName:'POP SP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [5Ch] POP SP }
(BaseSize:$01;AsmName:'POP BP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [5Dh] POP BP }
(BaseSize:$01;AsmName:'POP SI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [5Eh] POP SI }
(BaseSize:$01;AsmName:'POP DI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [5Fh] POP DI }
(BaseSize:$01;AsmName:'PUSHA'; AsmName66h:'PUSHAD'; AsmName0Fh:'';Param:False), { [60h] PUSHA }
(BaseSize:$01;AsmName:'POPA'; AsmName66h:'POPAD'; AsmName0Fh:'';Param:False), { [61h] POPA }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [62h] BOUND }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [63h] ARPL }
(BaseSize:$01;AsmName:'FS:'; AsmName66h:''; AsmName0Fh:'';Param:False), { [64h] FS: }
(BaseSize:$01;AsmName:'GS:'; AsmName66h:''; AsmName0Fh:'';Param:False), { [65h] GS: }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [66h] 386... }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [67h] 386... }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [68h] PUSH Immediat Word }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [69h] IMUL }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [6Ah] PUSH Immediat Byte }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [6Bh] IMUL }
(BaseSize:$01;AsmName:'INSB'; AsmName66h:''; AsmName0Fh:'';Param:False), { [6Ch] INSB }
(BaseSize:$01;AsmName:'INSW'; AsmName66h:'INSD'; AsmName0Fh:'';Param:False), { [6Dh] INSW }
(BaseSize:$01;AsmName:'OUTSB'; AsmName66h:''; AsmName0Fh:'';Param:False), { [6Eh] OUTSB }
(BaseSize:$01;AsmName:'OUTSW'; AsmName66h:'OUTSD'; AsmName0Fh:'';Param:False), { [6Fh] OUTSW }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [70h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [71h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [72h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [73h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [74h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [75h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [76h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'EMMS';Param:True), { [77h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [78h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [79h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [7Ah] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [7Bh] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [7Ch] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [7Dh] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [7Eh] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [7Fh] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [80h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [81h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [82h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [83h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [84h] TEST }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [85h] TEST }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [86h] XCHG }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [87h] XCHG }
(BaseSize:$02;AsmName:'MOV'; AsmName66h:''; AsmName0Fh:'';Param:True), { [88h] MOV }
(BaseSize:$02;AsmName:'MOV'; AsmName66h:''; AsmName0Fh:'';Param:True), { [89h] MOV }
(BaseSize:$02;AsmName:'MOV'; AsmName66h:''; AsmName0Fh:'';Param:True), { [8Ah] MOV }
(BaseSize:$02;AsmName:'MOV'; AsmName66h:''; AsmName0Fh:'';Param:True), { [8Bh] MOV }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [8Ch] MOV [],ES }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [8Dh] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [8Eh] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [8Fh] }
(BaseSize:$01;AsmName:'NOP'; AsmName66h:''; AsmName0Fh:'';Param:False), { [90h] NOP }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [91h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [92h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [93h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [94h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [95h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [96h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [97h] }
(BaseSize:$01;AsmName:'CBW'; AsmName66h:'CDWE'; AsmName0Fh:'';Param:True), { [98h] }
(BaseSize:$01;AsmName:'CWD'; AsmName66h:'CDQ'; AsmName0Fh:'';Param:True), { [99h] }
(BaseSize:$05;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [9Ah] CALL FAR iijj:kkll }
(BaseSize:$01;AsmName:'WAIT'; AsmName66h:''; AsmName0Fh:'';Param:True), { [9Bh] }
(BaseSize:$01;AsmName:'PUSHF'; AsmName66h:'PUSHFD'; AsmName0Fh:'';Param:True), { [9Ch] }
(BaseSize:$01;AsmName:'POPF'; AsmName66h:'POPFD'; AsmName0Fh:'';Param:True), { [9Dh] }
(BaseSize:$01;AsmName:'SAHF'; AsmName66h:''; AsmName0Fh:'';Param:True), { [9Eh] }
(BaseSize:$01;AsmName:'LAHF'; AsmName66h:''; AsmName0Fh:'';Param:True), { [9Fh] }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'PUSH FS';Param:True), { [A0h] }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'POP FS';Param:True), { [A1h] }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'CPUID';Param:True), { [A2h] MOV [iijj],AL }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [A3h] }
(BaseSize:$01;AsmName:'MOVSB'; AsmName66h:''; AsmName0Fh:'';Param:False), { [A4h] MOVSB }
(BaseSize:$01;AsmName:'MOVSW'; AsmName66h:'MOVSD'; AsmName0Fh:'';Param:False), { [A5h] MOVSW }
(BaseSize:$01;AsmName:'CMPSB'; AsmName66h:''; AsmName0Fh:'';Param:False), { [A6h] CMPSB }
(BaseSize:$01;AsmName:'CMPSD'; AsmName66h:'CMPSD'; AsmName0Fh:'';Param:False), { [A7h] CMPSW }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'PUSH GS';Param:True), { [A8h] TEST AL,ii }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'POP GS';Param:True), { [A9h] TEST AX,iijj }
(BaseSize:$01;AsmName:'STOSB'; AsmName66h:''; AsmName0Fh:'RSM';Param:False), { [AAh] STOSB }
(BaseSize:$01;AsmName:'STOSW'; AsmName66h:'STOSD'; AsmName0Fh:'';Param:False), { [ABh] STOSW }
(BaseSize:$01;AsmName:'LODSB'; AsmName66h:''; AsmName0Fh:'';Param:False), { [ACh] LODSB }
(BaseSize:$01;AsmName:'LODSW'; AsmName66h:'LODSD'; AsmName0Fh:'';Param:False), { [ADh] LODSW }
(BaseSize:$01;AsmName:'SCASB'; AsmName66h:''; AsmName0Fh:'';Param:False), { [AEh] SCASB }
(BaseSize:$01;AsmName:'SCASW'; AsmName66h:'SCASD'; AsmName0Fh:'';Param:False), { [AFh] SCASW }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B0h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B1h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B2h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B3h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B4h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B5h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B6h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B7h] }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B8h] MOV AX,jjkk }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [B9h] MOV CX,jjkk }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [BAh] MOV DX,jjkk }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [BBh] MOV BX,jjkk }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [BCh] MOV SP,jjkk }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [BDh] MOV BP,jjkk }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [BEh] MOV SI,jjkk }
(BaseSize:$03;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [BFh] MOV DI,jjkk }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [C0h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [C1h] }
(BaseSize:$03;AsmName:'RETN '; AsmName66h:''; AsmName0Fh:'';Param:True), { [C2h] RETN iijj }
(BaseSize:$01;AsmName:'RETN'; AsmName66h:''; AsmName0Fh:'';Param:False), { [C3h] RETN }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [C4h] LES }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [C5h] LDS }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [C6h] MOV }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [C7h] MOV }
(BaseSize:$04;AsmName:'ENTER '; AsmName66h:''; AsmName0Fh:'';Param:True), { [C8h] ENTER }
(BaseSize:$01;AsmName:'LEAVE'; AsmName66h:''; AsmName0Fh:'';Param:True), { [C9h] }
(BaseSize:$03;AsmName:'RETF '; AsmName66h:''; AsmName0Fh:'';Param:True), { [CAh] }
(BaseSize:$01;AsmName:'RETF'; AsmName66h:''; AsmName0Fh:'';Param:True), { [CBh] }
(BaseSize:$01;AsmName:'INT 03h'; AsmName66h:''; AsmName0Fh:'';Param:True), { [CCh] }
(BaseSize:$02;AsmName:'INT '; AsmName66h:''; AsmName0Fh:'';Param:True), { [CDh] }
(BaseSize:$01;AsmName:'INTO'; AsmName66h:''; AsmName0Fh:'';Param:True), { [CEh] }
(BaseSize:$01;AsmName:'IRET'; AsmName66h:'IRETD'; AsmName0Fh:'';Param:True), { [CFh] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [D0h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [D1h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [D2h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [D3h] }
(BaseSize:$02;AsmName:'AAM'; AsmName66h:''; AsmName0Fh:'';Param:True), { [D4h] }
(BaseSize:$02;AsmName:'AAD'; AsmName66h:''; AsmName0Fh:'';Param:True), { [D5h] AAD,... }
(BaseSize:$01;AsmName:'SETALC'; AsmName66h:''; AsmName0Fh:'';Param:True), { [D6h] }
(BaseSize:$01;AsmName:'XLAT'; AsmName66h:''; AsmName0Fh:'';Param:True), { [D7h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [D8h] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [D9h] Float... }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [DAh] }
(BaseSize:$02;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [DBh] Float... }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [DCh] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [DDh] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [DEh] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [DFh] }
(BaseSize:$02;AsmName:'LOOPNZ'; AsmName66h:''; AsmName0Fh:'';Param:True), { [E0h] LOOPNZ ii }
(BaseSize:$02;AsmName:'LOOPZ'; AsmName66h:''; AsmName0Fh:'';Param:True), { [E1h] LOOPZ ii }
(BaseSize:$02;AsmName:'LOOP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [E2h] LOOP ii }
(BaseSize:$02;AsmName:'JCXZ'; AsmName66h:'JECXZ'; AsmName0Fh:'';Param:True), { [E3h] JCXZ ii }
(BaseSize:$02;AsmName:'IN'; AsmName66h:''; AsmName0Fh:'';Param:True), { [E4h] IN AL,ii }
(BaseSize:$02;AsmName:'IN'; AsmName66h:''; AsmName0Fh:'';Param:True), { [E5h] IN AX,ii }
(BaseSize:$02;AsmName:'OUT'; AsmName66h:''; AsmName0Fh:'';Param:True), { [E6h] OUT AL,ii }
(BaseSize:$02;AsmName:'OUT'; AsmName66h:''; AsmName0Fh:'';Param:True), { [E7h] OUT AX,ii }
(BaseSize:$03;AsmName:'CALL '; AsmName66h:''; AsmName0Fh:'';Param:True), { [E8h] CALL $+jjkk }
(BaseSize:$03;AsmName:'JMP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [E9h] JMP $+jjkk }
(BaseSize:$05;AsmName:'JMP FAR'; AsmName66h:''; AsmName0Fh:'';Param:True), { [EAh] JMP FAR iijj:kkll }
(BaseSize:$02;AsmName:'JMP'; AsmName66h:''; AsmName0Fh:'';Param:True), { [EBh] JMP ii }
(BaseSize:$01;AsmName:'IN AL,DX'; AsmName66h:''; AsmName0Fh:'';Param:True), { [ECh] }
(BaseSize:$01;AsmName:'IN AX,DX'; AsmName66h:'IN EAX,DX';AsmName0Fh:'';Param:True), { [EDh] }
(BaseSize:$01;AsmName:'OUT DX,AL';AsmName66h:''; AsmName0Fh:'';Param:True), { [EEh] }
(BaseSize:$01;AsmName:'OUT DX,'; AsmName66h:''; AsmName0Fh:'';Param:True), { [EFh] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [F0h] LOCK ? }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [F1h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [F2h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [F3h] }
(BaseSize:$01;AsmName:'HLT'; AsmName66h:''; AsmName0Fh:'';Param:False), { [F4h] HLT }
(BaseSize:$01;AsmName:'CMC'; AsmName66h:''; AsmName0Fh:'';Param:False), { [F5h] CMC }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [F6h] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [F7h] }
(BaseSize:$01;AsmName:'CLC'; AsmName66h:''; AsmName0Fh:'';Param:False), { [F8h] CLC }
(BaseSize:$01;AsmName:'STC'; AsmName66h:''; AsmName0Fh:'';Param:False), { [F9h] STC }
(BaseSize:$01;AsmName:'CLI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [FAh] CLI }
(BaseSize:$01;AsmName:'STI'; AsmName66h:''; AsmName0Fh:'';Param:False), { [FBh] STI }
(BaseSize:$01;AsmName:'CLD'; AsmName66h:''; AsmName0Fh:'';Param:False), { [FCh] CLD }
(BaseSize:$01;AsmName:'STD'; AsmName66h:''; AsmName0Fh:'';Param:False), { [FDh] STD }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True), { [FEh] }
(BaseSize:$01;AsmName:''; AsmName66h:''; AsmName0Fh:'';Param:True) { [FFh] }
);
Type
TByte=Array[0..65519]of Byte;
Var
Language:(_French,_English,_Germany,_Italian,_Spain);
TmpLanguage:String;
CommandFound,Terminated:Boolean;
CurrProgName:String;
CmdStr:String;
CurrCommand,ParamList:String;
I,J:Byte;
StartPointer:Word;
Sector:^TByte;
SizeSector:Word;
Function PadRight(S:String;Space:Byte):String;
Var
I:Byte;
Begin
If Length(S)<Space Then For I:=Length(S)+1 to Space do S:=S+' ';
PadRight:=S;
End;
Function TrimL(S:String):String;
Var
I:Byte;
Begin
For I:=1to Length(S)do Begin
If S[I]<>' 'Then Begin
TrimL:=Copy(S,I,255);
Exit;
End;
End;
TrimL:=S;
End;
Function StrToUpper(S:String):String;
Var
I:Byte;
Begin
For I:=1 to Length(S)do Begin
If S[I] in['a'..'z']Then S[I]:=Chr(Ord(S[I])-32);
End;
StrToUpper:=S;
End;
Function GetHex(S:String;Var Result:Word):Boolean;
Var
i,j,k:Integer;
Begin
GetHex:=False;j:=0;Result:=0;
For i:=1to Length(S)do Begin
If S[i]>' 'Then begin
If Not(S[I]in['0'..'9','A'..'F'])Then Exit;
If S[i]>'9'Then S[i]:=Char(Byte(S[i])-7);
Result:=(Result shl 4)+(Byte(S[i])and $f);
Inc(j);
End;
End;
If j>0Then GetHex:=True;
End;
Procedure ExtractCommand;
Var
I:Byte;
Begin
For I:=1 to Length(CmdStr)do Begin
If Not(CmdStr[I]in['A'..'Z','a'..'z','_','-','0'..'9'])Then Begin
CurrCommand:=StrToUpper(Copy(CmdStr,1,I-1));
ParamList:=TrimL(Copy(CmdStr,I,255));
Exit;
End;
End;
CurrCommand:=StrToUpper(CmdStr);
ParamList:='';
End;
Function ExtractParam(Index:Byte):String;
Var
Count:Word;
LocalIndex:Word;
l:Byte;
Temp:String;
Begin
Temp:='';Count:=1;LocalIndex:=1;l:=0;
While Count<=Length(ParamList)do Begin
If Not(ParamList[Count] in [' ',#9])then Begin
If LocalIndex=Index Then Begin
While (Count<=Length(ParamList)) and (Not(ParamList[count] in[' ',#9])) and (l < 256) do Begin
Temp:=Temp+ParamList[count];
Inc(l);
Inc(Count);
end;
Temp[0]:=Char(l);
ExtractParam:=Temp;
Exit;
End;
While (Count<=Length(ParamList)) and (Not(ParamList[count] in [' ',#9])) do Inc(Count);
Inc(LocalIndex);
End;
If Count>=Length(ParamList)Then Break;
Inc(Count);
End;
ExtractParam:=Temp;
End;
Function ByteHex2Str(value:Byte):String;
Const
matrix:Array[0..15]of Char = ('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
Begin
ByteHex2Str:=matrix[(value shr 4) and $0F]+matrix[value and $F];
End;
Function HexWord2Str(value:Word):String;Begin
HexWord2Str:=ByteHex2Str(Hi(value))+ByteHex2Str(Lo(value));
End;
Function HexByte(X:Byte):String;Begin
HexByte:=ByteHex2Str(X)+'h';
End;
Function HexWord(X:Word):String;Begin
HexWord:=HexWord2Str(X)+'h';
End;
Function HalfWord(I:Byte):String;Near;
Var
W:Word;
Begin
If I<$80Then W:=0
Else W:=$FF00;
W:=W or I;
HalfWord:=HexWord(W);
End;
Function Decode(Var Buf;Var I:Word):String;
Label
ReStart,Rep,99,_999,Xit;
Var
T:Array[0..65520] of Byte Absolute Buf;
CurrCode,X2,X3:Byte;
S:String;
XSeg,Prefix:Byte;
X386,Wd:Boolean;
PS,OldPS:^String;
Procedure DB;Begin
If Chr(CurrCode)in[' ','A'..'z']Then S:='DB '''+Chr(CurrCode)+''''
Else
Begin
S:='DB '+HexByte(CurrCode);
End;
End;
Function TWd(X:Word):Word;Begin
TWd:=T[X]+T[X+1]*256;
End;
Function SegS:String;Begin
Case(XSeg)of
ciCS:SegS:='CS:';
ciDS:SegS:='DS:';
ciES:SegS:='ES:';
ciFS:SegS:='FS:';
ciGS:SegS:='GS:';
ciSS:SegS:='SS:';
Else SegS:='';
End;
End;
Function JmpAddr:String;Begin
If T[I+1]>$7FThen JmpAddr:=HexWord(I-($100-2-T[I+1]))
Else JmpAddr:=HexWord(I+2+T[I+1]);
End;
Function OfsByte:String;Begin
If T[I]>=$7FThen OfsByte:='-'+HexByte($100-T[I])
Else OfsByte:='+'+HexByte(T[I]);
End;
Function OfsWord:String;Begin
If T[I]>$7FFFThen OfsWord:='-'+HexWord($10000-TWd(I))
Else OfsWord:='+'+HexWord(TWd(I));
End;
Function RegxWord(I:Byte):String;Begin
If(X386)Then RegxWord:='E'+RegWord[I]
Else RegxWord:=RegWord[I];
End;
Function D:String;Begin
If(X386)Then D:='D'
Else D:=''
End;
Function LoadAddr:String;
Const
SAddr:Array[0..7]of String[7]=(
'[BX+SI]',
'[BX+DI]',
'[BP+SI]',
'[BP+DI]',
'[SI]',
'[DI]',
'[BP]',
'[BX]'
);
Var
S:String;
X2:Byte;
Begin
S:=SegS+SAddr[T[I+1]and$7];
X2:=(T[I+1]shr 3)and 7;
If(CurrCode>=$FE)and(X2 in[2..5])Then LoadAddr:=PrcS[X2 and 1]+S
Else
Begin
S:=PtrS[CurrCode and 1]+S;
If Boolean(CurrCode and 1)Then S:=D+S;
LoadAddr:=S;
End;
End;
Function WordAddr:String;Begin
WordAddr:=SegS+'['+HexWord(TWd(I+1))+']'
End;
Function XtrkAddr:String;
Var
S:String;
Begin
S:=LoadAddr;
Case T[I+1]of
0..$3F:Inc(I);
$40..$7F:Begin
S:=Copy(S,1,Length(S)-1);
Inc(I,2);
S:=S+OfsByte+']';
End;
Else Begin { 80h . BFh }
S:=Copy(S,1,Length(S)-1);
Inc(I,2);
S:=S+OfsWord;
Inc(I);
S:=S+']';
End;
End;
XtrkAddr:=S;
End;
Var First:Boolean;
Function Register:String;
Label 1;
Var
T2:Byte;
Begin
T2:=T[I+1];
If CurrCode=$8EThen Begin
If(First)Then Begin
Register:=RegS[(T2 and$3F)shr 3];
First:=False;
Exit;
End;
Goto 1;
End
Else
If CurrCode=$8CThen Begin
If Not(First)Then Begin
Register:=RegS[(T2 and$3F)shr 3];
First:=True;
Exit;
End;
1:Register:=RegxWord(T2 and 7)
End
Else
Begin
If CurrCode in[$E4..$E7]Then T2:=0;
Case(T2)of
$40..$7F:T2:=(T2 and$3F)shr 3;
$C0..$FF:Begin
If(First=True)Then T2:=T2 and 7
Else T2:=(T2 and$3F)shr 3;
First:=False;
End;
Else T2:=(T2 shr 3)and 7;
End;
If CurrCode and 1=1Then Register:=RegxWord(T2)
Else Register:=RegByte[T2];
End;
End;
Function XtrkStandard:String;
Label Swp;
Var
R,S:String;
Wd:Boolean;
Reg:Byte;
Begin
Wd:=Boolean(CurrCode and 1);
Case T[I+1]of
$06:Reg:=0;
$0E:Reg:=1;
$16:Reg:=2;
$1E:Reg:=3;
$26:Reg:=4;
$2E:Reg:=5;
$36:Reg:=6;
$3E:Reg:=7;
$40..$7F:Begin
S:=XtrkAddr;
Dec(I,2);
R:=Register;
Inc(I);
Goto Swp;
End;
$C0..$FF:Begin
XtrkStandard:=Register+','+Register;
Exit;
End;
Else Begin
R:=Register;
S:=LoadAddr;
Goto Swp;
End;
End;
If T[I+1]in[$06,$0E,$16,$1E,$26,$2E,$36,$3E]Then Begin
If CurrCode in[$8C,$8E]Then Begin
R:=RegS[Reg and 3];
Wd:=True;
End
Else
If(Wd)Then R:=RegxWord(Reg)
Else R:=RegByte[Reg];
Inc(I,2);
S:=PtrS[Byte(Wd)]+SegS+'[';
S:=S+HexWord(TWd(I))+']';
Swp:If CurrCode and 2=0Then XtrkStandard:=S+','+R
Else XtrkStandard:=R+','+S;
End;
End;
Function _286A:String;Begin
If T[I]and 1=1Then _286A:=RegxWord(0)+','+HexWord(TWd(I+1))
Else _286A:='AL,'+HexByte(T[I+1])
End;
Procedure UpDateBasHome(CurrCode:Byte);Begin
If CurrCode>=$88Then S:='MOV'
Else S:=BasS[CurrCode];
S:=S+' ';
End;
Begin
First:=True;Prefix:=0;XSeg:=0;X386:=False;
ReStart:
CurrCode:=T[I];
PS:=@Instr80x86[CurrCode].AsmName;
OldPS:=PS;
If(X386)Then Begin
PS:=@Instr80x86[CurrCode].AsmName66h;
If PS^=''Then PS:=@Instr80x86[CurrCode].AsmName;
End;
S:=PS^;
Case(CurrCode)of
$00,$01,$02,$03,$04,$05,$08,$09,$0A,$0B,$0C,$0D,
$10,$11,$12,$13,$14,$15,$18,$19,$1A,$1B,$1C,$1D,
$20,$21,$22,$23,$24,$25,$28,$29,$2A,$2B,$2C,$2D,
$30,$31,$32,$33,$34,$35,$38,$39,$3A,$3B,$3C,$3D,
$88,$89,$8A,$8B:Begin
If CurrCode>=$88Then UpDateBasHome(CurrCode)
Else UpDateBasHome(CurrCode shr 3);
If CurrCode and 7>3Then S:=S+_286A
Else S:=S+XtrkStandard;
Goto Xit;
End;
$06,$07,$0E,$16,$1E,$1F:Begin
S:=RegS[CurrCode shr 3];
Case CurrCode and$7of
6:S:='PUSH '+S;
7:S:='POP '+S;
End;
Goto Xit;
End;
$0F,$17:Begin
PS:=@Instr80x86[CurrCode].AsmName0Fh;
If PS^=''Then DB
Else S:=PS^;
S:=RegxWord(CurrCode and 7);
If CurrCode and 8=8Then S:='DEC '+S
Else S:='INC '+S;
Goto Xit;
End;
$26:Goto _999;
$27:Goto Xit;
$2E:Goto _999;
$2F:Goto Xit;
$36:Goto _999;
$37:Goto Xit;
$3E:Goto _999;
$3F:Goto Xit;
$40,$41,$42,$43,$44,$45,$46,$47,$48,$49,$4A,$4B,$4C,$4D,$4E,$4F:Begin
S:=RegxWord(CurrCode and 7);
If CurrCode and 8=8Then S:='DEC '+S
Else S:='INC '+S;
Goto Xit;
End;
$50,$51,$52,$53,$54,$55,$56,$57:Begin
S:='PUSH '+RegxWord(CurrCode and 7);
Goto Xit;
End;
$58,$59,$5A,$5B,$5C,$5D,$5E,$5F:Begin
S:='POP '+RegxWord(CurrCode and 7);
Goto Xit;
End;
$60:Goto Xit;
$61:Goto Xit;