Gets or sets the value of the MOD part of the ModR/M byte.

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 Mod { get; set; }
Visual Basic
Public Property Mod As Byte
	Get
	Set
Visual C++
public:
property unsigned char Mod {
	unsigned char get ();
	void set (unsigned char value);
}

Field Value

The 2-bit MOD value.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionvalue > 0x03

Contracts

Get

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

Set

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

See Also