-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuIced.Imports_.pas
2696 lines (2347 loc) · 162 KB
/
uIced.Imports_.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
unit uIced.Imports;
{
Iced (Dis)Assembler
TetzkatLipHoka 2022-2024
}
interface
{$DEFINE AUTO_INIT} // AutoInit/DeInit DLL(s) during initialization/finalization
{.$DEFINE VERCHECK} // Perform Version-Check and inform on missmatch
{$DEFINE OnlyWarnOnLowerVersions}
{.$DEFINE SILENT} // Don't show any warnings (missing DLL, Version-Missmatch) but Linking Errors
{.$DEFINE CLOSE_APP_ON_FAIL}
{$DEFINE WARN_DLLs_IN_FOLDER} // Warning if DLLs are present in Application-Folder
{.$DEFINE IGNORE_LINKING_ERRORS} // Ignore linking errors (DEBUG)
{.$DEFINE LIST_MISSING_MODULES} // uses MemoryModule
// ResourceFile
{$DEFINE ResourceMode} // Load DLL from Resourcefile
{$IFDEF ResourceMode}
{.$R Iced.res} // DLL-ResourceFile (each DLLName without extension as RCDATA)
{$IFDEF Win64}
{$R Iced64.res} // DLL-ResourceFile (each DLLName without extension as RCDATA)
{$ELSE}
{$R Iced86.res} // DLL-ResourceFile (each DLLName without extension as RCDATA)
{$ENDIF}
{$ENDIF}
{$DEFINE ResourceCompression} // DLLs in ResourceFile are 7zip compressed (JEDI-Unit)
{$DEFINE PREFER_DLL_IN_FOLDER} // If DLL is present in ApplicationFolder use it
{$DEFINE MemoryModule} // use MemoryModule (Load without HDD-caching)
{$DEFINE GetModuleHandle} // Try GetModuleHandle before LoadLibrary
{.$DEFINE ONLY_LOADLIBRARY_ERRORS} // Ignore 'GetLastError <> ERROR_SUCCESS' unless LoadLibrary actually failed
{$IF CompilerVersion >= 22}
{$LEGACYIFEND ON}
{$IFEND}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{$DEFINE section_INTERFACE_USES}
{$I DynamicDLL.inc}
{$UNDEF section_INTERFACE_USES}
,uIced.Types
;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{$DEFINE section_INTERFACE}
{$I DynamicDLL.inc}
{$UNDEF section_INTERFACE}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Constantes~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const
DLLCount_ = 1;
var
DLLPath_ : Array [0..DLLCount_-1] of String = ( '' );
const
DLLLoadDLL_ : Array [0..DLLCount_-1] of boolean = ( True );
{$IFDEF Win64}
DLLName_ : Array [0..DLLCount_-1] of String = ( 'Iced64.dll' );
{$ELSE}
DLLName_ : Array [0..DLLCount_-1] of String = ( 'Iced.dll' );
{$ENDIF}
DLLVersion_ : Array [0..DLLCount_-1] of String = ( '1.0.4.0' );
{$IFDEF ResourceMode}
DLLPass_ : Array [0..DLLCount_-1] of String = ( '' );
{$ENDIF}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DLL Declarations~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{$WARNINGS OFF}
{$DEFINE section_Declaration} // Include
{.$I Iced.inc}
{$UNDEF section_Declaration}
var
// Free Memory
IcedFreeMemory : function( Pointer : Pointer ) : Boolean; cdecl = nil;
// Creates a decoder
//
// # Errors
// Fails if `bitness` is not one of 16, 32, 64.
//
// # Arguments
// * `bitness`: 16, 32 or 64
// * `data`: Data to decode
// * `data`: ByteSize of `Data`
// * `options`: Decoder options, `0` or eg. `DecoderOptions::NO_INVALID_CHECK | DecoderOptions::AMD`
Decoder_Create : function( Bitness : Cardinal; Data : PByte; DataSize : NativeUInt; IP : UInt64; Options : Cardinal = doNONE ) : Pointer; cdecl = nil;
// Returns `true` if there's at least one more byte to decode. It doesn't verify that the
// next instruction is valid, it only checks if there's at least one more byte to read.
// See also [`position()`] and [`max_position()`]
//
// It's not required to call this method. If this method returns `false`, then [`decode_out()`]
// and [`decode()`] will return an instruction whose [`code()`] == [`Code::INVALID`].
Decoder_CanDecode : function( Decoder : Pointer ) : Boolean; cdecl = nil;
// Gets the current `IP`/`EIP`/`RIP` value, see also [`position()`]
Decoder_GetIP : function( Decoder : Pointer ) : UInt64; cdecl = nil;
// Sets the current `IP`/`EIP`/`RIP` value, see also [`try_set_position()`]
// This method only updates the IP value, it does not change the data position, use [`try_set_position()`] to change the position.
Decoder_SetIP : function ( Decoder : Pointer; Value : UInt64 ) : boolean; cdecl = nil;
// Gets the bitness (16, 32 or 64)
Decoder_GetBitness : function( Decoder : Pointer ) : Cardinal; cdecl = nil;
// Gets the max value that can be passed to [`try_set_position()`]. This is the size of the data that gets
// decoded to instructions and it's the length of the slice that was passed to the constructor.
Decoder_GetMaxPosition : function( Decoder : Pointer ) : NativeUInt; cdecl = nil;
// Gets the current data position. This value is always <= [`max_position()`].
// When [`position()`] == [`max_position()`], it's not possible to decode more
// instructions and [`can_decode()`] returns `false`.
Decoder_GetPosition : function( Decoder : Pointer ) : NativeUInt; cdecl = nil;
// Sets the current data position, which is the index into the data passed to the constructor.
// This value is always <= [`max_position()`]
Decoder_SetPosition : function ( Decoder : Pointer; Value : NativeUInt ) : boolean; cdecl = nil;
// Gets the last decoder error. Unless you need to know the reason it failed,
// it's better to check [`instruction.is_invalid()`].
Decoder_GetLastError : function( Decoder : Pointer ) : TDecoderError; cdecl = nil;
DecoderError_AsString : procedure( const DecoderError : TDecoderErrorType; Output: PAnsiChar; Size : NativeUInt ); cdecl = nil;
// Decodes and returns the next instruction, see also [`decode_out(&mut Instruction)`]
// which avoids copying the decoded instruction to the caller's return variable.
// See also [`last_error()`].
Decoder_Decode : procedure( Decoder : Pointer; const Instruction : TInstruction ); cdecl = nil;
Decoder_DecodeToEnd : procedure( Decoder : Pointer; Callback : TDecoderCallback; UserData : Pointer = nil ); cdecl = nil;
// Gets the offsets of the constants (memory displacement and immediate) in the decoded instruction.
// The caller can check if there are any relocations at those addresses.
//
// # Arguments
// * `instruction`: The latest instruction that was decoded by this decoder
Decoder_GetConstantOffsets : function( Decoder : Pointer; const Instruction : TInstruction; var ConstantOffsets : TConstantOffsets ) : Boolean; cdecl = nil;
// Creates a formatter Output Callback
FormatterOutput_Create : function( Callback : TFormatterOutputCallback; UserData : Pointer = nil ) : Pointer; cdecl = nil;
// Creates a masm formatter
//
// # Arguments
// - `symbol_resolver`: Symbol resolver or `None`
// - `options_provider`: Operand options provider or `None`
MasmFormatter_Create : function( SymbolResolver : TSymbolResolverCallback = nil; OptionsProvider : TFormatterOptionsProviderCallback = nil; UserData : Pointer = nil ) : Pointer; cdecl = nil;
// Format Instruction
MasmFormatter_DecodeFormat : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
MasmFormatter_DecodeFormatCallback : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
MasmFormatter_Format : procedure( Formatter : Pointer; const Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
MasmFormatter_FormatCallback : procedure( Formatter : Pointer; const Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
MasmFormatter_DecodeFormatToEnd : procedure( Decoder : Pointer; Formatter : Pointer; Callback : TDecoderFormatCallback; UserData : Pointer = nil ); cdecl = nil;
// Creates a Nasm formatter
//
// # Arguments
// - `symbol_resolver`: Symbol resolver or `None`
// - `options_provider`: Operand options provider or `None`
NasmFormatter_Create : function( SymbolResolver : TSymbolResolverCallback = nil; OptionsProvider : TFormatterOptionsProviderCallback = nil; UserData : Pointer = nil ) : Pointer; cdecl = nil;
// Format Instruction
NasmFormatter_DecodeFormat : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
NasmFormatter_DecodeFormatCallback : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
NasmFormatter_Format : procedure( Formatter : Pointer; const Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
NasmFormatter_FormatCallback : procedure( Formatter : Pointer; const Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
NasmFormatter_DecodeFormatToEnd : procedure( Decoder : Pointer; Formatter : Pointer; Callback : TDecoderFormatCallback; UserData : Pointer = nil ); cdecl = nil;
// Creates a Gas formatter
//
// # Arguments
// - `symbol_resolver`: Symbol resolver or `None`
// - `options_provider`: Operand options provider or `None`
GasFormatter_Create : function( SymbolResolver : TSymbolResolverCallback = nil; OptionsProvider : TFormatterOptionsProviderCallback = nil; UserData : Pointer = nil ) : Pointer; cdecl = nil;
// Format Instruction
GasFormatter_DecodeFormat : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
GasFormatter_DecodeFormatCallback : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
GasFormatter_Format : procedure( Formatter : Pointer; const Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
GasFormatter_FormatCallback : procedure( Formatter : Pointer; const Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
GasFormatter_DecodeFormatToEnd : procedure( Decoder : Pointer; Formatter : Pointer; Callback : TDecoderFormatCallback; UserData : Pointer = nil ); cdecl = nil;
// Creates a Intel formatter
//
// # Arguments
// - `symbol_resolver`: Symbol resolver or `None`
// - `options_provider`: Operand options provider or `None`
IntelFormatter_Create : function( SymbolResolver : TSymbolResolverCallback = nil; OptionsProvider : TFormatterOptionsProviderCallback = nil; UserData : Pointer = nil ) : Pointer; cdecl = nil;
// Format Instruction
IntelFormatter_DecodeFormat : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
IntelFormatter_DecodeFormatCallback : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
IntelFormatter_Format : procedure( Formatter : Pointer; const Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
IntelFormatter_FormatCallback : procedure( Formatter : Pointer; const Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
IntelFormatter_DecodeFormatToEnd : procedure( Decoder : Pointer; Formatter : Pointer; Callback : TDecoderFormatCallback; UserData : Pointer = nil ); cdecl = nil;
// Creates a Fast formatter (Specialized)
// NOTE: Fast Formatter only supports Specialized-Options
FastFormatter_Create : function( SymbolResolver : TSymbolResolverCallback = nil; UserData : Pointer = nil ) : Pointer; cdecl = nil;
// Format Instruction
FastFormatter_DecodeFormat : procedure( Decoder : Pointer; Formatter : Pointer; var Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
FastFormatter_Format : procedure( Formatter : Pointer; const Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
FastFormatter_DecodeFormatToEnd : procedure( Decoder : Pointer; Formatter : Pointer; Callback : TDecoderFormatCallback; UserData : Pointer = nil ); cdecl = nil;
// Creates a Specialized formatter
SpecializedFormatter_Create : function( SymbolResolver : TSymbolResolverCallback = nil; UserData : Pointer = nil ) : Pointer; cdecl = nil;
// Format Instruction
SpecializedFormatter_DecodeFormat : procedure( Decoder : Pointer; Formatter : Pointer; Options : Byte; var Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
SpecializedFormatter_Format : procedure( Formatter : Pointer; Options : Byte; const Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
SpecializedFormatter_DecodeFormatToEnd : procedure( Decoder : Pointer; Formatter : Pointer; Options : Byte; Callback : TDecoderFormatCallback; UserData : Pointer = nil ); cdecl = nil;
// Options
// NOTE: Specialized Formatter only supports the following Options
// Always show the size of memory operands
//
// Default | Value | Example | Example
// --------|-------|---------|--------
// _ | `true` | `mov eax,dword ptr [ebx]` | `add byte ptr [eax],0x12`
// X | `false` | `mov eax,[ebx]` | `add byte ptr [eax],0x12`
SpecializedFormatter_GetAlwaysShowMemorySize : function( Formatter: Pointer ) : boolean; cdecl = nil;
// Always show the size of memory operands
//
// Default | Value | Example | Example
// --------|-------|---------|--------
// _ | `true` | `mov eax,dword ptr [ebx]` | `add byte ptr [eax],0x12`
// X | `false` | `mov eax,[ebx]` | `add byte ptr [eax],0x12`
//
// # Arguments
// * `value`: New value
SpecializedFormatter_SetAlwaysShowMemorySize : function( Formatter: Pointer; Value : Boolean ) : boolean; cdecl = nil;
// Use a hex prefix ( `0x` ) or a hex suffix ( `h` )
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `0x5A`
// X | `false` | `5Ah`
SpecializedFormatter_GetUseHexPrefix : function( Formatter: Pointer ) : boolean; cdecl = nil;
// Use a hex prefix ( `0x` ) or a hex suffix ( `h` )
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `0x5A`
// X | `false` | `5Ah`
//
// # Arguments
// * `value`: New value
SpecializedFormatter_SetUseHexPrefix : function( Formatter: Pointer; Value : Boolean ) : boolean; cdecl = nil;
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Formatter Options
// Format Instruction
Formatter_Format : procedure( Formatter : Pointer; FormatterType : TIcedFormatterType; const Instruction: TInstruction; var Output: PAnsiChar; var Size : NativeUInt ); cdecl = nil;
Formatter_FormatCallback : procedure( Formatter : Pointer; FormatterType : TIcedFormatterType; const Instruction: TInstruction; FormatterOutput: Pointer ); cdecl = nil;
// Prefixes are uppercased
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `REP stosd`
// X | `false` | `rep stosd`
Formatter_GetUpperCasePrefixes : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Prefixes are uppercased
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `REP stosd`
// X | `false` | `rep stosd`
//
// # Arguments
//
// * `value`: New value
Formatter_SetUpperCasePrefixes : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Mnemonics are uppercased
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `MOV rcx,rax`
// X | `false` | `mov rcx,rax`
Formatter_GetUpperCaseMnemonics : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Mnemonics are uppercased
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `MOV rcx,rax`
// X | `false` | `mov rcx,rax`
//
// # Arguments
// * `value`: New value
Formatter_SetUpperCaseMnemonics : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Registers are uppercased
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov RCX,[RAX+RDX*8]`
// X | `false` | `mov rcx,[rax+rdx*8]`
Formatter_GetUpperCaseRegisters : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Registers are uppercased
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov RCX,[RAX+RDX*8]`
// X | `false` | `mov rcx,[rax+rdx*8]`
//
// # Arguments
// * `value`: New value
Formatter_SetUpperCaseRegisters : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Keywords are uppercased ( eg. `BYTE PTR`, `SHORT` )
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov BYTE PTR [rcx],12h`
// X | `false` | `mov byte ptr [rcx],12h`
Formatter_GetUpperCaseKeyWords : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Keywords are uppercased ( eg. `BYTE PTR`, `SHORT` )
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov BYTE PTR [rcx],12h`
// X | `false` | `mov byte ptr [rcx],12h`
//
// # Arguments
// * `value`: New value
Formatter_SetUpperCaseKeyWords : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Uppercase decorators, eg. `{z ); `, `{sae ); `, `{rd-sae ); ` ( but not opmask registers: `{k1 ); ` )
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `vunpcklps xmm2{k5 ); {Z ); ,xmm6,dword bcst [rax+4]`
// X | `false` | `vunpcklps xmm2{k5 ); {z ); ,xmm6,dword bcst [rax+4]`
Formatter_GetUpperCaseDecorators : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Uppercase decorators, eg. `{z ); `, `{sae ); `, `{rd-sae ); ` ( but not opmask registers: `{k1 ); ` )
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `vunpcklps xmm2{k5 ); {Z ); ,xmm6,dword bcst [rax+4]`
// X | `false` | `vunpcklps xmm2{k5 ); {z ); ,xmm6,dword bcst [rax+4]`
//
// # Arguments
// * `value`: New value
Formatter_SetUpperCaseDecorators : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Everything is uppercased, except numbers and their prefixes/suffixes
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `MOV EAX,GS:[RCX*4+0ffh]`
// X | `false` | `mov eax,gs:[rcx*4+0ffh]`
Formatter_GetUpperCaseEverything : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Everything is uppercased, except numbers and their prefixes/suffixes
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `MOV EAX,GS:[RCX*4+0ffh]`
// X | `false` | `mov eax,gs:[rcx*4+0ffh]`
//
// # Arguments
//
// * `value`: New value
Formatter_SetUpperCaseEverything : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Character index ( 0-based ) where the first operand is formatted. Can be set to 0 to format it immediately after the mnemonic.
// At least one space or tab is always added between the mnemonic and the first operand.
//
// Default | Value | Example
// --------|-------|--------
// X | `0` | `movrcx,rbp`
// _ | `8` | `movrcx,rbp`
Formatter_GetFirstOperandCharIndex : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : Cardinal; cdecl = nil;
// Character index ( 0-based ) where the first operand is formatted. Can be set to 0 to format it immediately after the mnemonic.
// At least one space or tab is always added between the mnemonic and the first operand.
//
// Default | Value | Example
// --------|-------|--------
// X | `0` | `movrcx,rbp`
// _ | `8` | `movrcx,rbp`
//
// # Arguments
// * `value`: New value
Formatter_SetFirstOperandCharIndex : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Cardinal ) : boolean; cdecl = nil;
// Size of a tab character or 0 to use spaces
//
// - Default: `0`
Formatter_GetTabSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : Cardinal; cdecl = nil;
// Size of a tab character or 0 to use spaces
//
// - Default: `0`
//
// # Arguments
//
// * `value`: New value
Formatter_SetTabSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Cardinal ) : boolean; cdecl = nil;
// Add a space after the operand separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov rax, rcx`
// X | `false` | `mov rax,rcx`
Formatter_GetSpaceAfterOperandSeparator : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Add a space after the operand separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov rax, rcx`
// X | `false` | `mov rax,rcx`
//
// # Arguments
// * `value`: New value
Formatter_SetSpaceAfterOperandSeparator : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Add a space between the memory expression and the brackets
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[ rcx+rdx ]`
// X | `false` | `mov eax,[rcx+rdx]`
Formatter_GetSpaceAfterMemoryBracket : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Add a space between the memory expression and the brackets
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[ rcx+rdx ]`
// X | `false` | `mov eax,[rcx+rdx]`
//
// # Arguments
// * `value`: New value
Formatter_SetSpaceAfterMemoryBracket : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Add spaces between memory operand `+` and `-` operators
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rcx + rdx*8 - 80h]`
// X | `false` | `mov eax,[rcx+rdx*8-80h]`
Formatter_GetSpaceBetweenMemoryAddOperators : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Add spaces between memory operand `+` and `-` operators
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rcx + rdx*8 - 80h]`
// X | `false` | `mov eax,[rcx+rdx*8-80h]`
//
// # Arguments
// * `value`: New value
Formatter_SetSpaceBetweenMemoryAddOperators : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Add spaces between memory operand `*` operator
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rcx+rdx * 8-80h]`
// X | `false` | `mov eax,[rcx+rdx*8-80h]`
Formatter_GetSpaceBetweenMemoryMulOperators : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Add spaces between memory operand `*` operator
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rcx+rdx * 8-80h]`
// X | `false` | `mov eax,[rcx+rdx*8-80h]`
//
// # Arguments
// * `value`: New value
Formatter_SetSpaceBetweenMemoryMulOperators : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Show memory operand scale value before the index register
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[8*rdx]`
// X | `false` | `mov eax,[rdx*8]`
Formatter_GetScaleBeforeIndex : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Show memory operand scale value before the index register
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[8*rdx]`
// X | `false` | `mov eax,[rdx*8]`
//
// # Arguments
// * `value`: New value
Formatter_SetScaleBeforeIndex : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Always show the scale value even if it's `*1`
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rbx+rcx*1]`
// X | `false` | `mov eax,[rbx+rcx]`
Formatter_GetAlwaysShowScale : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Always show the scale value even if it's `*1`
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rbx+rcx*1]`
// X | `false` | `mov eax,[rbx+rcx]`
//
// # Arguments
// * `value`: New value
Formatter_SetAlwaysShowScale : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Always show the effective segment register. If the option is `false`, only show the segment register if
// there's a segment override prefix.
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,ds:[ecx]`
// X | `false` | `mov eax,[ecx]`
Formatter_GetAlwaysShowSegmentRegister : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Always show the effective segment register. If the option is `false`, only show the segment register if
// there's a segment override prefix.
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,ds:[ecx]`
// X | `false` | `mov eax,[ecx]`
//
// # Arguments
// * `value`: New value
Formatter_SetAlwaysShowSegmentRegister : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Show zero displacements
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rcx*2+0]`
// X | `false` | `mov eax,[rcx*2]`
Formatter_GetShowZeroDisplacements : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Show zero displacements
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rcx*2+0]`
// X | `false` | `mov eax,[rcx*2]`
//
// # Arguments
// * `value`: New value
Formatter_SetShowZeroDisplacements : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Hex number prefix or an empty string, eg. `"0x"`
//
// - Default: `""` ( masm/nasm/intel ), `"0x"` ( gas )
Formatter_GetHexPrefix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Hex number prefix or an empty string, eg. `"0x"`
//
// - Default: `""` ( masm/nasm/intel ), `"0x"` ( gas )
//
// # Arguments
// * `value`: New value
Formatter_SetHexPrefix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Hex number suffix or an empty string, eg. `"h"`
//
// - Default: `"h"` ( masm/nasm/intel ), `""` ( gas )
Formatter_GetHexSuffix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Hex number suffix or an empty string, eg. `"h"`
//
// - Default: `"h"` ( masm/nasm/intel ), `""` ( gas )
//
// # Arguments
// * `value`: New value
Formatter_SetHexSuffix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Size of a digit group, see also [`digit_separator( )`]
//
// [`digit_separator( )`]: #method.digit_separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `0` | `0x12345678`
// X | `4` | `0x1234_5678`
Formatter_GetHexDigitGroupSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : Cardinal; cdecl = nil;
// Size of a digit group, see also [`digit_separator( )`]
//
// [`digit_separator( )`]: #method.digit_separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `0` | `0x12345678`
// X | `4` | `0x1234_5678`
//
// # Arguments
// * `value`: New value
Formatter_SetHexDigitGroupSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Cardinal ) : boolean; cdecl = nil;
// Decimal number prefix or an empty string
//
// - Default: `""`
Formatter_GetDecimalPrefix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Decimal number prefix or an empty string
//
// - Default: `""`
//
// # Arguments
// * `value`: New value
Formatter_SetDecimalPrefix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Decimal number suffix or an empty string
//
// - Default: `""`
Formatter_GetDecimalSuffix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Decimal number suffix or an empty string
//
// - Default: `""`
//
// # Arguments
// * `value`: New value
Formatter_SetDecimalSuffix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Size of a digit group, see also [`digit_separator( )`]
//
// [`digit_separator( )`]: #method.digit_separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `0` | `12345678`
// X | `3` | `12_345_678`
Formatter_GetDecimalDigitGroupSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : Cardinal; cdecl = nil;
// Size of a digit group, see also [`digit_separator( )`]
//
// [`digit_separator( )`]: #method.digit_separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `0` | `12345678`
// X | `3` | `12_345_678`
//
// # Arguments
// * `value`: New value
Formatter_SetDecimalDigitGroupSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Cardinal ) : boolean; cdecl = nil;
// Octal number prefix or an empty string
//
// - Default: `""` ( masm/nasm/intel ), `"0"` ( gas )
Formatter_GetOctalPrefix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Octal number prefix or an empty string
//
// - Default: `""` ( masm/nasm/intel ), `"0"` ( gas )
//
// # Arguments
// * `value`: New value
Formatter_SetOctalPrefix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Octal number suffix or an empty string
//
// - Default: `"o"` ( masm/nasm/intel ), `""` ( gas )
Formatter_GetOctalSuffix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Octal number suffix or an empty string
//
// - Default: `"o"` ( masm/nasm/intel ), `""` ( gas )
//
// # Arguments
// * `value`: New value
Formatter_SetOctalSuffix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Size of a digit group, see also [`digit_separator( )`]
//
// [`digit_separator( )`]: #method.digit_separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `0` | `12345670`
// X | `4` | `1234_5670`
Formatter_GetOctalDigitGroupSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : Cardinal; cdecl = nil;
// Size of a digit group, see also [`digit_separator( )`]
//
// [`digit_separator( )`]: #method.digit_separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `0` | `12345670`
// X | `4` | `1234_5670`
//
// # Arguments
// * `value`: New value
Formatter_SetOctalDigitGroupSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Cardinal ) : boolean; cdecl = nil;
// Binary number prefix or an empty string
//
// - Default: `""` ( masm/nasm/intel ), `"0b"` ( gas )
Formatter_GetBinaryPrefix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Binary number prefix or an empty string
//
// - Default: `""` ( masm/nasm/intel ), `"0b"` ( gas )
//
// # Arguments
// * `value`: New value
Formatter_SetBinaryPrefix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Binary number suffix or an empty string
//
// - Default: `"b"` ( masm/nasm/intel ), `""` ( gas )
Formatter_GetBinarySuffix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Binary number suffix or an empty string
//
// - Default: `"b"` ( masm/nasm/intel ), `""` ( gas )
//
// # Arguments
// * `value`: New value
Formatter_SetBinarySuffix : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Size of a digit group, see also [`digit_separator( )`]
//
// [`digit_separator( )`]: #method.digit_separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `0` | `11010111`
// X | `4` | `1101_0111`
Formatter_GetBinaryDigitGroupSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : Cardinal; cdecl = nil;
// Size of a digit group, see also [`digit_separator( )`]
//
// [`digit_separator( )`]: #method.digit_separator
//
// Default | Value | Example
// --------|-------|--------
// _ | `0` | `11010111`
// X | `4` | `1101_0111`
//
// # Arguments
// * `value`: New value
Formatter_SetBinaryDigitGroupSize : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Cardinal ) : boolean; cdecl = nil;
// Digit separator or an empty string. See also eg. [`hex_digit_group_size( )`]
//
// [`hex_digit_group_size( )`]: #method.hex_digit_group_size
//
// Default | Value | Example
// --------|-------|--------
// X | `""` | `0x12345678`
// _ | `"_"` | `0x1234_5678`
Formatter_GetDigitSeparator : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar; Size : NativeUInt ) : NativeUInt; cdecl = nil;
// Digit separator or an empty string. See also eg. [`hex_digit_group_size( )`]
//
// [`hex_digit_group_size( )`]: #method.hex_digit_group_size
//
// Default | Value | Example
// --------|-------|--------
// X | `""` | `0x12345678`
// _ | `"_"` | `0x1234_5678`
//
// # Arguments
// * `value`: New value
Formatter_SetDigitSeparator : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : PAnsiChar ) : boolean; cdecl = nil;
// Add leading zeros to hexadecimal/octal/binary numbers.
// This option has no effect on branch targets and displacements, use [`branch_leading_zeros`]
// and [`displacement_leading_zeros`].
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `0x0000000A`/`0000000Ah`
// X | `false` | `0xA`/`0Ah`
Formatter_GetLeadingZeros : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Add leading zeros to hexadecimal/octal/binary numbers.
// This option has no effect on branch targets and displacements, use [`branch_leading_zeros`]
// and [`displacement_leading_zeros`].
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `0x0000000A`/`0000000Ah`
// X | `false` | `0xA`/`0Ah`
//
// # Arguments
// * `value`: New value
Formatter_SetLeadingZeros : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Use uppercase hex digits
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `0xFF`
// _ | `false` | `0xff`
Formatter_GetUppercaseHex : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Use uppercase hex digits
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `0xFF`
// _ | `false` | `0xff`
//
// # Arguments
// * `value`: New value
Formatter_SetUppercaseHex : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Small hex numbers ( -9 .. 9 ) are shown in decimal
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `9`
// _ | `false` | `0x9`
Formatter_GetSmallHexNumbersInDecimal : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Small hex numbers ( -9 .. 9 ) are shown in decimal
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `9`
// _ | `false` | `0x9`
//
// # Arguments
// * `value`: New value
Formatter_SetSmallHexNumbersInDecimal : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Add a leading zero to hex numbers if there's no prefix and the number starts with hex digits `A-F`
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `0FFh`
// _ | `false` | `FFh`
Formatter_GetAddLeadingZeroToHexNumbers : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Add a leading zero to hex numbers if there's no prefix and the number starts with hex digits `A-F`
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `0FFh`
// _ | `false` | `FFh`
//
// # Arguments
// * `value`: New value
Formatter_SetAddLeadingZeroToHexNumbers : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Number base
//
// - Default: [`Hexadecimal`]
//
// [`Hexadecimal`]: enum.NumberBase.html#variant.Hexadecimal
Formatter_GetNumberBase : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : TNumberBase; cdecl = nil;
// Number base
//
// - Default: [`Hexadecimal`]
//
// [`Hexadecimal`]: enum.NumberBase.html#variant.Hexadecimal
//
// # Arguments
// * `value`: New value
Formatter_SetNumberBase : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : TNumberBase ) : boolean; cdecl = nil;
// Add leading zeros to branch offsets. Used by `CALL NEAR`, `CALL FAR`, `JMP NEAR`, `JMP FAR`, `Jcc`, `LOOP`, `LOOPcc`, `XBEGIN`
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `je 00000123h`
// _ | `false` | `je 123h`
Formatter_GetBranchLeadingZeros : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Add leading zeros to branch offsets. Used by `CALL NEAR`, `CALL FAR`, `JMP NEAR`, `JMP FAR`, `Jcc`, `LOOP`, `LOOPcc`, `XBEGIN`
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `je 00000123h`
// _ | `false` | `je 123h`
//
// # Arguments
// * `value`: New value
Formatter_SetBranchLeadingZeros : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Show immediate operands as signed numbers
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,-1`
// X | `false` | `mov eax,FFFFFFFF`
Formatter_GetSignedImmediateOperands : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Show immediate operands as signed numbers
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,-1`
// X | `false` | `mov eax,FFFFFFFF`
//
// # Arguments
// * `value`: New value
Formatter_SetSignedImmediateOperands : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Displacements are signed numbers
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `mov al,[eax-2000h]`
// _ | `false` | `mov al,[eax+0FFFFE000h]`
Formatter_GetSignedMemoryDisplacements : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Displacements are signed numbers
//
// Default | Value | Example
// --------|-------|--------
// X | `true` | `mov al,[eax-2000h]`
// _ | `false` | `mov al,[eax+0FFFFE000h]`
//
// # Arguments
//
// * `value`: New value
Formatter_SetSignedMemoryDisplacements : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Add leading zeros to displacements
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov al,[eax+00000012h]`
// X | `false` | `mov al,[eax+12h]`
Formatter_GetDisplacementLeadingZeros : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Add leading zeros to displacements
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov al,[eax+00000012h]`
// X | `false` | `mov al,[eax+12h]`
//
// # Arguments
// * `value`: New value
Formatter_SetDisplacementLeadingZeros : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : Boolean ) : Boolean; cdecl = nil;
// Options that control if the memory size ( eg. `DWORD PTR` ) is shown or not.
// This is ignored by the gas ( AT&T ) formatter.
//
// - Default: [`Default`]
//
// [`Default`]: enum.MemorySizeOptions.html#variant.Default
Formatter_GetMemorySizeOptions : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : TMemorySizeOptions; cdecl = nil;
// Options that control if the memory size ( eg. `DWORD PTR` ) is shown or not.
// This is ignored by the gas ( AT&T ) formatter.
//
// - Default: [`Default`]
//
// [`Default`]: enum.MemorySizeOptions.html#variant.Default
//
// # Arguments
// * `value`: New value
Formatter_SetMemorySizeOptions : function( Formatter: Pointer; FormatterType : TIcedFormatterType; Value : TMemorySizeOptions ) : boolean; cdecl = nil;
// Show `RIP+displ` or the virtual address
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rip+12345678h]`
// X | `false` | `mov eax,[1029384756AFBECDh]`
Formatter_GetRipRelativeAddresses : function( Formatter: Pointer; FormatterType : TIcedFormatterType ) : boolean; cdecl = nil;
// Show `RIP+displ` or the virtual address
//
// Default | Value | Example
// --------|-------|--------
// _ | `true` | `mov eax,[rip+12345678h]`
// X | `false` | `mov eax,[1029384756AFBECDh]`