Gets or sets a value which is added to the opcode 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 OpcodeReg { get; set; }
Visual Basic
Public Property OpcodeReg As Byte
	Get
	Set
Visual C++
public:
property unsigned char OpcodeReg {
	unsigned char get ();
	void set (unsigned char value);
}

Field Value

The 4-bit opcode REG value. The default is 0.

Remarks

The least significant three bits are encoded by OR-ing them with the last opcode byte, while the fourth bit is encoded in the REX.B bit.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionvalue > 0x0F

Contracts

Get

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

Set

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

See Also