Gets or sets the value of the REG part of the ModR/M 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 Reg { get; set; } |
Visual Basic |
---|
Public Property Reg As Byte Get Set |
Visual C++ |
---|
public: property unsigned char Reg { unsigned char get (); void set (unsigned char value); } |
Field Value
The 4-bit REG value.
Remarks
The least significant three bits are encoded in the ModR/M byte, while the fourth bit is encoded in the
REX.R bit.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | value > 0x0F |
Contracts
Get
Ensures | ||
---|---|---|
Contract.Result<byte>() <= 0x0F
|
Set
Requires | ||||
---|---|---|---|---|
value <= 0x0F
|