Returns the value of the specified register.

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

Syntax

C#
public static byte GetValue(
	this Register register
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetValue ( _
	register As Register _
) As Byte
Visual C++
[ExtensionAttribute]
public:
static unsigned char GetValue(
	Register register
)

Parameters

register
Type: SharpAssembler.x86..::..Register
The Register to get the value for.

Return Value

The value (between 0 and 15) of the register.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Register. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Exceptions

ExceptionCondition
System.ComponentModel..::..InvalidEnumArgumentException!(Enum.IsDefined(typeof(Register), register))

Contracts

This method is pure.
Requires
Enum.IsDefined(typeof(Register), register)
Ensures
Contract.Result<byte>() >= 0 && Contract.Result<byte>() <= 15

See Also