Gets or sets the fixed value of the REG part of the ModR/M byte, when a ModR/M is used.

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

Syntax

C#
public byte FixedReg { get; set; }
Visual Basic
Public Property FixedReg As Byte
	Get
	Set
Visual C++
public:
property unsigned char FixedReg {
	unsigned char get ();
	void set (unsigned char value);
}

Field Value

The 3-bit fixed REG value.

Remarks

When no operands require a ModR/M byte, or when the encoding of an operand puts a value into the ModR/M's REG field, this property is ignored.

Specify this value before the first call to SetModRMByte()()()(); otherwise the REG field is not set.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionvalue > 0x07

Contracts

Get

Ensures
Contract.Result<byte>() <= 0x07
Description: Only the first 3 bits may be set.

Set

Requires
value <= 0x07
Description: Only the first 3 bits may be set.
Exception: System..::..ArgumentOutOfRangeException

See Also