SET REGISTER

Set a hardware register to a specific value.

Syntax

SET REGISTER register

Parameters

register

The hardware register. The following are some of the general registers that are supported:

EAX

CS

EBX

DS

ECX

SS

EDX

ES

ESI

FS

EDI

LS

ESP

EIP

EBP

EFL

Description

The SET REGISTER command sets the specified hardware register to the specified value. A floating point number or a hexadecimal number up to 20 characters (excluding “0x”) may be entered for the register.

By default, the whole register is set. The result of value is converted according to type and size of the register.

In most cases it will be sufficient to use the register name for register. If the name is not unique, the group name must be used as a prefix. In this case quotations are needed to specify the full qualified name (see example below).

Example

SET REGISTER EAX = 0x001F
SET REGISTER IA32_MC0_CTL = 0x1F
SET REGISTER “Debug Features.IA32_DEBUGCTL” = 0x03

See Also


For more complete information about compiler optimizations, see our Optimization Notice.