-
Notifications
You must be signed in to change notification settings - Fork 0
/
GeneratedCode_OriginalAsm.cs
2944 lines (2902 loc) · 96 KB
/
GeneratedCode_OriginalAsm.cs
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
using Spice86.Core.CLI;
using Spice86.Core.Emulator.CPU;
using Spice86.Shared.Emulator.Memory;
using Spice86.Shared.Interfaces;
namespace logo;
/// <summary>
/// Original code generated by the Ghidra script "Spice86CodeGenerator.java"
/// This is 1:1 ASM code, but in C#. Fairly low level.
/// It needed the components below in order to be generated:
/// - CodeGeneratorConfig.json (file to be written by hand)
/// - SPICE86_DUMPS_FOLDER env. variable (for example /home/bob/output/)
/// - spice86dumpMemoryDump.bin (file generated by Spice86, used in a new project in Ghidra, as the source of x86 real-mode assembly code)
/// - spice86dumpExecutionflow.json (file generated by Spice86)
/// - spice86dumpGhidraSymbols.txt (file generated by Spice86)
///
/// Nowadays, the Ghidra script is no more.
/// The Ghidra plugin has replaced it.
/// See Spice86 README for details.
/// </summary>
public partial class GeneratedOverrides_OriginalAsm: CSharpOverrideHelper
{
protected ushort cs1; // 0x1000
protected ushort cs2; // 0xF000
public GeneratedOverrides_OriginalAsm(Dictionary<SegmentedAddress, FunctionInformation> functionInformations, Machine machine, ILoggerService loggerService, Configuration configuration, ushort entrySegment = 0x1000) : base(functionInformations, machine, loggerService, configuration)
{
// Observed cs1 address at generation time is 0x1000. Do not set entrySegment to something else if the program is not relocatable.
this.cs1 = (ushort)(entrySegment + 0x0);
this.cs2 = (ushort)(entrySegment + 0xE000);
DefineGeneratedCodeOverrides();
DetectCodeRewrites();
SetProvidedInterruptHandlersAsOverridden();
}
public Dictionary<SegmentedAddress, FunctionInformation> FunctionInformations => _functionInformations;
public void DefineGeneratedCodeOverrides()
{
// 0x1000
DefineFunction(cs1, 0x0, EntryPoint_OpenLogoHnmFileAndRun_1000_0000_10000, false);
DefineFunction(cs1, 0x970, SetVideoMode_1000_0970_10970, false);
DefineFunction(cs1, 0x9B5, CheckCrtRegisterForChange_1000_09B5_109B5, false);
DefineFunction(cs1, 0x9D8, CommonCirclesWaitFrameAndWriteNextPaletteData_1000_09D8_109D8, false);
DefineFunction(cs1, 0xA22, ConvertLineNumberToArrayIndex_1000_0A22_10A22, false);
DefineFunction(cs1, 0xA3A, Nop_1000_0A3A_10A3A, false);
DefineFunction(cs1, 0xA51, Nop_1000_0A51_10A51, false);
DefineFunction(cs1, 0xB9A, CommonUnknown_1000_0B9A_10B9A, false);
DefineFunction(cs1, 0xC72, CirclesUnknown_display_1000_0C72_10C72, false);
DefineFunction(cs1, 0xCF4, CircleMainLoop_1000_0CF4_10CF4, false);
DefineFunction(cs1, 0xD22, CirclesDrawStep_1000_0D22_10D22, false);
DefineFunction(cs1, 0xD5F, CommonComputeNextVgaPalette_1000_0D5F_10D5F, false);
DefineFunction(cs1, 0xDBC, CirclesUnknown_1000_0DBC_10DBC, false);
DefineFunction(cs1, 0xDDE, CirclesAnimation_1000_0DDE_10DDE, false);
DefineFunction(cs1, 0xE46, HNMUnknown_1000_0E46_10E46, false);
DefineFunction(cs1, 0xE49, CommonUnknown_1000_0E49_10E49, false);
DefineFunction(cs1, 0xE4C, CommonUnknown_1000_0E4C_10E4C, false);
DefineFunction(cs1, 0xE59, CommonUnknown_display_1000_0E59_10E59, false);
DefineFunction(cs1, 0xE86, UpdatePaletteDataAddress_1000_0E86_10E86, false);
DefineFunction(cs1, 0xEAD, CommonUnknown_1000_0EAD_10EAD, false);
DefineFunction(cs1, 0xEB2, split_1000_0EB2_10EB2, false);
DefineFunction(cs1, 0xEBD, CommonUnknown_1000_0EBD_10EBD, false);
DefineFunction(cs1, 0xEFE, CommonUnknown_1000_0EFE_10EFE, false);
DefineFunction(cs1, 0xF30, CommonUnknownSplit_1000_0F30_10F30, false);
DefineFunction(cs1, 0xFA4, CirclesChangeVgaPaletteLoop_1000_0FA4_10FA4, false);
DefineFunction(cs1, 0xFCC, nop_1000_0FCC_10FCC, false);
DefineFunction(cs1, 0xFEA, HNMUnknown_1000_0FEA_10FEA, false);
DefineFunction(cs1, 0x1019, CirclesUnknown_1000_1019_11019, false);
DefineFunction(cs1, 0x105F, CirclesUnknown_1000_105F_1105F, false);
DefineFunction(cs1, 0x1085, CommonCheckForAnyKeyStroke_1000_1085_11085, false);
DefineFunction(cs1, 0x109A, HNMReadFile_AdvancePointer_CloseFile_1000_109A_1109A, false);
DefineFunction(cs1, 0x10F4, Nop_1000_10F4_110F4, false);
DefineFunction(cs1, 0x112D, ghidra_guess_1000_112D_1112D, false);
DefineFunction(cs1, 0x11BD, Nop_1000_11BD_111BD, false);
}
public void DetectCodeRewrites()
{
DefineExecutableArea(0x10000, 0x10090);
DefineExecutableArea(0x10970, 0x10CAF);
DefineExecutableArea(0x10CF4, 0x10ED4);
DefineExecutableArea(0x10EFE, 0x10F07);
DefineExecutableArea(0x10F30, 0x1103A);
DefineExecutableArea(0x1105F, 0x1106E);
DefineExecutableArea(0x11085, 0x11091);
DefineExecutableArea(0x1109A, 0x110C1);
DefineExecutableArea(0x110F4, 0x111C7);
DefineExecutableArea(0xF0008, 0xF000B);
DefineExecutableArea(0xF0014, 0xF0017);
DefineExecutableArea(0xF0020, 0xF0023);
}
public virtual Action EntryPoint_OpenLogoHnmFileAndRun_1000_0000_10000(int loadOffset)
{
// MOV AX,0x111c (1000_0000 / 0x10000)
AX = 0x111C;
// MOV DS,AX (1000_0003 / 0x10003)
DS = AX;
// MOV AX,ES:[0x2] (1000_0005 / 0x10005)
AX = UInt16[ES, 0x2];
// MOV [0x50],AX (1000_0009 / 0x10009)
UInt16[DS, 0x50] = AX;
// MOV BX,0x8 (1000_000C / 0x1000C)
BX = 0x8;
// CALL 0x1000:10f4 (1000_000F / 0x1000F)
NearCall(cs1, 0x12, Nop_1000_10F4_110F4);
// MOV AX,0xc (1000_0012 / 0x10012)
AX = 0xC;
// MOV SI,0x8e (1000_0015 / 0x10015)
SI = 0x8E;
// CMP byte ptr [SI],0x0 (1000_0018 / 0x10018)
Alu8.Sub(UInt8[DS, SI], 0x0);
// JZ 0x1000:0023 (1000_001B / 0x1001B)
if (ZeroFlag)
{
goto label_1000_0023_10023;
}
// CALL 0x1000:112d (1000_001D / 0x1001D)
NearCall(cs1, 0x20, ghidra_guess_1000_112D_1112D);
// MOV AX,[0x8e] (1000_0020 / 0x10020)
AX = UInt16[DS, 0x8E];
label_1000_0023_10023:
// MOV [0x52],AX (1000_0023 / 0x10023)
UInt16[DS, 0x52] = AX;
// MOV DX,0x5a (1000_0026 / 0x10026)
DX = 0x5A;
// CALL 0x1000:105f (1000_0029 / 0x10029)
NearCall(cs1, 0x2C, CirclesUnknown_1000_105F_1105F);
// CMP byte ptr [DI],0x2e (1000_002C / 0x1002C)
Alu8.Sub(UInt8[DS, DI], 0x2E);
// JZ 0x1000:003e (1000_002F / 0x1002F)
if (ZeroFlag)
{
goto label_1000_003E_1003E;
}
// MOV word ptr [DI],0x482e (1000_0031 / 0x10031)
UInt16[DS, DI] = 0x482E;
// MOV word ptr [DI + 0x2],0x4d4e (1000_0035 / 0x10035)
UInt16[DS, (ushort)(DI + 0x2)] = 0x4D4E;
// MOV byte ptr [DI + 0x4],0x0 (1000_003A / 0x1003A)
UInt8[DS, (ushort)(DI + 0x4)] = 0x0;
label_1000_003E_1003E:
// MOV AX,0x3d00 (1000_003E / 0x1003E)
AX = 0x3D00;
// INT 0x21 (1000_0041 / 0x10041)
Interrupt(0x21);
// MOV DX,0x2e (1000_0043 / 0x10043)
DX = 0x2E;
// JC 0x1000:0061 (1000_0046 / 0x10046)
if (CarryFlag)
{
goto label_1000_0061_10061;
}
// PUSH AX (1000_0048 / 0x10048)
Stack.Push16(AX);
// CALL 0x1000:0970 (1000_0049 / 0x10049)
NearCall(cs1, 0x4C, SetVideoMode_1000_0970_10970);
// CALL 0x1000:1019 (1000_004C / 0x1004C)
NearCall(cs1, 0x4F, CirclesUnknown_1000_1019_11019);
// POP BX (1000_004F / 0x1004F)
BX = Stack.Pop16();
// MOV AX,[0x52] (1000_0050 / 0x10050)
AX = UInt16[DS, 0x52];
// CALL 0x1000:0dde (1000_0053 / 0x10053)
NearCall(cs1, 0x56, CirclesAnimation_1000_0DDE_10DDE);
// CALL 0x1000:0a51 (1000_0056 / 0x10056)
NearCall(cs1, 0x59, Nop_1000_0A51_10A51);
// XOR DX,DX (1000_0059 / 0x10059)
DX = 0;
// XOR AL,AL (1000_005B / 0x1005B)
AL = 0;
// MOV AH,0x4c (1000_005D / 0x1005D)
AH = 0x4C;
// INT 0x21 (1000_005F / 0x1005F)
Interrupt(0x21);
label_1000_0061_10061:
// MOV AH,0x9 (1000_0061 / 0x10061)
AH = 0x9;
// INT 0x21 (1000_0063 / 0x10063)
Interrupt(0x21);
// XOR AL,AL (1000_0065 / 0x10065)
AL = 0;
// MOV AH,0x4c (1000_0067 / 0x10067)
AH = 0x4C;
// INT 0x21 (1000_0069 / 0x10069)
Interrupt(0x21);
CheckExternalEvents(cs1, 0x6D);
// JO 0x1000:0047 (1000_006B / 0x1006B)
if (OverflowFlag)
{
throw FailAsUntested("Would have been a goto but label label_1000_0047_10047 does not exist because no instruction was found there that belongs to a function.");
}
// ADD DI,DI (1000_006D / 0x1006D)
DI += DI;
// ADD byte ptr [BX + SI],AL (1000_006F / 0x1006F)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0071 / 0x10071)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0073 / 0x10073)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0075 / 0x10075)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0077 / 0x10077)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0079 / 0x10079)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_007B / 0x1007B)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_007D / 0x1007D)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_007F / 0x1007F)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0081 / 0x10081)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0083 / 0x10083)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0085 / 0x10085)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0087 / 0x10087)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_0089 / 0x10089)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_008B / 0x1008B)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_008D / 0x1008D)
UInt8[DS, (ushort)(BX + SI)] += AL;
// ADD byte ptr [BX + SI],AL (1000_008F / 0x1008F)
// UInt8[DS, (ushort)(BX + SI)] += AL;
UInt8[DS, (ushort)(BX + SI)] = Alu8.Add(UInt8[DS, (ushort)(BX + SI)], AL);
throw FailAsUntested("Function does not end with return and no instruction after the body ...");
}
public virtual Action SetVideoMode_1000_0970_10970(int loadOffset)
{
// MOV AX,0x13 (1000_0970 / 0x10970)
AX = 0x13;
// INT 0x10 (1000_0973 / 0x10973)
Interrupt(0x10);
// PUSHF (1000_0975 / 0x10975)
Stack.Push16(FlagRegister16);
// STI (1000_0976 / 0x10976)
InterruptFlag = true;
// MOV AX,0x40 (1000_0977 / 0x10977)
AX = 0x40;
// MOV ES,AX (1000_097A / 0x1097A)
ES = AX;
// MOV DX,word ptr ES:[0x63] (1000_097C / 0x1097C)
DX = UInt16[ES, 0x63];
// ADD DL,0x6 (1000_0981 / 0x10981)
// DL += 0x6;
DL = Alu8.Add(DL, 0x6);
// MOV word ptr CS:[0x6c],DX (1000_0984 / 0x10984)
UInt16[cs1, 0x6C] = DX;
// MOV BP,0x6c (1000_0989 / 0x10989)
BP = 0x6C;
CheckExternalEvents(cs1, 0x098C);
// IN AL,DX (1000_098C / 0x1098C)
AL = Cpu.In8(DX);
// AND AL,0x8 (1000_098D / 0x1098D)
// AL &= 0x8;
AL = Alu8.And(AL, 0x8);
// CALL 0x1000:09b5 (1000_098F / 0x1098F)
NearCall(cs1, 0x992, CheckCrtRegisterForChange_1000_09B5_109B5);
// JNC 0x1000:09b3 (1000_0992 / 0x10992)
if (!CarryFlag)
{
goto label_1000_09B3_109B3;
}
// CALL 0x1000:09b5 (1000_0994 / 0x10994)
NearCall(cs1, 0x997, CheckCrtRegisterForChange_1000_09B5_109B5);
// JNC 0x1000:09b3 (1000_0997 / 0x10997)
if (!CarryFlag)
{
goto label_1000_09B3_109B3;
}
// MOV DI,SI (1000_0999 / 0x10999)
DI = SI;
// MOV byte ptr CS:[0x6f],AH (1000_099B / 0x1099B)
UInt8[cs1, 0x6F] = AH;
// CALL 0x1000:09b5 (1000_09A0 / 0x109A0)
NearCall(cs1, 0x9A3, CheckCrtRegisterForChange_1000_09B5_109B5);
// JNC 0x1000:09b3 (1000_09A3 / 0x109A3)
if (!CarryFlag)
{
goto label_1000_09B3_109B3;
}
// CMP SI,DI (1000_09A5 / 0x109A5)
Alu16.Sub(SI, DI);
// NOT byte ptr CS:[0x6e] (1000_09A7 / 0x109A7)
UInt8[cs1, 0x6E] = (byte)~UInt8[cs1, 0x6E];
// JNC 0x1000:09b3 (1000_09AC / 0x109AC)
if (!CarryFlag)
{
goto label_1000_09B3_109B3;
}
// MOV byte ptr CS:[0x6f],AH (1000_09AE / 0x109AE)
UInt8[cs1, 0x6F] = AH;
label_1000_09B3_109B3:
// POPF (1000_09B3 / 0x109B3)
FlagRegister16 = Stack.Pop16();
// RET (1000_09B4 / 0x109B4)
return NearRet();
}
public virtual Action CheckCrtRegisterForChange_1000_09B5_109B5(int loadOffset)
{
// MOV AH,AL (1000_09B5 / 0x109B5)
AH = AL;
// XOR SI,SI (1000_09B7 / 0x109B7)
SI = 0;
// MOV BX,word ptr ES:[BP + 0x0] (1000_09B9 / 0x109B9)
BX = UInt16[ES, BP];
label_1000_09BD_109BD:
// INC SI (1000_09BD / 0x109BD)
SI = Alu16.Inc(SI);
// JNZ 0x1000:09c1 (1000_09BE / 0x109BE)
if (!ZeroFlag)
{
goto label_1000_09C1_109C1;
}
// DEC SI (1000_09C0 / 0x109C0)
SI = Alu16.Dec(SI);
label_1000_09C1_109C1:
// IN AL,DX (1000_09C1 / 0x109C1)
CheckExternalEvents(cs1, 0x9c2);
AL = Cpu.In8(DX);
// AND AL,0x8 (1000_09C2 / 0x109C2)
AL &= 0x8;
// CMP AL,AH (1000_09C4 / 0x109C4)
Alu8.Sub(AL, AH);
// JNZ 0x1000:09d6 (1000_09C6 / 0x109C6)
if (!ZeroFlag)
{
goto label_1000_09D6_109D6;
}
// PUSH AX (1000_09C8 / 0x109C8)
Stack.Push16(AX);
// MOV AX,word ptr ES:[BP + 0x0] (1000_09C9 / 0x109C9)
AX = UInt16[ES, BP];
// SUB AX,BX (1000_09CD / 0x109CD)
AX -= BX;
// CMP AX,0x64 (1000_09CF / 0x109CF)
Alu16.Sub(AX, 0x64);
// POP AX (1000_09D2 / 0x109D2)
AX = Stack.Pop16();
// JC 0x1000:09bd (1000_09D3 / 0x109D3)
if (CarryFlag)
{
goto label_1000_09BD_109BD;
}
// RET (1000_09D5 / 0x109D5)
return NearRet();
label_1000_09D6_109D6:
// STC (1000_09D6 / 0x109D6)
CarryFlag = true;
// RET (1000_09D7 / 0x109D7)
return NearRet();
}
public virtual Action CommonCirclesWaitFrameAndWriteNextPaletteData_1000_09D8_109D8(int loadOffset)
{
// PUSH SI (1000_09D8 / 0x109D8)
Stack.Push16(SI);
// PUSH DS (1000_09D9 / 0x109D9)
Stack.Push16(DS);
// PUSH ES (1000_09DA / 0x109DA)
Stack.Push16(ES);
// POP DS (1000_09DB / 0x109DB)
DS = Stack.Pop16();
// MOV SI,DX (1000_09DC / 0x109DC)
SI = DX;
// PUSHF (1000_09DE / 0x109DE)
Stack.Push16(FlagRegister16);
// CMP byte ptr CS:[0x6e],0x0 (1000_09DF / 0x109DF)
Alu8.Sub(UInt8[cs1, 0x6E], 0x0);
// JZ 0x1000:09f6 (1000_09E5 / 0x109E5)
if (ZeroFlag)
{
goto label_1000_09F6_109F6;
}
// MOV DX,word ptr CS:[0x6c] (1000_09E7 / 0x109E7)
DX = UInt16[cs1, 0x6C];
label_1000_09EC_109EC:
CheckExternalEvents(cs1, 0x09EC);
// IN AL,DX (1000_09EC / 0x109EC)
AL = Cpu.In8(DX);
// AND AL,0x8 (1000_09ED / 0x109ED)
AL &= 0x8;
// CMP AL,byte ptr CS:[0x6f] (1000_09EF / 0x109EF)
Alu8.Sub(AL, UInt8[cs1, 0x6F]);
// JNZ 0x1000:09ec (1000_09F4 / 0x109F4)
if (!ZeroFlag)
{
goto label_1000_09EC_109EC;
}
label_1000_09F6_109F6:
// CLI (1000_09F6 / 0x109F6)
InterruptFlag = false;
// MOV DX,0x3c8 (1000_09F7 / 0x109F7)
DX = 0x3C8;
// MOV AL,BL (1000_09FA / 0x109FA)
AL = BL;
// OUT DX,AL (1000_09FC / 0x109FC)
Cpu.Out8(DX, AL);
// JMP 0x1000:09ff (1000_09FD / 0x109FD)
// JMP target is JMP, inlining.
// JMP 0x1000:0a01 (1000_09FF / 0x109FF)
// JMP target is JMP, inlining.
// JMP 0x1000:0a03 (1000_0A01 / 0x10A01)
// JMP target is JMP, inlining.
// JMP 0x1000:0a05 (1000_0A03 / 0x10A03)
goto label_1000_0A05_10A05;
label_1000_0A05_10A05:
// INC DX (1000_0A05 / 0x10A05)
DX = Alu16.Inc(DX);
// MOV AX,CX (1000_0A06 / 0x10A06)
AX = CX;
// ADD CX,CX (1000_0A08 / 0x10A08)
CX += CX;
// ADD CX,AX (1000_0A0A / 0x10A0A)
CX += AX;
// CMP byte ptr CS:[0x6b],0x0 (1000_0A0C / 0x10A0C)
Alu8.Sub(UInt8[cs1, 0x6B], 0x0);
// JZ 0x1000:0a1a (1000_0A12 / 0x10A12)
if (ZeroFlag)
{
goto label_1000_0A1A_10A1A;
}
// REP
while (CX != 0)
{
CX--;
// OUTSB DX,SI (1000_0A14 / 0x10A14)
Cpu.Out8(DX, UInt8[DS, SI]);
SI = (ushort)(SI + Direction8);
}
// POPF (1000_0A16 / 0x10A16)
FlagRegister16 = Stack.Pop16();
// POP DS (1000_0A17 / 0x10A17)
DS = Stack.Pop16();
// POP SI (1000_0A18 / 0x10A18)
SI = Stack.Pop16();
// RET (1000_0A19 / 0x10A19)
return NearRet();
label_1000_0A1A_10A1A:
// LODSB SI (1000_0A1A / 0x10A1A)
AL = UInt8[DS, SI];
SI = (ushort)(SI + Direction8);
// OUT DX,AL (1000_0A1B / 0x10A1B)
Cpu.Out8(DX, AL);
// LOOP 0x1000:0a1a (1000_0A1C / 0x10A1C)
if (--CX != 0)
{
goto label_1000_0A1A_10A1A;
}
// POPF (1000_0A1E / 0x10A1E)
FlagRegister16 = Stack.Pop16();
// POP DS (1000_0A1F / 0x10A1F)
DS = Stack.Pop16();
// POP SI (1000_0A20 / 0x10A20)
SI = Stack.Pop16();
// RET (1000_0A21 / 0x10A21)
return NearRet();
}
public virtual Action ConvertLineNumberToArrayIndex_1000_0A22_10A22(int loadOffset)
{
// CMP BX,0xc8 (1000_0A22 / 0x10A22)
Alu16.Sub(BX, 0xC8);
// JC 0x1000:0a2b (1000_0A26 / 0x10A26)
if (CarryFlag)
{
goto label_1000_0A2B_10A2B;
}
// MOV BX,0xc7 (1000_0A28 / 0x10A28)
BX = 0xC7;
label_1000_0A2B_10A2B:
// XCHG BL,BH (1000_0A2B / 0x10A2B)
(BH, BL) = (BL, BH);
// MOV DI,BX (1000_0A2D / 0x10A2D)
DI = BX;
// SHR DI,0x1 (1000_0A2F / 0x10A2F)
DI >>= 0x1;
// SHR DI,0x1 (1000_0A31 / 0x10A31)
DI >>= 0x1;
// ADD DI,BX (1000_0A33 / 0x10A33)
// DI += BX;
DI = Alu16.Add(DI, BX);
// XCHG BL,BH (1000_0A35 / 0x10A35)
(BH, BL) = (BL, BH);
// ADD DI,DX (1000_0A37 / 0x10A37)
// DI += DX;
DI = Alu16.Add(DI, DX);
// RET (1000_0A39 / 0x10A39)
return NearRet();
}
public virtual Action Nop_1000_0A3A_10A3A(int loadOffset)
{
// PUSH AX (1000_0A3A / 0x10A3A)
Stack.Push16(AX);
// PUSH CX (1000_0A3B / 0x10A3B)
Stack.Push16(CX);
// PUSH DI (1000_0A3C / 0x10A3C)
Stack.Push16(DI);
// PUSH ES (1000_0A3D / 0x10A3D)
Stack.Push16(ES);
// MOV AX,0xa000 (1000_0A3E / 0x10A3E)
AX = 0xA000;
// MOV ES,AX (1000_0A41 / 0x10A41)
ES = AX;
// XOR DI,DI (1000_0A43 / 0x10A43)
DI = 0;
// MOV CX,0x7d00 (1000_0A45 / 0x10A45)
CX = 0x7D00;
// XOR AX,AX (1000_0A48 / 0x10A48)
AX = 0;
// REP
while (CX != 0)
{
CX--;
// STOSW ES:DI (1000_0A4A / 0x10A4A)
UInt16[ES, DI] = AX;
DI = (ushort)(DI + Direction16);
}
// POP ES (1000_0A4C / 0x10A4C)
ES = Stack.Pop16();
// POP DI (1000_0A4D / 0x10A4D)
DI = Stack.Pop16();
// POP CX (1000_0A4E / 0x10A4E)
CX = Stack.Pop16();
// POP AX (1000_0A4F / 0x10A4F)
AX = Stack.Pop16();
// RET (1000_0A50 / 0x10A50)
return NearRet();
}
public virtual Action Nop_1000_0A51_10A51(int loadOffset)
{
// PUSH DS (1000_0A51 / 0x10A51)
Stack.Push16(DS);
// MOV AX,0xa000 (1000_0A52 / 0x10A52)
AX = 0xA000;
// MOV DS,AX (1000_0A55 / 0x10A55)
DS = AX;
// MOV ES,AX (1000_0A57 / 0x10A57)
ES = AX;
// XOR SI,SI (1000_0A59 / 0x10A59)
SI = 0;
// XOR DI,DI (1000_0A5B / 0x10A5B)
DI = 0;
// MOV CX,0xfa00 (1000_0A5D / 0x10A5D)
CX = 0xFA00;
label_1000_0A60_10A60:
// LODSB SI (1000_0A60 / 0x10A60)
AL = UInt8[DS, SI];
SI = (ushort)(SI + Direction8);
// CMP AL,0xa0 (1000_0A61 / 0x10A61)
Alu8.Sub(AL, 0xA0);
// JNC 0x1000:0a67 (1000_0A63 / 0x10A63)
if (!CarryFlag)
{
goto label_1000_0A67_10A67;
}
// XOR AL,AL (1000_0A65 / 0x10A65)
AL = 0;
label_1000_0A67_10A67:
// STOSB ES:DI (1000_0A67 / 0x10A67)
UInt8[ES, DI] = AL;
DI = (ushort)(DI + Direction8);
// LOOP 0x1000:0a60 (1000_0A68 / 0x10A68)
if (--CX != 0)
{
goto label_1000_0A60_10A60;
}
// POP DS (1000_0A6A / 0x10A6A)
DS = Stack.Pop16();
// RET (1000_0A6B / 0x10A6B)
return NearRet();
}
public virtual Action CommonUnknown_1000_0B9A_10B9A(int loadOffset)
{
switch (loadOffset)
{
case 0xA6C: break; // Instructions before entry targeted by 0x10AC9, 0x10A8D
case 0: goto entry;
}
label_1000_0A6C_10A6C:
// MOV BP,DX (1000_0A6C / 0x10A6C)
BP = DX;
// SUB DI,BP (1000_0A6E / 0x10A6E)
DI -= BP;
// ADD DI,0x140 (1000_0A70 / 0x10A70)
// DI += 0x140;
DI = Alu16.Add(DI, 0x140);
label_1000_0A74_10A74:
// LODSB SI (1000_0A74 / 0x10A74)
AL = UInt8[DS, SI];
SI = (ushort)(SI + Direction8);
// OR AL,AL (1000_0A75 / 0x10A75)
// AL |= AL;
AL = Alu8.Or(AL, AL);
// JS 0x1000:0aa9 (1000_0A77 / 0x10A77)
if (SignFlag)
{
goto label_1000_0AA9_10AA9;
}
// MOV CX,AX (1000_0A79 / 0x10A79)
CX = AX;
// XOR CH,CH (1000_0A7B / 0x10A7B)
CH = 0;
// INC CX (1000_0A7D / 0x10A7D)
CX++;
// SUB BP,CX (1000_0A7E / 0x10A7E)
// BP -= CX;
BP = Alu16.Sub(BP, CX);
label_1000_0A80_10A80:
// LODSB SI (1000_0A80 / 0x10A80)
AL = UInt8[DS, SI];
SI = (ushort)(SI + Direction8);
// OR AL,AL (1000_0A81 / 0x10A81)
// AL |= AL;
AL = Alu8.Or(AL, AL);
// JZ 0x1000:0a9d (1000_0A83 / 0x10A83)
if (ZeroFlag)
{
goto label_1000_0A9D_10A9D;
}
// STOSB ES:DI (1000_0A85 / 0x10A85)
UInt8[ES, DI] = AL;
DI = (ushort)(DI + Direction8);
// LOOP 0x1000:0a80 (1000_0A86 / 0x10A86)
if (--CX != 0)
{
goto label_1000_0A80_10A80;
}
// OR BP,BP (1000_0A88 / 0x10A88)
// BP |= BP;
BP = Alu16.Or(BP, BP);
// JA 0x1000:0a74 (1000_0A8A / 0x10A8A)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0A74_10A74;
}
// DEC BX (1000_0A8C / 0x10A8C)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0a6c (1000_0A8D / 0x10A8D)
if (!ZeroFlag)
{
goto label_1000_0A6C_10A6C;
}
label_1000_0A8F_10A8F:
// CLD (1000_0A8F / 0x10A8F)
DirectionFlag = false;
// MOV byte ptr CS:[0xa71],0xc7 (1000_0A90 / 0x10A90)
UInt8[cs1, 0xA71] = 0xC7;
// MOV byte ptr CS:[0xb2f],0xc7 (1000_0A96 / 0x10A96)
UInt8[cs1, 0xB2F] = 0xC7;
// RETF (1000_0A9C / 0x10A9C)
return FarRet();
label_1000_0A9D_10A9D:
// INC DI (1000_0A9D / 0x10A9D)
DI = Alu16.Inc(DI);
// LOOP 0x1000:0a80 (1000_0A9E / 0x10A9E)
if (--CX != 0)
{
goto label_1000_0A80_10A80;
}
// OR BP,BP (1000_0AA0 / 0x10AA0)
// BP |= BP;
BP = Alu16.Or(BP, BP);
// JA 0x1000:0a74 (1000_0AA2 / 0x10AA2)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0A74_10A74;
}
// DEC BX (1000_0AA4 / 0x10AA4)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0a6c (1000_0AA5 / 0x10AA5)
if (!ZeroFlag)
{
goto label_1000_0A6C_10A6C;
}
// JMP 0x1000:0a8f (1000_0AA7 / 0x10AA7)
goto label_1000_0A8F_10A8F;
label_1000_0AA9_10AA9:
// MOV CX,0x101 (1000_0AA9 / 0x10AA9)
CX = 0x101;
// XOR AH,AH (1000_0AAC / 0x10AAC)
AH = 0;
// SUB CX,AX (1000_0AAE / 0x10AAE)
CX -= AX;
// SUB BP,CX (1000_0AB0 / 0x10AB0)
// BP -= CX;
BP = Alu16.Sub(BP, CX);
// LODSB SI (1000_0AB2 / 0x10AB2)
AL = UInt8[DS, SI];
SI = (ushort)(SI + Direction8);
// OR AL,AL (1000_0AB3 / 0x10AB3)
// AL |= AL;
AL = Alu8.Or(AL, AL);
// JZ 0x1000:0ac2 (1000_0AB5 / 0x10AB5)
if (ZeroFlag)
{
goto label_1000_0AC2_10AC2;
}
// REP
while (CX != 0)
{
CX--;
// STOSB ES:DI (1000_0AB7 / 0x10AB7)
UInt8[ES, DI] = AL;
DI = (ushort)(DI + Direction8);
}
// OR BP,BP (1000_0AB9 / 0x10AB9)
// BP |= BP;
BP = Alu16.Or(BP, BP);
// JA 0x1000:0a74 (1000_0ABB / 0x10ABB)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0A74_10A74;
}
// DEC BX (1000_0ABD / 0x10ABD)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0a6c (1000_0ABE / 0x10ABE)
if (!ZeroFlag)
{
goto label_1000_0A6C_10A6C;
}
// JMP 0x1000:0a8f (1000_0AC0 / 0x10AC0)
goto label_1000_0A8F_10A8F;
label_1000_0AC2_10AC2:
// ADD DI,CX (1000_0AC2 / 0x10AC2)
// DI += CX;
DI = Alu16.Add(DI, CX);
// OR BP,BP (1000_0AC4 / 0x10AC4)
// BP |= BP;
BP = Alu16.Or(BP, BP);
// JA 0x1000:0a74 (1000_0AC6 / 0x10AC6)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0A74_10A74;
}
// DEC BX (1000_0AC8 / 0x10AC8)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0a6c (1000_0AC9 / 0x10AC9)
if (!ZeroFlag)
{
goto label_1000_0A6C_10A6C;
}
// JMP 0x1000:0a8f (1000_0ACB / 0x10ACB)
goto label_1000_0A8F_10A8F;
label_1000_0ACD_10ACD:
// MOV BP,DX (1000_0ACD / 0x10ACD)
BP = DX;
// ADD DI,BP (1000_0ACF / 0x10ACF)
DI += BP;
// ADD DI,0x140 (1000_0AD1 / 0x10AD1)
// DI += 0x140;
DI = Alu16.Add(DI, 0x140);
label_1000_0AD5_10AD5:
// MOV AL,byte ptr [SI] (1000_0AD5 / 0x10AD5)
AL = UInt8[DS, SI];
// INC SI (1000_0AD7 / 0x10AD7)
SI = Alu16.Inc(SI);
// OR AL,AL (1000_0AD8 / 0x10AD8)
// AL |= AL;
AL = Alu8.Or(AL, AL);
// JZ 0x1000:0b02 (1000_0ADA / 0x10ADA)
if (ZeroFlag)
{
goto label_1000_0B02_10B02;
}
// MOV CX,AX (1000_0ADC / 0x10ADC)
CX = AX;
// XOR CH,CH (1000_0ADE / 0x10ADE)
CH = 0;
// INC CX (1000_0AE0 / 0x10AE0)
CX++;
// SUB BP,CX (1000_0AE1 / 0x10AE1)
// BP -= CX;
BP = Alu16.Sub(BP, CX);
label_1000_0AE3_10AE3:
// MOV AL,byte ptr [SI] (1000_0AE3 / 0x10AE3)
AL = UInt8[DS, SI];
// INC SI (1000_0AE5 / 0x10AE5)
SI = Alu16.Inc(SI);
// OR AL,AL (1000_0AE6 / 0x10AE6)
// AL |= AL;
AL = Alu8.Or(AL, AL);
// JZ 0x1000:0af6 (1000_0AE8 / 0x10AE8)
if (ZeroFlag)
{
goto label_1000_0AF6_10AF6;
}
// STOSB ES:DI (1000_0AEA / 0x10AEA)
UInt8[ES, DI] = AL;
DI = (ushort)(DI + Direction8);
// LOOP 0x1000:0ae3 (1000_0AEB / 0x10AEB)
if (--CX != 0)
{
goto label_1000_0AE3_10AE3;
}
// OR BP,BP (1000_0AED / 0x10AED)
// BP |= BP;
BP = Alu16.Or(BP, BP);
// JA 0x1000:0ad5 (1000_0AEF / 0x10AEF)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0AD5_10AD5;
}
// DEC BX (1000_0AF1 / 0x10AF1)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0acd (1000_0AF2 / 0x10AF2)
if (!ZeroFlag)
{
goto label_1000_0ACD_10ACD;
}
// JMP 0x1000:0a8f (1000_0AF4 / 0x10AF4)
goto label_1000_0A8F_10A8F;
label_1000_0AF6_10AF6:
// DEC DI (1000_0AF6 / 0x10AF6)
DI = Alu16.Dec(DI);
// LOOP 0x1000:0ae3 (1000_0AF7 / 0x10AF7)
if (--CX != 0)
{
goto label_1000_0AE3_10AE3;
}
// OR BP,BP (1000_0AF9 / 0x10AF9)
// BP |= BP;
BP = Alu16.Or(BP, BP);
// JA 0x1000:0ad5 (1000_0AFB / 0x10AFB)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0AD5_10AD5;
}
// DEC BX (1000_0AFD / 0x10AFD)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0acd (1000_0AFE / 0x10AFE)
if (!ZeroFlag)
{
goto label_1000_0ACD_10ACD;
}
// JMP 0x1000:0a8f (1000_0B00 / 0x10B00)
goto label_1000_0A8F_10A8F;
label_1000_0B02_10B02:
// MOV CX,0x101 (1000_0B02 / 0x10B02)
CX = 0x101;
// XOR AH,AH (1000_0B05 / 0x10B05)
AH = 0;
// SUB CX,AX (1000_0B07 / 0x10B07)
CX -= AX;
// SUB BP,CX (1000_0B09 / 0x10B09)
// BP -= CX;
BP = Alu16.Sub(BP, CX);
// MOV AL,byte ptr [SI] (1000_0B0B / 0x10B0B)
AL = UInt8[DS, SI];
// INC SI (1000_0B0D / 0x10B0D)
SI = Alu16.Inc(SI);
// OR AL,AL (1000_0B0E / 0x10B0E)
// AL |= AL;
AL = Alu8.Or(AL, AL);
// JZ 0x1000:0b1e (1000_0B10 / 0x10B10)
if (ZeroFlag)
{
goto label_1000_0B1E_10B1E;
}
// REP
while (CX != 0)
{
CX--;
// STOSB ES:DI (1000_0B12 / 0x10B12)
UInt8[ES, DI] = AL;
DI = (ushort)(DI + Direction8);
}
// OR BP,BP (1000_0B14 / 0x10B14)
// BP |= BP;
BP = Alu16.Or(BP, BP);
// JA 0x1000:0ad5 (1000_0B16 / 0x10B16)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0AD5_10AD5;
}
// DEC BX (1000_0B18 / 0x10B18)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0acd (1000_0B19 / 0x10B19)
if (!ZeroFlag)
{
goto label_1000_0ACD_10ACD;
}
// JMP 0x1000:0a8f (1000_0B1B / 0x10B1B)
goto label_1000_0A8F_10A8F;
label_1000_0B1E_10B1E:
// SUB DI,CX (1000_0B1E / 0x10B1E)
// DI -= CX;
DI = Alu16.Sub(DI, CX);
// OR BP,BP (1000_0B20 / 0x10B20)
// BP |= BP;
BP = Alu16.Or(BP, BP);
// JA 0x1000:0ad5 (1000_0B22 / 0x10B22)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0AD5_10AD5;
}
// DEC BX (1000_0B24 / 0x10B24)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0acd (1000_0B25 / 0x10B25)
if (!ZeroFlag)
{
goto label_1000_0ACD_10ACD;
}
// JMP 0x1000:0a8f (1000_0B27 / 0x10B27)
goto label_1000_0A8F_10A8F;
label_1000_0B2A_10B2A:
// MOV BP,DX (1000_0B2A / 0x10B2A)
BP = DX;
// SUB DI,BP (1000_0B2C / 0x10B2C)
DI -= BP;
// ADD DI,0x140 (1000_0B2E / 0x10B2E)
// DI += 0x140;
DI = Alu16.Add(DI, 0x140);
label_1000_0B32_10B32:
// LODSB SI (1000_0B32 / 0x10B32)
AL = UInt8[DS, SI];
SI = (ushort)(SI + Direction8);
// OR AL,AL (1000_0B33 / 0x10B33)
// AL |= AL;
AL = Alu8.Or(AL, AL);
// JS 0x1000:0b48 (1000_0B35 / 0x10B35)
if (SignFlag)
{
goto label_1000_0B48_10B48;
}
// MOV CX,AX (1000_0B37 / 0x10B37)
CX = AX;
// XOR CH,CH (1000_0B39 / 0x10B39)
CH = 0;
// INC CX (1000_0B3B / 0x10B3B)
CX++;
// SUB BP,CX (1000_0B3C / 0x10B3C)
// BP -= CX;
BP = Alu16.Sub(BP, CX);
// REP
while (CX != 0)
{
CX--;
// MOVSB ES:DI,SI (1000_0B3E / 0x10B3E)
UInt8[ES, DI] = UInt8[DS, SI];
SI = (ushort)(SI + Direction8);
DI = (ushort)(DI + Direction8);
}
// JA 0x1000:0b32 (1000_0B40 / 0x10B40)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0B32_10B32;
}
// DEC BX (1000_0B42 / 0x10B42)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0b2a (1000_0B43 / 0x10B43)
if (!ZeroFlag)
{
goto label_1000_0B2A_10B2A;
}
// JMP 0x1000:0a8f (1000_0B45 / 0x10B45)
goto label_1000_0A8F_10A8F;
label_1000_0B48_10B48:
// MOV CX,0x101 (1000_0B48 / 0x10B48)
CX = 0x101;
// XOR AH,AH (1000_0B4B / 0x10B4B)
AH = 0;
// SUB CX,AX (1000_0B4D / 0x10B4D)
CX -= AX;
// SUB BP,CX (1000_0B4F / 0x10B4F)
// BP -= CX;
BP = Alu16.Sub(BP, CX);
// LODSB SI (1000_0B51 / 0x10B51)
AL = UInt8[DS, SI];
SI = (ushort)(SI + Direction8);
// REP
while (CX != 0)
{
CX--;
// STOSB ES:DI (1000_0B52 / 0x10B52)
UInt8[ES, DI] = AL;
DI = (ushort)(DI + Direction8);
}
// JA 0x1000:0b32 (1000_0B54 / 0x10B54)
if (!CarryFlag && !ZeroFlag)
{
goto label_1000_0B32_10B32;
}
// DEC BX (1000_0B56 / 0x10B56)
BX = Alu16.Dec(BX);
// JNZ 0x1000:0b2a (1000_0B57 / 0x10B57)
if (!ZeroFlag)
{
goto label_1000_0B2A_10B2A;