[][src]Struct iced_x86::FormatterOptions

pub struct FormatterOptions { /* fields omitted */ }

Formatter options

Implementations

impl FormatterOptions[src]

#[must_use]pub fn new() -> Self[src]

Creates default formatter options

#[must_use]pub fn with_gas() -> Self[src]

Creates default gas (AT&T) formatter options

#[must_use]pub fn with_intel() -> Self[src]

Creates default Intel (XED) formatter options

#[must_use]pub fn with_masm() -> Self[src]

Creates default masm formatter options

#[must_use]pub fn with_nasm() -> Self[src]

Creates default nasm formatter options

#[must_use]pub fn uppercase_prefixes(&self) -> bool[src]

Prefixes are upper cased

DefaultValueExample
 trueREP stosd
✔️falserep stosd

pub fn set_uppercase_prefixes(&mut self, value: bool)[src]

Prefixes are upper cased

DefaultValueExample
 trueREP stosd
✔️falserep stosd

Arguments

  • value: New value

#[must_use]pub fn uppercase_mnemonics(&self) -> bool[src]

Mnemonics are upper cased

DefaultValueExample
 trueMOV rcx,rax
✔️falsemov rcx,rax

pub fn set_uppercase_mnemonics(&mut self, value: bool)[src]

Mnemonics are upper cased

DefaultValueExample
 trueMOV rcx,rax
✔️falsemov rcx,rax

Arguments

  • value: New value

#[must_use]pub fn uppercase_registers(&self) -> bool[src]

Registers are upper cased

DefaultValueExample
 truemov RCX,[RAX+RDX*8]
✔️falsemov rcx,[rax+rdx*8]

pub fn set_uppercase_registers(&mut self, value: bool)[src]

Registers are upper cased

DefaultValueExample
 truemov RCX,[RAX+RDX*8]
✔️falsemov rcx,[rax+rdx*8]

Arguments

  • value: New value

#[must_use]pub fn uppercase_keywords(&self) -> bool[src]

Keywords are upper cased (eg. BYTE PTR, SHORT)

DefaultValueExample
 truemov BYTE PTR [rcx],12h
✔️falsemov byte ptr [rcx],12h

pub fn set_uppercase_keywords(&mut self, value: bool)[src]

Keywords are upper cased (eg. BYTE PTR, SHORT)

DefaultValueExample
 truemov BYTE PTR [rcx],12h
✔️falsemov byte ptr [rcx],12h

Arguments

  • value: New value

#[must_use]pub fn uppercase_decorators(&self) -> bool[src]

Upper case decorators, eg. {z}, {sae}, {rd-sae} (but not op mask registers: {k1})

DefaultValueExample
 truevunpcklps xmm2{k5}{Z},xmm6,dword bcst [rax+4]
✔️falsevunpcklps xmm2{k5}{z},xmm6,dword bcst [rax+4]

pub fn set_uppercase_decorators(&mut self, value: bool)[src]

Upper case decorators, eg. {z}, {sae}, {rd-sae} (but not op mask registers: {k1})

DefaultValueExample
 truevunpcklps xmm2{k5}{Z},xmm6,dword bcst [rax+4]
✔️falsevunpcklps xmm2{k5}{z},xmm6,dword bcst [rax+4]

Arguments

  • value: New value

#[must_use]pub fn uppercase_all(&self) -> bool[src]

Everything is upper cased, except numbers and their prefixes/suffixes

DefaultValueExample
 trueMOV EAX,GS:[RCX*4+0ffh]
✔️falsemov eax,gs:[rcx*4+0ffh]

pub fn set_uppercase_all(&mut self, value: bool)[src]

Everything is upper cased, except numbers and their prefixes/suffixes

DefaultValueExample
 trueMOV EAX,GS:[RCX*4+0ffh]
✔️falsemov eax,gs:[rcx*4+0ffh]

Arguments

  • value: New value

#[must_use]pub fn first_operand_char_index(&self) -> u32[src]

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.

