This repository has been archived by the owner on Jan 3, 2019. It is now read-only.
forked from mtuomi/SecondReality
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTWSTLOOP.INC
executable file
·11752 lines (11752 loc) · 199 KB
/
TWSTLOOP.INC
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
twistt LABEL WORD
dw OFFSET twist0l,OFFSET twist0r
dw OFFSET twist1l,OFFSET twist1r
dw OFFSET twist2l,OFFSET twist2r
dw OFFSET twist3l,OFFSET twist3r
dw OFFSET twist4l,OFFSET twist4r
dw OFFSET twist5l,OFFSET twist5r
dw OFFSET twist6l,OFFSET twist6r
dw OFFSET twist7l,OFFSET twist7r
dw OFFSET twist8l,OFFSET twist8r
dw OFFSET twist9l,OFFSET twist9r
dw OFFSET twist10l,OFFSET twist10r
dw OFFSET twist11l,OFFSET twist11r
dw OFFSET twist12l,OFFSET twist12r
dw OFFSET twist13l,OFFSET twist13r
dw OFFSET twist14l,OFFSET twist14r
dw OFFSET twist15l,OFFSET twist15r
dw OFFSET twist16l,OFFSET twist16r
dw OFFSET twist17l,OFFSET twist17r
dw OFFSET twist18l,OFFSET twist18r
dw OFFSET twist19l,OFFSET twist19r
dw OFFSET twist20l,OFFSET twist20r
dw OFFSET twist21l,OFFSET twist21r
dw OFFSET twist22l,OFFSET twist22r
dw OFFSET twist23l,OFFSET twist23r
dw OFFSET twist24l,OFFSET twist24r
dw OFFSET twist25l,OFFSET twist25r
dw OFFSET twist26l,OFFSET twist26r
dw OFFSET twist27l,OFFSET twist27r
dw OFFSET twist28l,OFFSET twist28r
dw OFFSET twist29l,OFFSET twist29r
dw OFFSET twist30l,OFFSET twist30r
dw OFFSET twist31l,OFFSET twist31r
dw OFFSET twist32l,OFFSET twist32r
dw OFFSET twist33l,OFFSET twist33r
dw OFFSET twist34l,OFFSET twist34r
dw OFFSET twist35l,OFFSET twist35r
dw OFFSET twist36l,OFFSET twist36r
dw OFFSET twist37l,OFFSET twist37r
dw OFFSET twist38l,OFFSET twist38r
dw OFFSET twist39l,OFFSET twist39r
dw OFFSET twist40l,OFFSET twist40r
dw OFFSET twist41l,OFFSET twist41r
dw OFFSET twist42l,OFFSET twist42r
dw OFFSET twist43l,OFFSET twist43r
dw OFFSET twist44l,OFFSET twist44r
dw OFFSET twist45l,OFFSET twist45r
dw OFFSET twist46l,OFFSET twist46r
dw OFFSET twist47l,OFFSET twist47r
dw OFFSET twist48l,OFFSET twist48r
dw OFFSET twist49l,OFFSET twist49r
dw OFFSET twist50l,OFFSET twist50r
dw OFFSET twist51l,OFFSET twist51r
dw OFFSET twist52l,OFFSET twist52r
dw OFFSET twist53l,OFFSET twist53r
dw OFFSET twist54l,OFFSET twist54r
dw OFFSET twist55l,OFFSET twist55r
dw OFFSET twist56l,OFFSET twist56r
dw OFFSET twist57l,OFFSET twist57r
dw OFFSET twist58l,OFFSET twist58r
dw OFFSET twist59l,OFFSET twist59r
dw OFFSET twist60l,OFFSET twist60r
dw OFFSET twist61l,OFFSET twist61r
dw OFFSET twist62l,OFFSET twist62r
dw OFFSET twist63l,OFFSET twist63r
dw OFFSET twist64l,OFFSET twist64r
dw OFFSET twist65l,OFFSET twist65r
dw OFFSET twist66l,OFFSET twist66r
dw OFFSET twist67l,OFFSET twist67r
dw OFFSET twist68l,OFFSET twist68r
dw OFFSET twist69l,OFFSET twist69r
dw OFFSET twist70l,OFFSET twist70r
dw OFFSET twist71l,OFFSET twist71r
dw OFFSET twist72l,OFFSET twist72r
dw OFFSET twist73l,OFFSET twist73r
dw OFFSET twist74l,OFFSET twist74r
dw OFFSET twist75l,OFFSET twist75r
dw OFFSET twist76l,OFFSET twist76r
dw OFFSET twist77l,OFFSET twist77r
dw OFFSET twist78l,OFFSET twist78r
dw OFFSET twist79l,OFFSET twist79r
dw OFFSET twist80l,OFFSET twist80r
dw OFFSET twist81l,OFFSET twist81r
dw OFFSET twist82l,OFFSET twist82r
dw OFFSET twist83l,OFFSET twist83r
dw OFFSET twist84l,OFFSET twist84r
dw OFFSET twist85l,OFFSET twist85r
dw OFFSET twist86l,OFFSET twist86r
dw OFFSET twist87l,OFFSET twist87r
dw OFFSET twist88l,OFFSET twist88r
dw OFFSET twist89l,OFFSET twist89r
dw OFFSET twist90l,OFFSET twist90r
dw OFFSET twist91l,OFFSET twist91r
dw OFFSET twist92l,OFFSET twist92r
dw OFFSET twist93l,OFFSET twist93r
dw OFFSET twist94l,OFFSET twist94r
dw OFFSET twist95l,OFFSET twist95r
dw OFFSET twist96l,OFFSET twist96r
dw OFFSET twist97l,OFFSET twist97r
dw OFFSET twist98l,OFFSET twist98r
dw OFFSET twist99l,OFFSET twist99r
dw OFFSET twist100l,OFFSET twist100r
dw OFFSET twist101l,OFFSET twist101r
dw OFFSET twist102l,OFFSET twist102r
dw OFFSET twist103l,OFFSET twist103r
dw OFFSET twist104l,OFFSET twist104r
dw OFFSET twist105l,OFFSET twist105r
dw OFFSET twist106l,OFFSET twist106r
dw OFFSET twist107l,OFFSET twist107r
dw OFFSET twist108l,OFFSET twist108r
dw OFFSET twist109l,OFFSET twist109r
dw OFFSET twist110l,OFFSET twist110r
dw OFFSET twist111l,OFFSET twist111r
dw OFFSET twist112l,OFFSET twist112r
dw OFFSET twist113l,OFFSET twist113r
dw OFFSET twist114l,OFFSET twist114r
dw OFFSET twist115l,OFFSET twist115r
dw OFFSET twist116l,OFFSET twist116r
dw OFFSET twist117l,OFFSET twist117r
dw OFFSET twist118l,OFFSET twist118r
dw OFFSET twist119l,OFFSET twist119r
dw OFFSET twist120l,OFFSET twist120r
dw OFFSET twist121l,OFFSET twist121r
dw OFFSET twist122l,OFFSET twist122r
dw OFFSET twist123l,OFFSET twist123r
dw OFFSET twist124l,OFFSET twist124r
dw OFFSET twist125l,OFFSET twist125r
dw OFFSET twist126l,OFFSET twist126r
dw OFFSET twist127l,OFFSET twist127r
dw OFFSET twist128l,OFFSET twist128r
dw OFFSET twist129l,OFFSET twist129r
dw OFFSET twist130l,OFFSET twist130r
dw OFFSET twist131l,OFFSET twist131r
dw OFFSET twist132l,OFFSET twist132r
dw OFFSET twist133l,OFFSET twist133r
dw OFFSET twist134l,OFFSET twist134r
dw OFFSET twist135l,OFFSET twist135r
dw OFFSET twist136l,OFFSET twist136r
dw OFFSET twist137l,OFFSET twist137r
dw OFFSET twist138l,OFFSET twist138r
dw OFFSET twist139l,OFFSET twist139r
dw OFFSET twist140l,OFFSET twist140r
dw OFFSET twist141l,OFFSET twist141r
dw OFFSET twist142l,OFFSET twist142r
dw OFFSET twist143l,OFFSET twist143r
dw OFFSET twist144l,OFFSET twist144r
dw OFFSET twist145l,OFFSET twist145r
dw OFFSET twist146l,OFFSET twist146r
dw OFFSET twist147l,OFFSET twist147r
dw OFFSET twist148l,OFFSET twist148r
dw OFFSET twist149l,OFFSET twist149r
dw OFFSET twist150l,OFFSET twist150r
dw OFFSET twist151l,OFFSET twist151r
dw OFFSET twist152l,OFFSET twist152r
dw OFFSET twist153l,OFFSET twist153r
dw OFFSET twist154l,OFFSET twist154r
dw OFFSET twist155l,OFFSET twist155r
dw OFFSET twist156l,OFFSET twist156r
dw OFFSET twist157l,OFFSET twist157r
dw OFFSET twist158l,OFFSET twist158r
dw OFFSET twist159l,OFFSET twist159r
dw OFFSET twist160l,OFFSET twist160r
dw OFFSET twist161l,OFFSET twist161r
dw OFFSET twist162l,OFFSET twist162r
dw OFFSET twist163l,OFFSET twist163r
dw OFFSET twist164l,OFFSET twist164r
dw OFFSET twist165l,OFFSET twist165r
dw OFFSET twist166l,OFFSET twist166r
dw OFFSET twist167l,OFFSET twist167r
dw OFFSET twist168l,OFFSET twist168r
dw OFFSET twist169l,OFFSET twist169r
dw OFFSET twist170l,OFFSET twist170r
dw OFFSET twist171l,OFFSET twist171r
dw OFFSET twist172l,OFFSET twist172r
dw OFFSET twist173l,OFFSET twist173r
dw OFFSET twist174l,OFFSET twist174r
dw OFFSET twist175l,OFFSET twist175r
dw OFFSET twist176l,OFFSET twist176r
dw OFFSET twist177l,OFFSET twist177r
dw OFFSET twist178l,OFFSET twist178r
dw OFFSET twist179l,OFFSET twist179r
dw OFFSET twist180l,OFFSET twist180r
dw OFFSET twist181l,OFFSET twist181r
dw OFFSET twist182l,OFFSET twist182r
dw OFFSET twist183l,OFFSET twist183r
dw OFFSET twist184l,OFFSET twist184r
dw OFFSET twist185l,OFFSET twist185r
dw OFFSET twist186l,OFFSET twist186r
dw OFFSET twist187l,OFFSET twist187r
dw OFFSET twist188l,OFFSET twist188r
dw OFFSET twist189l,OFFSET twist189r
dw OFFSET twist190l,OFFSET twist190r
dw OFFSET twist191l,OFFSET twist191r
dw OFFSET twist192l,OFFSET twist192r
dw OFFSET twist193l,OFFSET twist193r
dw OFFSET twist194l,OFFSET twist194r
dw OFFSET twist195l,OFFSET twist195r
dw OFFSET twist196l,OFFSET twist196r
dw OFFSET twist197l,OFFSET twist197r
dw OFFSET twist198l,OFFSET twist198r
dw OFFSET twist199l,OFFSET twist199r
twist PROC NEAR
twist0l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,00000h
mov ds:[di+0],ax
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ds:[di+24],ax
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist0r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03535h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ds:[di+54],ax
mov ax,00014h
mov ds:[di+56],ax
mov ax,00000h
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist1l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,00000h
mov ds:[di+0],ax
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ds:[di+24],ax
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist1r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03535h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ds:[di+54],ax
mov ax,00014h
mov ds:[di+56],ax
mov ax,00000h
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist2l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,00000h
mov ds:[di+0],ax
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ds:[di+24],ax
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist2r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03535h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist3l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,00000h
mov ds:[di+0],ax
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ds:[di+24],ax
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist3r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03535h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist4l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,00000h
mov ds:[di+0],ax
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ds:[di+24],ax
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist4r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03535h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist5l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,00000h
mov ds:[di+0],ax
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ds:[di+24],ax
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist5r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03535h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist6l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0003Fh
mov ds:[di+0],ax
mov ax,00000h
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ax,03500h
mov ds:[di+24],ax
mov ax,03535h
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist6r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03535h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ax,02E34h
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist7l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0003Fh
mov ds:[di+0],ax
mov ax,00000h
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ax,03200h
mov ds:[di+24],ax
mov ax,03232h
mov ds:[di+26],ax
mov ax,03434h
mov ds:[di+28],ax
mov ax,03534h
mov ds:[di+30],ax
mov ax,03535h
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist7r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03232h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ax,03333h
mov ds:[di+52],ax
mov ax,01133h
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist8l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0003Fh
mov ds:[di+0],ax
mov ax,00000h
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ax,03200h
mov ds:[di+24],ax
mov ax,03232h
mov ds:[di+26],ax
mov ax,03432h
mov ds:[di+28],ax
mov ax,03534h
mov ds:[di+30],ax
mov ax,03535h
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist8r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,03030h
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ax,03131h
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ax,00031h
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist9l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0003Fh
mov ds:[di+0],ax
mov ax,00000h
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ax,02B00h
mov ds:[di+24],ax
mov ax,03232h
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ax,03432h
mov ds:[di+32],ax
mov ax,03434h
mov ds:[di+34],ax
mov ax,03535h
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist9r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0302Fh
mov ds:[di+40],ax
mov ax,03030h
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ax,03130h
mov ds:[di+52],ax
mov ax,00031h
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist10l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0003Fh
mov ds:[di+0],ax
mov ax,00000h
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ax,02600h
mov ds:[di+24],ax
mov ax,03232h
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ax,03434h
mov ds:[di+34],ax
mov ax,03535h
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist10r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,02F2Fh
mov ds:[di+40],ax
mov ax,0302Fh
mov ds:[di+42],ax
mov ax,03030h
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ax,00030h
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist11l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0003Fh
mov ds:[di+0],ax
mov ax,00000h
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ax,00500h
mov ds:[di+24],ax
mov ax,03131h
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ax,03231h
mov ds:[di+32],ax
mov ax,03333h
mov ds:[di+34],ax
mov ax,03535h
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist11r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,02F2Fh
mov ds:[di+40],ax
mov ax,0302Fh
mov ds:[di+42],ax
mov ax,03030h
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ax,00030h
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist12l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0003Fh
mov ds:[di+0],ax
mov ax,00000h
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ds:[di+24],ax
mov ax,03131h
mov ds:[di+26],ax
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist12r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,02F2Fh
mov ds:[di+40],ax
mov ax,0302Fh
mov ds:[di+42],ax
mov ax,03030h
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ax,0002Ah
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax
mov ds:[di+78],ax
ret
twist13l:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,0003Fh
mov ds:[di+0],ax
mov ax,00000h
mov ds:[di+2],ax
mov ds:[di+4],ax
mov ds:[di+6],ax
mov ds:[di+8],ax
mov ds:[di+10],ax
mov ds:[di+12],ax
mov ds:[di+14],ax
mov ds:[di+16],ax
mov ds:[di+18],ax
mov ds:[di+20],ax
mov ds:[di+22],ax
mov ds:[di+24],ax
mov ax,02F2Eh
mov ds:[di+26],ax
mov ax,02F2Fh
mov ds:[di+28],ax
mov ds:[di+30],ax
mov ds:[di+32],ax
mov ds:[di+34],ax
mov ax,03030h
mov ds:[di+36],ax
mov ds:[di+38],ax
ret
twist13r:
mov dx,3c4h
mov ax,0f02h
out dx,ax
mov ax,02F2Fh
mov ds:[di+40],ax
mov ds:[di+42],ax
mov ds:[di+44],ax
mov ds:[di+46],ax
mov ds:[di+48],ax
mov ds:[di+50],ax
mov ds:[di+52],ax
mov ax,0000Fh
mov ds:[di+54],ax
mov ax,00000h
mov ds:[di+56],ax
mov ds:[di+58],ax
mov ds:[di+60],ax
mov ds:[di+62],ax
mov ds:[di+64],ax
mov ds:[di+66],ax
mov ds:[di+68],ax
mov ds:[di+70],ax
mov ds:[di+72],ax
mov ds:[di+74],ax
mov ds:[di+76],ax