Gets or sets whether the effective address is RIP-relative.

Namespace: SharpAssembler.x86.Operands
Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Nullable<bool> RelativeAddress { get; set; }
Visual Basic
Public Property RelativeAddress As Nullable(Of Boolean)
	Get
	Set
Visual C++
public:
property Nullable<bool> RelativeAddress {
	Nullable<bool> get ();
	void set (Nullable<bool> value);
}

Field Value

trueTruetruetrue (True in Visual Basic) to encode a RIP-relative address; falseFalsefalsefalse (False in Visual Basic) to encode an absolute address; otherwise, nullNothingnullptra null reference (Nothing in Visual Basic) to use the Architecture's default. The default is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

The value of this property may only be trueTruetruetrue (True in Visual Basic) in 64-bit addressing mode.

When this property's value is nullNothingnullptra null reference (Nothing in Visual Basic) and the default is to use RIP-relative addressing, it is not guaranteed that the effective address is encoded using RIP-relative addressing. There are some effective addresses for which RIP-relative addressing is not possible.

See Also