Initializes a new instance of the EncodedInstruction..::..ModRMByte class.
            
Namespace: SharpAssembler.x86Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
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
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentOutOfRangeException | rm > 0x0F | 
| System..::..ArgumentOutOfRangeException | reg > 0x0F | 
| System..::..ArgumentOutOfRangeException | mod > 0x03 | 
 Contracts
Contracts
| Requires | ||||
|---|---|---|---|---|
| rm <= 0x0F 
 | ||||
| reg <= 0x0F 
 | ||||
| mod <= 0x03 
 | 