DefaultValueExample
✔️0mov•rcx,rbp
 8mov•••••rcx,rbp

pub fn set_first_operand_char_index(&mut self, value: u32)[src]

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.

DefaultValueExample
✔️0mov•rcx,rbp
 8mov•••••rcx,rbp

Arguments

  • value: New value

#[must_use]pub fn tab_size(&self) -> u32[src]

Size of a tab character or 0 to use spaces

  • Default: 0

pub fn set_tab_size(&mut self, value: u32)[src]

Size of a tab character or 0 to use spaces

  • Default: 0

Arguments

  • value: New value

#[must_use]pub fn space_after_operand_separator(&self) -> bool[src]

Add a space after the operand separator

DefaultValueExample
 truemov rax, rcx
✔️falsemov rax,rcx

pub fn set_space_after_operand_separator(&mut self, value: bool)[src]

Add a space after the operand separator

DefaultValueExample
 truemov rax, rcx
✔️falsemov rax,rcx

Arguments

  • value: New value

#[must_use]pub fn space_after_memory_bracket(&self) -> bool[src]

Add a space between the memory expression and the brackets

DefaultValueExample
 truemov eax,[ rcx+rdx ]
✔️falsemov eax,[rcx+rdx]

pub fn set_space_after_memory_bracket(&mut self, value: bool)[src]

Add a space between the memory expression and the brackets

DefaultValueExample
 truemov eax,[ rcx+rdx ]
✔️falsemov eax,[rcx+rdx]

Arguments

  • value: New value

#[must_use]pub fn space_between_memory_add_operators(&self) -> bool[src]

Add spaces between memory operand + and - operators

DefaultValueExample
 truemov eax,[rcx + rdx*8 - 80h]
✔️falsemov eax,[rcx+rdx*8-80h]

pub fn set_space_between_memory_add_operators(&mut self, value: bool)[src]

Add spaces between memory operand + and - operators

DefaultValueExample
 truemov eax,[rcx + rdx*8 - 80h]
✔️falsemov eax,[rcx+rdx*8-80h]

Arguments

  • value: New value

#[must_use]pub fn space_between_memory_mul_operators(&self) -> bool[src]

Add spaces between memory operand * operator

DefaultValueExample
 truemov eax,[rcx+rdx * 8-80h]
✔️falsemov eax,[rcx+rdx*8-80h]

pub fn set_space_between_memory_mul_operators(&mut self, value: bool)[src]

Add spaces between memory operand * operator

DefaultValueExample
 truemov eax,[rcx+rdx * 8-80h]
✔️falsemov eax,[rcx+rdx*8-80h]

Arguments

  • value: New value

#[must_use]pub fn scale_before_index(&self) -> bool[src]

Show memory operand scale value before the index register

DefaultValueExample
 truemov eax,[8*rdx]
✔️falsemov eax,[rdx*8]

pub fn set_scale_before_index(&mut self, value: bool)[src]

Show memory operand scale value before the index register

DefaultValueExample
 truemov eax,[8*rdx]
✔️falsemov eax,[rdx*8]

Arguments

  • value: New value

#[must_use]pub fn always_show_scale(&self) -> bool[src]

Always show the scale value even if it's *1

DefaultValueExample
 truemov eax,[rbx+rcx*1]
✔️falsemov eax,[rbx+rcx]

pub fn set_always_show_scale(&mut self, value: bool)[src]

Always show the scale value even if it's *1

DefaultValueExample
 truemov eax,[rbx+rcx*1]
✔️falsemov eax,[rbx+rcx]

Arguments

  • value: New value

#[must_use]pub fn always_show_segment_register(&self) -> bool[src]

Always show the effective segment register. If the option is false, only show the segment register if there's a segment override prefix.

DefaultValueExample
 truemov eax,ds:[ecx]
✔️falsemov eax,[ecx]

pub fn set_always_show_segment_register(&mut self, value: bool)[src]

