This repository has been archived by the owner on Sep 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
x86imkasm.ml
3253 lines (2583 loc) · 139 KB
/
x86imkasm.ml
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
module M (R : Sledlib.RELOC_PRINT) = struct
module Reloc = R
type rel8 = Sledlib.String.t
type rel16 = Sledlib.String.t
type rel32 = Sledlib.String.t
type mem = Sledlib.String.t
type eaddr = Sledlib.String.t
type t = Sledlib.String.t
let print_unsigned_reloc reloc =
Sledlib.String.signed_operand reloc
let base_names : string array = Array.of_list
["eAX"; "eCX"; "eDX"; "eBX"; "eSP"; "eBP"; "eSI"; "eDI"]
let print_unsigned_base base =
Sledlib.String.getname base_names base "base"
let ss_names : string array = Array.of_list ["1"; "2"; "4"; "8"]
let print_unsigned_ss ss =
Sledlib.String.getname ss_names ss "ss"
let print_Mem mem =
mem
let print_signed_i8 i8 =
Sledlib.String.signed_operand i8
let print_signed_i16 i16 =
Sledlib.String.signed_operand i16
let print_signed_i32 i32 =
Sledlib.String.signed_operand i32
let print_Eaddr eaddr =
eaddr
let print_unsigned_i16 i16 =
Sledlib.String.signed_operand i16
let sr16_names : string array = Array.of_list
["??sr16=0?!"; "cs"; "ss"; "ds"; "es"; "fs"; "gs"; "??sr16=7?!"]
let print_unsigned_sr16 sr16 =
Sledlib.String.getname sr16_names sr16 "sr16"
let r8_names : string array = Array.of_list
["AL"; "CL"; "DL"; "BL"; "AH"; "CH"; "DH"; "BH"]
let print_unsigned_r8 r8 =
Sledlib.String.getname r8_names r8 "r8"
let r16_names : string array = Array.of_list
["AX"; "CX"; "DX"; "BX"; "SP"; "BP"; "SI"; "DI"]
let print_unsigned_r16 r16 =
Sledlib.String.getname r16_names r16 "r16"
let print_unsigned_i8 i8 =
Sledlib.String.signed_operand i8
let print_unsigned_i32 i32 =
Sledlib.String.signed_operand i32
let rel8 reloc =
R.to_string print_unsigned_reloc reloc
let rel16 reloc =
R.to_string print_unsigned_reloc reloc
let rel32 reloc =
R.to_string print_unsigned_reloc reloc
let indir reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string "[")
(print_unsigned_reloc reg)) (Sledlib.String.of_string "]")
let disp8 d reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat (R.to_string
print_unsigned_reloc d) (Sledlib.String.of_string "["))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "]")
let disp32 d reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat (R.to_string
print_unsigned_reloc d) (Sledlib.String.of_string "["))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "]")
let abs32 a =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string "[")
(R.to_string print_unsigned_reloc a)) (Sledlib.String.of_string "]")
let reg reg =
print_unsigned_reloc reg
let index base index ss =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "[") (print_unsigned_base base))
(Sledlib.String.of_string "][")) (print_unsigned_base index))
(Sledlib.String.of_string " * ")) (print_unsigned_ss ss))
(Sledlib.String.of_string "]")
let index8 d base index ss =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (R.to_string print_unsigned_reloc d)
(Sledlib.String.of_string "[")) (print_unsigned_base
base)) (Sledlib.String.of_string "]["))
(print_unsigned_base index)) (Sledlib.String.of_string " * "))
(print_unsigned_ss ss)) (Sledlib.String.of_string "]")
let index32 d base index ss =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (R.to_string print_unsigned_reloc d)
(Sledlib.String.of_string "[")) (print_unsigned_base
base)) (Sledlib.String.of_string "]["))
(print_unsigned_base index)) (Sledlib.String.of_string " * "))
(print_unsigned_ss ss)) (Sledlib.String.of_string "]")
let shortindex d index ss =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.cat (R.to_string
print_unsigned_reloc d) (Sledlib.String.of_string "["))
(print_unsigned_base index)) (Sledlib.String.of_string " * "))
(print_unsigned_ss ss)) (Sledlib.String.of_string "]")
let e mem =
print_Mem mem
let addial i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ADDiAL ") (print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let orial i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ORiAL ") (print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let adcial i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ADCiAL ") (print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let sbbial i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"SBBiAL ") (print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let andial i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ANDiAL ") (print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let subial i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"SUBiAL ") (print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let xorial i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"XORiAL ") (print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let cmpial i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"CMPiAL ") (print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let addiax i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ADDiAX ") (print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let oriax i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ORiAX ") (print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let adciax i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ADCiAX ") (print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let sbbiax i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"SBBiAX ") (print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let andiax i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ANDiAX ") (print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let subiax i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"SUBiAX ") (print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let xoriax i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"XORiAX ") (print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let cmpiax i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"CMPiAX ") (print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let addieax i32 =
Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "ADDiEAX ") (print_signed_i32 i32))
(Sledlib.String.of_string "\n")
let orieax i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"ORiEAX ") (print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let adcieax i32 =
Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "ADCiEAX ") (print_signed_i32 i32))
(Sledlib.String.of_string "\n")
let sbbieax i32 =
Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "SBBiEAX ") (print_signed_i32 i32))
(Sledlib.String.of_string "\n")
let andieax i32 =
Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "ANDiEAX ") (print_signed_i32 i32))
(Sledlib.String.of_string "\n")
let subieax i32 =
Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "SUBiEAX ") (print_signed_i32 i32))
(Sledlib.String.of_string "\n")
let xorieax i32 =
Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "XORiEAX ") (print_signed_i32 i32))
(Sledlib.String.of_string "\n")
let cmpieax i32 =
Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "CMPiEAX ") (print_signed_i32 i32))
(Sledlib.String.of_string "\n")
let addib eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDib ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let orib eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORib ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let adcib eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCib ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let sbbib eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBib ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let andib eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDib ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let subib eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBib ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let xorib eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORib ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let cmpib eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPib ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let addiw eaddr i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDiw ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let oriw eaddr i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORiw ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let adciw eaddr i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCiw ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let sbbiw eaddr i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBiw ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let andiw eaddr i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDiw ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let subiw eaddr i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBiw ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let xoriw eaddr i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORiw ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let cmpiw eaddr i16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPiw ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i16 i16)) (Sledlib.String.of_string "\n")
let addid eaddr i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDid ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let orid eaddr i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORid ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let adcid eaddr i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCid ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let sbbid eaddr i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBid ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let andid eaddr i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDid ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let subid eaddr i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBid ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let xorid eaddr i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORid ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let cmpid eaddr i32 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPid ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i32 i32)) (Sledlib.String.of_string "\n")
let addiowb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDiowb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let addiodb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDiodb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let oriowb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORiowb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let oriodb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORiodb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let adciowb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCiowb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let adciodb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCiodb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let sbbiowb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBiowb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let sbbiodb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBiodb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let andiowb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDiowb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let andiodb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDiodb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let subiowb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBiowb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let subiodb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBiodb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let xoriowb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORiowb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let xoriodb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORiodb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let cmpiowb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPiowb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let cmpiodb eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPiodb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let addmrb eaddr reg8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDmrb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg8)) (Sledlib.String.of_string "\n")
let ormrb eaddr reg8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORmrb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg8)) (Sledlib.String.of_string "\n")
let adcmrb eaddr reg8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCmrb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg8)) (Sledlib.String.of_string "\n")
let sbbmrb eaddr reg8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBmrb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg8)) (Sledlib.String.of_string "\n")
let andmrb eaddr reg8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDmrb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg8)) (Sledlib.String.of_string "\n")
let submrb eaddr reg8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBmrb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg8)) (Sledlib.String.of_string "\n")
let xormrb eaddr reg8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORmrb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg8)) (Sledlib.String.of_string "\n")
let cmpmrb eaddr reg8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPmrb ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg8)) (Sledlib.String.of_string "\n")
let addmrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDmrow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let addmrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDmrod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let ormrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORmrow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let ormrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORmrod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let adcmrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCmrow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let adcmrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCmrod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let sbbmrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBmrow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let sbbmrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBmrod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let andmrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDmrow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let andmrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDmrod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let submrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBmrow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let submrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBmrod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let xormrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORmrow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let xormrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORmrod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let cmpmrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPmrow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let cmpmrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPmrod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let addrmb reg8 eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDrmb ")
(print_unsigned_reloc reg8)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let orrmb reg8 eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORrmb ")
(print_unsigned_reloc reg8)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let adcrmb reg8 eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCrmb ")
(print_unsigned_reloc reg8)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let sbbrmb reg8 eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBrmb ")
(print_unsigned_reloc reg8)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let andrmb reg8 eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDrmb ")
(print_unsigned_reloc reg8)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let subrmb reg8 eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBrmb ")
(print_unsigned_reloc reg8)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let xorrmb reg8 eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORrmb ")
(print_unsigned_reloc reg8)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let cmprmb reg8 eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPrmb ")
(print_unsigned_reloc reg8)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let addrmow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDrmow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let addrmod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADDrmod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let orrmow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORrmow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let orrmod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ORrmod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let adcrmow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCrmow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let adcrmod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ADCrmod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let sbbrmow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBrmow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let sbbrmod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SBBrmod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let andrmow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDrmow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let andrmod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ANDrmod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let subrmow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBrmow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let subrmod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "SUBrmod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let xorrmow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORrmow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let xorrmod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "XORrmod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let cmprmow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPrmow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let cmprmod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CMPrmod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let aaa () =
Sledlib.String.cat (Sledlib.String.of_string "AAA")
(Sledlib.String.of_string "\n")
let aad () =
Sledlib.String.cat (Sledlib.String.of_string "AAD")
(Sledlib.String.of_string "\n")
let aam () =
Sledlib.String.cat (Sledlib.String.of_string "AAM")
(Sledlib.String.of_string "\n")
let aas () =
Sledlib.String.cat (Sledlib.String.of_string "AAS")
(Sledlib.String.of_string "\n")
let arpl eaddr reg16 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "ARPL ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg16)) (Sledlib.String.of_string "\n")
let boundow reg mem =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BOUNDow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Mem mem)) (Sledlib.String.of_string "\n")
let boundod reg mem =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BOUNDod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Mem mem)) (Sledlib.String.of_string "\n")
let bsfow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BSFow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let bsfod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BSFod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let bsrow reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BSRow ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let bsrod reg eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BSRod ")
(print_unsigned_reloc reg)) (Sledlib.String.of_string ", "))
(print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let bswap r32 =
Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.of_string "BSWAP ") (print_unsigned_base r32))
(Sledlib.String.of_string "\n")
let btow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let btod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let btiow eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTiow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let btiod eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTiod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let btcow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTCow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let btcod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTCod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let btciow eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTCiow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let btciod eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTCiod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let btrow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTRow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let btrod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTRod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let btriow eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTRiow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let btriod eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTRiod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let btsow eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTSow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let btsod eaddr reg =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTSod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_unsigned_reloc reg)) (Sledlib.String.of_string "\n")
let btsiow eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTSiow ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let btsiod eaddr i8 =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "BTSiod ")
(print_Eaddr eaddr)) (Sledlib.String.of_string ", "))
(print_signed_i8 i8)) (Sledlib.String.of_string "\n")
let call_jvow reloc =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"CALL.Jvow ") (R.to_string print_unsigned_reloc reloc))
(Sledlib.String.of_string "\n")
let call_jvod reloc =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"CALL.Jvod ") (R.to_string print_unsigned_reloc reloc))
(Sledlib.String.of_string "\n")
let call_epow mem =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"CALL.Epow ") (print_Mem mem)) (Sledlib.String.of_string "\n")
let call_epod mem =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"CALL.Epod ") (print_Mem mem)) (Sledlib.String.of_string "\n")
let call_apow cs ip =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CALL.aPow ")
(print_unsigned_reloc cs)) (Sledlib.String.of_string ": "))
(print_unsigned_reloc ip)) (Sledlib.String.of_string "\n")
let call_apod cs ip =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.cat
(Sledlib.String.cat (Sledlib.String.of_string "CALL.aPod ")
(print_unsigned_reloc cs)) (Sledlib.String.of_string ": "))
(print_unsigned_reloc ip)) (Sledlib.String.of_string "\n")
let call_evow eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"CALL.Evow ") (print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let call_evod eaddr =
Sledlib.String.cat (Sledlib.String.cat (Sledlib.String.of_string
"CALL.Evod ") (print_Eaddr eaddr)) (Sledlib.String.of_string "\n")
let cbw () =
Sledlib.String.cat (Sledlib.String.of_string "CBW")
(Sledlib.String.of_string "\n")
let cwde () =
Sledlib.String.cat (Sledlib.String.of_string "CWDE")
(Sledlib.String.of_string "\n")
let clc () =
Sledlib.String.cat (Sledlib.String.of_string "CLC")
(Sledlib.String.of_string "\n")
let cld () =
Sledlib.String.cat (Sledlib.String.of_string "CLD")
(Sledlib.String.of_string "\n")
let cli () =
Sledlib.String.cat (Sledlib.String.of_string "CLI")
(Sledlib.String.of_string "\n")
let clts () =
Sledlib.String.cat (Sledlib.String.of_string "CLTS")
(Sledlib.String.of_string "\n")
let cmc () =
Sledlib.String.cat (Sledlib.String.of_string "CMC")
(Sledlib.String.of_string "\n")
let cmpsbaw () =
Sledlib.String.cat (Sledlib.String.of_string "CMPSBaw")
(Sledlib.String.of_string "\n")
let cmpsbad () =
Sledlib.String.cat (Sledlib.String.of_string "CMPSBad")