Initializes a new instance of the EncodedInstruction..::..ModRMByte class.

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

Syntax

C#
public ModRMByte(
	byte rm,
	byte reg,
	byte mod
)
Visual Basic
Public Sub New ( _
	rm As Byte, _
	reg As Byte, _
	mod As Byte _
)
Visual C++
public:
ModRMByte(
	unsigned char rm, 
	unsigned char reg, 
	unsigned char mod
)

Parameters

rm
Type: System..::..Byte
The 4-bit R/M part.
reg
Type: System..::..Byte
The 4-bit REG part.
mod
Type: System..::..Byte
The 2-bit MOD part.

Exceptions

Contracts

Requires
rm <= 0x0F
Description: Only the first 4 bits may be set.
Exception: System..::..ArgumentOutOfRangeException
reg <= 0x0F
Description: Only the first 4 bits may be set.
Exception: System..::..ArgumentOutOfRangeException
mod <= 0x03
Description: Only the first 2 bits may be set.
Exception: System..::..ArgumentOutOfRangeException

See Also