Always show the effective segment register. If the option is false, only show the segment register if there's a segment override prefix.

DefaultValueExample
 truemov eax,ds:[ecx]
✔️falsemov eax,[ecx]

Arguments

  • value: New value

#[must_use]pub fn show_zero_displacements(&self) -> bool[src]

Show zero displacements

DefaultValueExample
 truemov eax,[rcx*2+0]
✔️falsemov eax,[rcx*2]

pub fn set_show_zero_displacements(&mut self, value: bool)[src]

Show zero displacements

DefaultValueExample
 truemov eax,[rcx*2+0]
✔️falsemov eax,[rcx*2]

Arguments

  • value: New value

#[must_use]pub fn hex_prefix(&self) -> &str[src]

Hex number prefix or an empty string, eg. "0x"

  • Default: "" (masm/nasm/intel), "0x" (gas)

pub fn set_hex_prefix(&mut self, value: &'static str)[src]

Hex number prefix or an empty string, eg. "0x"

  • Default: "" (masm/nasm/intel), "0x" (gas)

Arguments

  • value: New value

pub fn set_hex_prefix_string(&mut self, value: String)[src]

Hex number prefix or an empty string, eg. "0x"

  • Default: "" (masm/nasm/intel), "0x" (gas)

Arguments

  • value: New value

#[must_use]pub fn hex_suffix(&self) -> &str[src]

Hex number suffix or an empty string, eg. "h"

  • Default: "h" (masm/nasm/intel), "" (gas)

pub fn set_hex_suffix(&mut self, value: &'static str)[src]

Hex number suffix or an empty string, eg. "h"

  • Default: "h" (masm/nasm/intel), "" (gas)

Arguments

  • value: New value

pub fn set_hex_suffix_string(&mut self, value: String)[src]

Hex number suffix or an empty string, eg. "h"

  • Default: "h" (masm/nasm/intel), "" (gas)

Arguments

  • value: New value

#[must_use]pub fn hex_digit_group_size(&self) -> u32[src]

Size of a digit group, see also digit_separator()

DefaultValueExample
 00x12345678
✔️40x1234_5678

pub fn set_hex_digit_group_size(&mut self, value: u32)[src]

Size of a digit group, see also digit_separator()

DefaultValueExample
 00x12345678
✔️40x1234_5678

Arguments

  • value: New value

#[must_use]pub fn decimal_prefix(&self) -> &str[src]

Decimal number prefix or an empty string

  • Default: ""

pub fn set_decimal_prefix(&mut self, value: &'static str)[src]

Decimal number prefix or an empty string

  • Default: ""

Arguments

  • value: New value

pub fn set_decimal_prefix_string(&mut self, value: String)[src]

Decimal number prefix or an empty string

  • Default: ""

Arguments

  • value: New value

#[must_use]pub fn decimal_suffix(&self) -> &str[src]

Decimal number suffix or an empty string

  • Default: ""

pub fn set_decimal_suffix(&mut self, value: &'static str)[src]

Decimal number suffix or an empty string

  • Default: ""

Arguments

  • value: New value

pub fn set_decimal_suffix_string(&mut self, value: String)[src]

Decimal number suffix or an empty string

  • Default: ""

Arguments

  • value: New value

#[must_use]pub fn decimal_digit_group_size(&self) -> u32[src]

Size of a digit group, see also digit_separator()

DefaultValueExample
 012345678
✔️312_345_678

pub fn set_decimal_digit_group_size(&mut self, value: u32)[src]

Size of a digit group, see also digit_separator()

DefaultValueExample
 012345678
✔️312_345_678

Arguments

  • value: New value

#[must_use]pub fn octal_prefix(&self) -> &str[src]

Octal number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0" (gas)

pub fn set_octal_prefix(&mut self, value: &'static str)[src]

Octal number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0" (gas)

Arguments

  • value: New value

pub fn set_octal_prefix_string(&mut self, value: String)[src]

Octal number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0" (gas)

Arguments

  • value: New value

#[must_use]pub fn octal_suffix(&self) -> &str[src]

Octal number suffix or an empty string

  • Default: "o" (masm/nasm/intel), "" (gas)

pub fn set_octal_suffix(&mut self, value: &'static str)[src]

Octal number suffix or an empty string

  • Default: "o" (masm/nasm/intel), "" (gas)

Arguments

  • value: New value

pub fn set_octal_suffix_string(&mut self, value: String)[src]

Octal number suffix or an empty string

  • Default: "o" (masm/nasm/intel), "" (gas)

Arguments

  • value: New value

#[must_use]pub fn octal_digit_group_size(&self) -> u32[src]

Size of a digit group, see also digit_separator()

DefaultValueExample
 012345670
✔️41234_5670

pub fn set_octal_digit_group_size(&mut self, value: u32)[src]

Size of a digit group, see also digit_separator()

DefaultValueExample
 012345670
✔️41234_5670

Arguments

  • value: New value

#[must_use]pub fn binary_prefix(&self) -> &str[src]

Binary number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0b" (gas)

pub fn set_binary_prefix(&mut self, value: &'static str)[src]

Binary number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0b" (gas)

Arguments

  • value: New value

pub fn set_binary_prefix_string(&mut self, value: String)[src]

Binary number prefix or an empty string

  • Default: "" (masm/nasm/intel), "0b" (gas)

Arguments

  • value: New value

#[must_use]pub fn binary_suffix(&self) -> &str[src]

Binary number suffix or an empty string

  • Default: "b" (masm/nasm/intel), "" (gas)

pub fn set_binary_suffix(&mut self, value: &'static str)[src]

Binary number suffix or an empty string

  • Default: "b" (masm/nasm/intel), "" (gas)

Arguments

  • value: New value

pub fn set_binary_suffix_string(&mut self, value: String)[src]

Binary number suffix or an empty string

  • Default: "b" (masm/nasm/intel), "" (gas)

Arguments

  • value: New value

#[must_use]pub fn binary_digit_group_size(&self) -> u32[src]

Size of a digit group, see also digit_separator()

DefaultValueExample
 011010111
✔️41101_0111

pub fn set_binary_digit_group_size(&mut self, value: u32)[src]

Size of a digit group, see also digit_separator()

DefaultValueExample
 011010111
✔️41101_0111

Arguments

  • value: New value

#[must_use]pub fn digit_separator(&self) -> &str[src]

Digit separator or an empty string. See also eg. hex_digit_group_size()

DefaultValueExample
✔️""0x12345678
 "_"0x1234_5678

pub fn set_digit_separator(&mut self, value: &'static str)[src]

Digit separator or an empty string. See also eg. hex_digit_group_size()

DefaultValueExample
✔️""0x12345678
 "_"0x1234_5678

Arguments

  • value: New value

pub fn set_digit_separator_string(&mut self, value: String)[src]

Digit separator or an empty string. See also eg. hex_digit_group_size()

DefaultValueExample
✔️""0x12345678
 "_"0x1234_5678

Arguments

  • value: New value

#[must_use]pub fn leading_zeroes(&self) -> bool[src]

Add leading zeroes to hexadecimal/octal/binary numbers. This option has no effect on branch targets and displacements, use branch_leading_zeroes and displacement_leading_zeroes.

DefaultValueExample
 true0x0000000A/0000000Ah
✔️false0xA/0Ah

pub fn set_leading_zeroes(&mut self, value: bool)[src]

Add leading zeroes to hexadecimal/octal/binary numbers. This option has no effect on branch targets and displacements, use branch_leading_zeroes and displacement_leading_zeroes.

DefaultValueExample
 true0x0000000A/0000000Ah
✔️false0xA/0Ah

Arguments

  • value: New value

#[must_use]pub fn uppercase_hex(&self) -> bool[src]

Use upper case hex digits

DefaultValueExample
✔️true0xFF
 false0xff

pub fn set_uppercase_hex(&mut self, value: bool)[src]

Use upper case hex digits

DefaultValueExample
✔️true0xFF
 false0xff

Arguments

  • value: New value

#[must_use]pub fn small_hex_numbers_in_decimal(&self) -> bool[src]

Small hex numbers (-9 .. 9) are shown in decimal

DefaultValueExample
✔️true9
 false0x9

pub fn set_small_hex_numbers_in_decimal(&mut self, value: bool)[src]

Small hex numbers (-9 .. 9) are shown in decimal

DefaultValueExample
✔️true9
 false0x9

Arguments

  • value: New value

#[must_use]pub fn add_leading_zero_to_hex_numbers(&self) -> bool[src]

Add a leading zero to hex numbers if there's no prefix and the number starts with hex digits A-F

DefaultValueExample
✔️true0FFh
 falseFFh

pub fn set_add_leading_zero_to_hex_numbers(&mut self, value: bool)[src]

Add a leading zero to hex numbers if there's no prefix and the number starts with hex digits A-F

DefaultValueExample
✔️true0FFh
 falseFFh

Arguments

  • value: New value

#[must_use]pub fn number_base(&self) -> NumberBase[src]

Number base

pub fn set_number_base(&mut self, value: NumberBase)[src]

Number base

Arguments

  • value: New value

#[must_use]pub fn branch_leading_zeroes(&self) -> bool[src]

Add leading zeroes to branch offsets. Used by CALL NEAR, CALL FAR, JMP NEAR, JMP FAR, Jcc, LOOP, LOOPcc, XBEGIN

DefaultValueExample
✔️trueje 00000123h
 falseje 123h

pub fn set_branch_leading_zeroes(&mut self, value: bool)[src]

Add leading zeroes to branch offsets. Used by CALL NEAR, CALL FAR, JMP NEAR, JMP FAR, Jcc, LOOP, LOOPcc, XBEGIN

DefaultValueExample
✔️trueje 00000123h
 falseje 123h

Arguments

  • value: New value

#[must_use]pub fn signed_immediate_operands(&self) -> bool[src]

Show immediate operands as signed numbers

DefaultValueExample
 truemov eax,-1
✔️falsemov eax,FFFFFFFF

pub fn set_signed_immediate_operands(&mut self, value: bool)[src]

Show immediate operands as signed numbers

DefaultValueExample
 truemov eax,-1
✔️falsemov eax,FFFFFFFF

Arguments

  • value: New value

#[must_use]pub fn signed_memory_displacements(&self) -> bool[src]

Displacements are signed numbers

DefaultValueExample
✔️truemov al,[eax-2000h]
 falsemov al,[eax+0FFFFE000h]

pub fn set_signed_memory_displacements(&mut self, value: bool)[src]

Displacements are signed numbers

DefaultValueExample
✔️truemov al,[eax-2000h]
 falsemov al,[eax+0FFFFE000h]

Arguments

  • value: New value

#[must_use]pub fn displacement_leading_zeroes(&self) -> bool[src]

Add leading zeroes to displacements

DefaultValueExample
 truemov al,[eax+00000012h]
✔️falsemov al,[eax+12h]

pub fn set_displacement_leading_zeroes(&mut self, value: bool)[src]

Add leading zeroes to displacements

DefaultValueExample
 truemov al,[eax+00000012h]
✔️falsemov al,[eax+12h]

Arguments

  • value: New value

#[must_use]pub fn memory_size_options(&self) -> MemorySizeOptions[src]

Options that control if the memory size (eg. DWORD PTR) is shown or not. This is ignored by the gas (AT&T) formatter.

pub fn set_memory_size_options(&mut self, value: MemorySizeOptions)[src]

Options that control if the memory size (eg. DWORD PTR) is shown or not. This is ignored by the gas (AT&T) formatter.

Arguments

  • value: New value

#[must_use]pub fn rip_relative_addresses(&self) -> bool[src]

Show RIP+displ or the virtual address

DefaultValueExample
 truemov eax,[rip+12345678h]
✔️falsemov eax,[1029384756AFBECDh]

pub fn set_rip_relative_addresses(&mut self, value: bool)[src]

Show RIP+displ or the virtual address

DefaultValueExample
 truemov eax,[rip+12345678h]
✔️falsemov eax,[1029384756AFBECDh]

Arguments

  • value: New value

#[must_use]pub fn show_branch_size(&self) -> bool[src]

Show NEAR, SHORT, etc if it's a branch instruction

DefaultValueExample
✔️trueje short 1234h
 falseje 1234h

pub fn set_show_branch_size(&mut self, value: bool)[src]

Show NEAR, SHORT, etc if it's a branch instruction

DefaultValueExample
✔️trueje short 1234h
 falseje 1234h

Arguments

  • value: New value

#[must_use]pub fn use_pseudo_ops(&self) -> bool[src]

Use pseudo instructions

DefaultValueExample
✔️truevcmpnltsd xmm2,xmm6,xmm3
 falsevcmpsd xmm2,xmm6,xmm3,5

pub fn set_use_pseudo_ops(&mut self, value: bool)[src]

Use pseudo instructions

DefaultValueExample
✔️truevcmpnltsd xmm2,xmm6,xmm3
 falsevcmpsd xmm2,xmm6,xmm3,5

Arguments

  • value: New value

#[must_use]pub fn show_symbol_address(&self) -> bool[src]

Show the original value after the symbol name

DefaultValueExample
 truemov eax,[myfield (12345678)]
✔️falsemov eax,[myfield]

pub fn set_show_symbol_address(&mut self, value: bool)[src]

Show the original value after the symbol name

DefaultValueExample
 truemov eax,[myfield (12345678)]
✔️falsemov eax,[myfield]

Arguments

  • value: New value

#[must_use]pub fn gas_naked_registers(&self) -> bool[src]

(gas only): If true, the formatter doesn't add % to registers

DefaultValueExample
 truemov eax,ecx
✔️falsemov %eax,%ecx

pub fn set_gas_naked_registers(&mut self, value: bool)[src]

(gas only): If true, the formatter doesn't add % to registers

DefaultValueExample
 truemov eax,ecx
✔️falsemov %eax,%ecx

Arguments

  • value: New value

#[must_use]pub fn gas_show_mnemonic_size_suffix(&self) -> bool[src]

(gas only): Shows the mnemonic size suffix even when not needed

DefaultValueExample
 truemovl %eax,%ecx
✔️falsemov %eax,%ecx

pub fn set_gas_show_mnemonic_size_suffix(&mut self, value: bool)[src]

(gas only): Shows the mnemonic size suffix even when not needed

DefaultValueExample
 truemovl %eax,%ecx
✔️falsemov %eax,%ecx

Arguments

  • value: New value

#[must_use]pub fn gas_space_after_memory_operand_comma(&self) -> bool[src]

(gas only): Add a space after the comma if it's a memory operand

DefaultValueExample
 true(%eax, %ecx, 2)
✔️false(%eax,%ecx,2)

pub fn set_gas_space_after_memory_operand_comma(&mut self, value: bool)[src]

(gas only): Add a space after the comma if it's a memory operand

DefaultValueExample
 true(%eax, %ecx, 2)
✔️false(%eax,%ecx,2)

Arguments

  • value: New value

#[must_use]pub fn masm_add_ds_prefix32(&self) -> bool[src]

(masm only): Add a DS segment override even if it's not present. Used if it's 16/32-bit code and mem op is a displ

DefaultValueExample
✔️truemov eax,ds:[12345678]
 falsemov eax,[12345678]

pub fn set_masm_add_ds_prefix32(&mut self, value: bool)[src]

(masm only): Add a DS segment override even if it's not present. Used if it's 16/32-bit code and mem op is a displ

DefaultValueExample
✔️truemov eax,ds:[12345678]
 falsemov eax,[12345678]

Arguments

  • value: New value

#[must_use]pub fn masm_symbol_displ_in_brackets(&self) -> bool[src]

(masm only): Show symbols in brackets

DefaultValueExample
✔️true[ecx+symbol] / [symbol]
 falsesymbol[ecx] / symbol

pub fn set_masm_symbol_displ_in_brackets(&mut self, value: bool)[src]

(masm only): Show symbols in brackets

DefaultValueExample
✔️true[ecx+symbol] / [symbol]
 falsesymbol[ecx] / symbol

Arguments

  • value: New value

#[must_use]pub fn masm_displ_in_brackets(&self) -> bool[src]

(masm only): Show displacements in brackets

DefaultValueExample
✔️true[ecx+1234h]
 false1234h[ecx]

pub fn set_masm_displ_in_brackets(&mut self, value: bool)[src]

(masm only): Show displacements in brackets

DefaultValueExample
✔️true[ecx+1234h]
 false1234h[ecx]

Arguments

  • value: New value

#[must_use]pub fn nasm_show_sign_extended_immediate_size(&self) -> bool[src]

(nasm only): Shows BYTE, WORD, DWORD or QWORD if it's a sign extended immediate operand value

DefaultValueExample
 trueor rcx,byte -1
✔️falseor rcx,-1

pub fn set_nasm_show_sign_extended_immediate_size(&mut self, value: bool)[src]

(nasm only): Shows BYTE, WORD, DWORD or QWORD if it's a sign extended immediate operand value

DefaultValueExample
 trueor rcx,byte -1
✔️falseor rcx,-1

Arguments

  • value: New value

#[must_use]pub fn prefer_st0(&self) -> bool[src]

Use st(0) instead of st if st can be used. Ignored by the nasm formatter.

DefaultValueExample
 truefadd st(0),st(3)
✔️falsefadd st,st(3)

pub fn set_prefer_st0(&mut self, value: bool)[src]

Use st(0) instead of st if st can be used. Ignored by the nasm formatter.

DefaultValueExample
 truefadd st(0),st(3)
✔️falsefadd st,st(3)

Arguments

  • value: New value

#[must_use]pub fn show_useless_prefixes(&self) -> bool[src]

Show useless prefixes. If it has useless prefixes, it could be data and not code.

DefaultValueExample
 truees rep add eax,ecx
✔️falseadd eax,ecx

pub fn set_show_useless_prefixes(&mut self, value: bool)[src]

Show useless prefixes. If it has useless prefixes, it could be data and not code.

DefaultValueExample
 truees rep add eax,ecx
✔️falseadd eax,ecx

Arguments

  • value: New value

#[must_use]pub fn cc_b(&self) -> CC_b[src]

Mnemonic condition code selector (eg. JB / JC / JNAE)

Default: JB, CMOVB, SETB

pub fn set_cc_b(&mut self, value: CC_b)[src]

Mnemonic condition code selector (eg. JB / JC / JNAE)

Default: JB, CMOVB, SETB

Arguments

  • value: New value

#[must_use]pub fn cc_ae(&self) -> CC_ae[src]

Mnemonic condition code selector (eg. JAE / JNB / JNC)

Default: JAE, CMOVAE, SETAE

pub fn set_cc_ae(&mut self, value: CC_ae)[src]

Mnemonic condition code selector (eg. JAE / JNB / JNC)

Default: JAE, CMOVAE, SETAE

Arguments

  • value: New value

#[must_use]pub fn cc_e(&self) -> CC_e[src]

Mnemonic condition code selector (eg. JE / JZ)

Default: JE, CMOVE, SETE, LOOPE, REPE

pub fn set_cc_e(&mut self, value: CC_e)[src]

Mnemonic condition code selector (eg. JE / JZ)

Default: JE, CMOVE, SETE, LOOPE, REPE

Arguments

  • value: New value

#[must_use]pub fn cc_ne(&self) -> CC_ne[src]

Mnemonic condition code selector (eg. JNE / JNZ)

Default: JNE, CMOVNE, SETNE, LOOPNE, REPNE

pub fn set_cc_ne(&mut self, value: CC_ne)[src]

Mnemonic condition code selector (eg. JNE / JNZ)

Default: JNE, CMOVNE, SETNE, LOOPNE, REPNE

Arguments

  • value: New value

#[must_use]pub fn cc_be(&self) -> CC_be[src]

Mnemonic condition code selector (eg. JBE / JNA)

Default: JBE, CMOVBE, SETBE

pub fn set_cc_be(&mut self, value: CC_be)[src]

Mnemonic condition code selector (eg. JBE / JNA)

Default: JBE, CMOVBE, SETBE

Arguments

  • value: New value

#[must_use]pub fn cc_a(&self) -> CC_a[src]

Mnemonic condition code selector (eg. JA / JNBE)

Default: JA, CMOVA, SETA

pub fn set_cc_a(&mut self, value: CC_a)[src]

Mnemonic condition code selector (eg. JA / JNBE)

Default: JA, CMOVA, SETA

Arguments

  • value: New value

#[must_use]pub fn cc_p(&self) -> CC_p[src]

Mnemonic condition code selector (eg. JP / JPE)

Default: JP, CMOVP, SETP

pub fn set_cc_p(&mut self, value: CC_p)[src]

Mnemonic condition code selector (eg. JP / JPE)

Default: JP, CMOVP, SETP

Arguments

  • value: New value

#[must_use]pub fn cc_np(&self) -> CC_np[src]

Mnemonic condition code selector (eg. JNP / JPO)

Default: JNP, CMOVNP, SETNP

pub fn set_cc_np(&mut self, value: CC_np)[src]

Mnemonic condition code selector (eg. JNP / JPO)

Default: JNP, CMOVNP, SETNP

Arguments

  • value: New value

#[must_use]pub fn cc_l(&self) -> CC_l[src]

Mnemonic condition code selector (eg. JL / JNGE)

Default: JL, CMOVL, SETL

pub fn set_cc_l(&mut self, value: CC_l)[src]

Mnemonic condition code selector (eg. JL / JNGE)

Default: JL, CMOVL, SETL

Arguments

  • value: New value

#[must_use]pub fn cc_ge(&self) -> CC_ge[src]

Mnemonic condition code selector (eg. JGE / JNL)

Default: JGE, CMOVGE, SETGE

pub fn set_cc_ge(&mut self, value: CC_ge)[src]

Mnemonic condition code selector (eg. JGE / JNL)

Default: JGE, CMOVGE, SETGE

Arguments

  • value: New value

#[must_use]pub fn cc_le(&self) -> CC_le[src]

Mnemonic condition code selector (eg. JLE / JNG)

Default: JLE, CMOVLE, SETLE

pub fn set_cc_le(&mut self, value: CC_le)[src]

Mnemonic condition code selector (eg. JLE / JNG)

Default: JLE, CMOVLE, SETLE

Arguments

  • value: New value

#[must_use]pub fn cc_g(&self) -> CC_g[src]

Mnemonic condition code selector (eg. JG / JNLE)

Default: JG, CMOVG, SETG

pub fn set_cc_g(&mut self, value: CC_g)[src]

Mnemonic condition code selector (eg. JG / JNLE)

Default: JG, CMOVG, SETG

Arguments

  • value: New value

Trait Implementations

impl Clone for FormatterOptions[src]

impl Debug for FormatterOptions[src]

impl Default for FormatterOptions[src]

impl Eq for FormatterOptions[src]

impl Hash for FormatterOptions[src]

impl PartialEq<FormatterOptions> for FormatterOptions[src]

impl StructuralEq for FormatterOptions[src]

impl StructuralPartialEq for FormatterOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.