Gets or sets the value of the SCALE part of the SIB byte.
Namespace: SharpAssembler.x86Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public byte Scale { get; set; } |
Visual Basic |
---|
Public Property Scale As Byte Get Set |
Visual C++ |
---|
public: property unsigned char Scale { unsigned char get (); void set (unsigned char value); } |
Field Value
The 2-bit SCALE value.
Remarks
The actual scale is two to the power of this value, so that 0 equals a scale of 1, 1 equals a scale of
2, 2 equals a scale of 4 and 3 equals a scale of 8.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | value > 0x03 |
Contracts
Get
Ensures | ||
---|---|---|
Contract.Result<byte>() <= 0x03
|
Set
Requires | ||||
---|---|---|---|---|
value <= 0x03
|