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:

RAX

RBX

RCX

RDX

RSI

RDI

RSP

RBP

R8

R9

R10

R11

R12

R13

R14

R15

RIP

RFL

EAX

EBX

ECX

EDX

ESI

EDI

ESP

EBP

CS

DS

SS

ES

FS

GS

EIP

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.