-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jill3.s
53145 lines (52614 loc) · 891 KB
/
Jill3.s
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
Segment 0040 ;; DOS Segment.
Y00400000:
Y0040001a: word ;; 0040001a ;; Handler queue head.
Y0040001c: word ;; 0040001c ;; Handler queue tail.
Y00400063: word ;; 00400063 ;; Port number.
Y0040006c: word ;; 0040006c ;; Clock.
;; CS:IP = 0000:0000, SS:SP = 295a:00e6
;; Relocated to 076a under Linux; previously to 140c under Windows.
;; === Top-Level Runtime System ===
Segment 076a ;; C0L:C0L
__turboCrt: ;; 076a0000 ;; (@) Unaccessed.
__cvtfak: ;; 076a0000 ;; (@) Unaccessed.
mov DX,segment A24f10000
mov [CS:offset DGROUP@],DX
mov AH,30
int 21
mov BP,[0002]
mov BX,[002C]
mov DS,DX
mov [offset __version],AX
mov [offset __psp],ES
mov [offset __envseg],BX
mov [offset __heaptop+2],BP
mov word ptr [offset __8087],FFFF
call near B076a012f
les DI,[offset __envLng]
mov AX,DI
mov BX,AX
mov CX,7FFF
L076a0039:
cmp word ptr [ES:DI],3738 ;; "87"
jnz L076a0059
mov DX,[ES:DI+02]
cmp DL,3D
jnz L076a0059
and DH,DF
inc word ptr [offset __8087]
cmp DH,59
jnz L076a0059
inc word ptr [offset __8087]
L076a0059:
repnz scasb
jcxz L076a0099
inc BX
cmp [ES:DI],AL
jnz L076a0039
or CH,80
neg CX
mov [offset __envLng],CX
mov CX,0002
shl BX,CL
add BX,+10
and BX,-10
mov [offset __envSize],BX
mov DX,SS
sub BP,DX
mov DI,[offset __stklen]
cmp DI,0200
jnb L076a0090
mov DI,0200
mov [offset __stklen],DI
L076a0090:
mov CL,04
shr DI,CL
inc DI
cmp BP,DI
jnb L076a009c
L076a0099:
jmp near _abort
L076a009c:
mov BX,DI
add BX,DX
mov [offset __heapbase+2],BX
mov [offset __brklvl+2],BX
mov AX,[offset __psp]
sub BX,AX
mov ES,AX
mov AH,4A
push DI
int 21
pop DI
shl DI,CL
cli
mov SS,DX
mov SP,DI
sti
xor AX,AX
mov ES,[CS:offset DGROUP@]
mov DI,offset Y24f128fa
mov CX,offset Y24f1bd2e
sub CX,DI
repz stosb ;; (@) Initialize the BSS segment to 0.
push CS
call near [offset Y24f128e4]
call far __setargv
call far __setenvp
mov AH,00
int 1A
mov [offset __StartTime],DX
mov [offset __StartTime+2],CX
push CS
call near [offset Y24f128e8]
push [offset _environ+2]
push [offset _environ]
push [offset __argv+2]
push [offset __argv]
push [offset __argc]
call far _main
push AX
call far _exit
__exit: ;; 076a010d ;; (@) No return.
mov DS,[CS:offset DGROUP@]
call far __restorezero
push CS
call near [offset Y24f128e6]
mov BP,SP
mov AH,4C
mov AL,[BP+04]
int 21 ;; (@) No return.
B076a0125:
mov CX,000E
nop
mov DX,offset Y24f1002f
jmp near B076a01b6
B076a012f:
push DS
mov AX,3500
int 21
mov [offset __Int0Vector],BX
mov [offset __Int0Vector+2],ES
mov AX,3504
int 21
mov [offset __Int4Vector],BX
mov [offset __Int4Vector+2],ES
mov AX,3505
int 21
mov [offset __Int5Vector],BX
mov [offset __Int5Vector+2],ES
mov AX,3506
int 21
mov [offset __Int6Vector],BX
mov [offset __Int6Vector+2],ES
mov AX,2500
mov DX,CS
mov DS,DX
mov DX,offset B076a0125
int 21
pop DS
ret near
__restorezero: ;; 076a0172
push DS
mov AX,2500
lds DX,[offset __Int0Vector]
int 21
pop DS
push DS
mov AX,2504
lds DX,[offset __Int4Vector]
int 21
pop DS
push DS
mov AX,2505
lds DX,[offset __Int5Vector]
int 21
pop DS
push DS
mov AX,2506
lds DX,[offset __Int6Vector]
int 21
pop DS
ret far
A076a019f:
mov word ptr [offset __8087],0000
ret far
X076a01a6:
ret far
B076a01a7:
mov AH,40
mov BX,0002
int 21
ret near
_abort: ;; 076a01af ;; (@) No return.
mov CX,001E
nop
mov DX,offset Y24f1003d
B076a01b6: ;; (@) No return.
mov DS,[CS:offset DGROUP@]
call near B076a01a7
mov AX,0003
push AX
call far __exit
DGROUP@: word ;; 076a01c7
Y076a01c9: byte
Y076a01ca: dword
Y076a01ce: dword
__setargv: ;; 076a01d2
pop [CS:offset Y076a01ca+0]
pop [CS:offset Y076a01ca+2]
mov [CS:offset Y076a01ce],DS
cld
mov ES,[offset __psp]
mov SI,0080
xor AH,AH
ES:lodsb
inc AX
mov BP,ES
xchg DX,SI
xchg BX,AX
mov SI,[offset __envLng]
add SI,+02
mov CX,0001
cmp byte ptr [offset __version],03
jb L076a0215
mov ES,[offset __envseg]
mov DI,SI
mov CL,7F
xor AL,AL
repnz scasb
jcxz L076a0288
xor CL,7F
L076a0215:
sub SP,+02
mov AX,0001
add AX,BX
add AX,CX
and AX,FFFE
mov DI,SP
sub DI,AX
jb L076a0288
mov SP,DI
mov AX,ES
mov DS,AX
mov AX,SS
mov ES,AX
push CX
dec CX
repz movsb
xor AL,AL
stosb
mov DS,BP
xchg SI,DX
xchg BX,CX
mov AX,BX
mov DX,AX
inc BX
L076a0244:
call near B076a0260
ja L076a0250
L076a0249:
jb L076a028d
call near B076a0260
ja L076a0249
L076a0250:
cmp AL,20
jz L076a025c
cmp AL,0D
jz L076a025c
cmp AL,09
jnz L076a0244
L076a025c:
xor AL,AL
jmp near L076a0244
B076a0260:
or AX,AX
jz L076a026b
inc DX
stosb
or AL,AL
jnz L076a026b
inc BX
L076a026b:
xchg AH,AL
xor AL,AL
stc
jcxz L076a0287
lodsb
dec CX
sub AL,22
jz L076a0287
add AL,22
cmp AL,5C
jnz L076a0285
cmp byte ptr [SI],22
jnz L076a0285
lodsb
dec CX
L076a0285:
or SI,SI
L076a0287:
ret near
L076a0288:
jmp far _abort
L076a028d:
pop CX
add CX,DX
mov DS,[CS:offset Y076a01ce]
mov [offset __argc],BX
inc BX
add BX,BX
add BX,BX
mov SI,SP
mov BP,SP
sub BP,BX
jb L076a0288
mov SP,BP
mov [offset __argv],BP
mov [offset __argv+2],SS
L076a02b0:
jcxz L076a02c3
mov [BP+00],SI
mov [BP+02],SS
add BP,+04
L076a02bb:
SS:lodsb
or AL,AL
loopnz L076a02bb
jz L076a02b0
L076a02c3:
xor AX,AX
mov [BP+00],AX
mov [BP+02],AX
jmp far [CS:offset Y076a01ca]
__setenvp: ;; 076a02d0
mov ES,[offset __envseg]
xor DI,DI
push ES
push [offset __envSize]
call far _malloc
add SP,+02
mov BX,AX
pop ES
mov [offset _environ],AX
mov [offset _environ+2],DX
push DS
mov DS,DX
or AX,DX
jnz L076a02f9
jmp far _abort
L076a02f9:
xor AX,AX
mov CX,FFFF
L076a02fe:
mov [BX],DI
mov [BX+02],ES
add BX,+04
repnz scasb
cmp [ES:DI],AL
jnz L076a02fe
mov [BX],AX
mov [BX+02],AX
pop DS
ret far
PADD@: ;; 076a0314
or CX,CX
jge L076a0325
not BX
not CX
add BX,+01
adc CX,+00
jmp near L076a0351
X076a0324:
nop
L076a0325:
add AX,BX
jnb L076a032d
add DX,1000
L076a032d:
mov CH,CL
mov CL,04
shl CH,CL
add DH,CH
mov CH,AL
shr AX,CL
add DX,AX
mov AL,CH
and AX,000F
ret far
PSUB@: ;; 076a0341 ;; (@) Unaccessed.
or CX,CX
jge L076a0351
not BX
not CX
add BX,+01
adc CX,+00
jmp near L076a0325
L076a0351:
sub AX,BX
jnb L076a0359
sub DX,1000
L076a0359:
mov BH,CL
mov CL,04
shl BH,CL
xor BL,BL
sub DX,BX
mov CH,AL
shr AX,CL
add DX,AX
mov AL,CH
and AX,000F
ret far
PCMP@: ;; 076a036f
push CX
mov CH,AL
mov CL,04
shr AX,CL
add DX,AX
mov AL,CH
mov AH,BL
shr BX,CL
pop CX
add CX,BX
mov BL,AH
and AX,000F
and BX,+0F
cmp DX,CX
jnz L076a038f
cmp AX,BX
L076a038f:
ret far
LXMUL@: ;; 076a0390
push SI
xchg SI,AX
xchg DX,AX
test AX,AX
jz L076a0399
mul BX
L076a0399:
xchg CX,AX
test AX,AX
jz L076a03a2
mul SI
add CX,AX
L076a03a2:
xchg SI,AX
mul BX
add DX,CX
pop SI
ret far
A076a03a9:
mov DX,offset Y24f1281e+00
jmp near L076a03b1
A076a03ae:
mov DX,offset Y24f1281e+05
L076a03b1:
mov CX,0005
nop
mov AH,40
mov BX,0002
int 21
mov CX,0027
nop
mov DX,offset Y24f1281e+0a
mov AH,40
int 21
jmp far _abort
__REALCVT: ;; 076a03cc
jmp far [offset __RealCvtVector]
B076a03d0:
push BP
mov BP,SP
jmp near L076a03ed
L076a03d5:
les BX,[BP+04]
inc word ptr [BP+04]
mov AL,[ES:BX]
les BX,[BP+08]
inc word ptr [BP+08]
cmp AL,[ES:BX]
jz L076a03ed
xor AX,AX
jmp near L076a03fb
L076a03ed:
les BX,[BP+04]
cmp byte ptr [ES:BX],00
jnz L076a03d5
mov AX,0001
jmp near L076a03fb
L076a03fb:
pop BP
ret near 0008
B076a03ff:
mov AX,1130
mov BH,00
mov DL,FF
call far __VideoInt
mov AL,DL
inc AL
mov AH,00
jmp near L076a0413
L076a0413:
ret near
__VideoInt: ;; 076a0414
push SI
push DI
mov [offset Y24f1bd2c],BP
int 10
mov BP,[offset Y24f1bd2c]
pop DI
pop SI
ret far
__c0crtinit: ;; 076a0423
mov AH,0F
push CS
call near offset __VideoInt
push AX
call far __crtinit
pop CX
mov AH,08
mov BH,00
push CS
call near offset __VideoInt
and AH,7F
mov [offset __video+05],AH
mov [offset __video+04],AH
ret far
__crtinit: ;; 076a0444
push BP
mov BP,SP
mov AL,[BP+06]
cmp AL,03
jbe L076a0454
cmp AL,07
jz L076a0454
mov AL,03
L076a0454:
mov [offset __video+06],AL
mov AH,0F
push CS
call near offset __VideoInt
cmp AL,[offset __video+06]
jz L076a0475
mov AL,[offset __video+06]
mov AH,00
push CS
call near offset __VideoInt
mov AH,0F
push CS
call near offset __VideoInt
mov [offset __video+06],AL
L076a0475:
mov [offset __video+08],AH
cmp byte ptr [offset __video+06],03
jbe L076a048c
cmp byte ptr [offset __video+06],07
jz L076a048c
mov AX,0001
jmp near L076a048e
L076a048c:
xor AX,AX
L076a048e:
mov [offset __video+09],AL
mov byte ptr [offset __video+07],19
cmp byte ptr [offset __video+06],07
jz L076a04bd
mov DX,F000
mov AX,FFEA
push DX
push AX
push DS
mov AX,offset Y24f128d9
push AX
call near B076a03d0
or AX,AX
jnz L076a04bd
call near B076a03ff
or AX,AX
jnz L076a04bd
mov AX,0001
jmp near L076a04bf
L076a04bd:
xor AX,AX
L076a04bf:
mov [offset __video+0A],AL
cmp byte ptr [offset __video+06],07
jnz L076a04ce
mov AX,B000
jmp near L076a04d1
L076a04ce:
mov AX,B800
L076a04d1:
mov [offset __video+0D],AX
mov word ptr [offset __video+0B],0000
mov AL,00
mov [offset __video+01],AL
mov [offset __video],AL
mov AL,[offset __video+08]
add AL,FF
mov [offset __video+02],AL
mov byte ptr [offset __video+03],18
pop BP
ret far
X076a04f1:
ret far
LDIV@: ;; 076a04f2
xor CX,CX
jmp near L076a0503
LUDIV@: ;; 076a04f6 ;; (@) Unaccessed.
mov CX,0001
jmp near L076a0503
LMOD@: ;; 076a04fb ;; (@) Unaccessed.
mov CX,0002
jmp near L076a0503
LUMOD@: ;; 076a0500 ;; (@) Unaccessed.
mov CX,0003
L076a0503:
push BP
push SI
push DI
mov BP,SP
mov DI,CX
mov AX,[BP+0A]
mov DX,[BP+0C]
mov BX,[BP+0E]
mov CX,[BP+10]
or CX,CX
jnz L076a0522
or DX,DX
jz L076a0587
or BX,BX
jz L076a0587
L076a0522:
test DI,0001
jnz L076a0544
or DX,DX
jns L076a0536
neg DX
neg AX
sbb DX,+00
or DI,+0C
L076a0536:
or CX,CX
jns L076a0544
neg CX
neg BX
sbb CX,+00
xor DI,+04
L076a0544:
mov BP,CX
mov CX,0020
push DI
xor DI,DI
xor SI,SI
L076a054e:
shl AX,1
rcl DX,1
rcl SI,1
rcl DI,1
cmp DI,BP
jb L076a0565
ja L076a0560
cmp SI,BX
jb L076a0565
L076a0560:
sub SI,BX
sbb DI,BP
inc AX
L076a0565:
loop L076a054e
pop BX
test BX,0002
jz L076a0574
mov AX,SI
mov DX,DI
shr BX,1
L076a0574:
test BX,0004
jz L076a0581
neg DX
neg AX
sbb DX,+00
L076a0581:
pop DI
pop SI
pop BP
ret far 0008
L076a0587:
div BX
test DI,0002
jz L076a0591
mov AX,DX
L076a0591:
xor DX,DX
jmp near L076a0581
LXRSH@: ;; 076a0595
cmp CL,10
jnb L076a05aa
mov BX,DX
shr AX,CL
sar DX,CL
neg CL
add CL,10
shl BX,CL
or AX,BX
ret far
L076a05aa:
sub CL,10
mov AX,DX
cwd
sar AX,CL
ret far
Y076a05b3: db "Stack overflow!\r\n$"
OVERFLOW@: ;; 076a05c5
mov AX,CS
mov DS,AX
mov DX,offset Y076a05b3
mov AH,09
int 21
jmp far __exit
PSBP@: ;; 076a05d5
push DI
mov DI,CX
mov CH,DH
mov CL,04
shl DX,CL
shr CH,CL
add DX,AX
adc CH,00
mov AX,DI
shl DI,CL
shr AH,CL
add BX,DI
adc AH,00
sub DX,BX
sbb CH,AH
mov AL,CH
cbw
xchg DX,AX
pop DI
ret far
SCOPY@: ;; 076a05fa
push BP
mov BP,SP
push SI
push DI
push DS
lds SI,[BP+06]
les DI,[BP+0A]
cld
shr CX,1
repz movsw
adc CX,CX
repz movsb
pop DS
pop DI
pop SI
pop BP
ret far 0008
;; === Program Files ===
Segment 07cb ;; COPYFILE.C:COPYFILE
_copyfile: ;; 07cb0006
push BP
mov BP,SP
sub SP,+0A
mov AX,1000
push AX
call far _malloc
pop CX
mov [BP-04],DX
mov [BP-06],AX
mov AX,[BP-06]
or AX,[BP-04]
jnz L07cb0027
jmp near L07cb00b3
L07cb0027:
mov AX,8001
push AX
push [BP+08]
push [BP+06]
call far __open
add SP,+06
mov [BP-0A],AX
cmp word ptr [BP-0A],+00
jl L07cb00a6
xor AX,AX
push AX
push [BP+0C]
push [BP+0A]
call far __creat
add SP,+06
mov [BP-08],AX
cmp word ptr [BP-08],+00
jl L07cb009d
L07cb005c:
mov AX,1000
push AX
push [BP-04]
push [BP-06]
push [BP-0A]
call far __read
add SP,+08
mov [BP-02],AX
cmp word ptr [BP-02],+00
jle L07cb008e
push [BP-02]
push [BP-04]
push [BP-06]
push [BP-08]
call far __write
add SP,+08
L07cb008e:
cmp word ptr [BP-02],+00
jg L07cb005c
push [BP-08]
call far __close
pop CX
L07cb009d:
push [BP-0A]
call far __close
pop CX
L07cb00a6:
push [BP-04]
push [BP-06]
call far _free
pop CX
pop CX
L07cb00b3:
mov SP,BP
pop BP
ret far
Segment 07d6 ;; SHM.C:SHM
_shm_init: ;; 07d60007
push BP
mov BP,SP
sub SP,+02
push [BP+08]
push [BP+06]
push DS
mov AX,offset _shm_fname
push AX
call far _strcpy
add SP,+08
mov word ptr [BP-02],0000
jmp near L07d60048
L07d60027:
mov BX,[BP-02]
shl BX,1
mov word ptr [BX+offset _shm_want],0000
mov BX,[BP-02]
shl BX,1
shl BX,1
mov word ptr [BX+offset _shm_tbladdr+2],0000
mov word ptr [BX+offset _shm_tbladdr],0000
inc word ptr [BP-02]
L07d60048:
cmp word ptr [BP-02],+40
jl L07d60027
mov SP,BP
pop BP
ret far
_init8bit: ;; 07d60052
push BP
mov BP,SP
sub SP,+02
mov AL,[offset _x_ourmode]
mov AH,00
and AX,00FE
or AX,AX
jz L07d60070
cmp AX,0002
jz L07d6008f
cmp AX,0004
jz L07d600a7
jmp near L07d600c4
L07d60070:
mov word ptr [BP-02],0000
jmp near L07d60086
L07d60077:
mov AL,[BP-02]
and AL,03
mov BX,[BP-02]
mov [BX+offset _colortab],AL
inc word ptr [BP-02]
L07d60086:
cmp word ptr [BP-02],0100
jl L07d60077
jmp near L07d600c4
L07d6008f:
mov AX,0100
push AX
push DS
mov AX,offset _egatab
push AX
push DS
mov AX,offset _colortab
push AX
call far _memcpy
add SP,+0A
jmp near L07d600c4
L07d600a7:
mov word ptr [BP-02],0000
jmp near L07d600bb
L07d600ae:
mov AL,[BP-02]
mov BX,[BP-02]
mov [BX+offset _colortab],AL
inc word ptr [BP-02]
L07d600bb:
cmp word ptr [BP-02],0100
jl L07d600ae
jmp near L07d600c4
L07d600c4:
mov word ptr [BP-02],0000
jmp near L07d600d8
L07d600cb:
mov AL,[BP-02]
mov BX,[BP-02]
mov [BX+offset _colortab],AL
inc word ptr [BP-02]
L07d600d8:
cmp word ptr [BP-02],0100
jl L07d600cb
mov SP,BP
pop BP
ret far
_xlate_table: ;; 07d600e3
push BP
mov BP,SP
sub SP,+30
mov byte ptr [BP-30],00
mov byte ptr [BP-2F],01
mov AX,0001
push AX
push [BP+0A]
push [BP+08]
push SS
lea AX,[BP-30]
push AX
call far _memcpy
add SP,+0A
inc word ptr [BP+08]
mov AX,0002
push AX
push [BP+0A]
push [BP+08]
push SS
lea AX,[BP-2E]
push AX
call far _memcpy
add SP,+0A
add word ptr [BP+08],+02
mov AX,0002
push AX
push [BP+0A]
push [BP+08]
push SS
lea AX,[BP-28]
push AX
call far _memcpy
add SP,+0A
add word ptr [BP+08],+02
mov AX,0002
push AX
push [BP+0A]
push [BP+08]
push SS
lea AX,[BP-26]
push AX
call far _memcpy
add SP,+0A
add word ptr [BP+08],+02
mov AX,0002