Skip to content

WRSEG

Operation

Write an SREG segment image from an Rn register.

Assembler Syntax

WRSEG Rn(d), SREG(s)

Privilege

Unprivileged

WRSEG validates a 64-bit segment register image from the source Rn register and writes it to the selected SREG.

The complete source image is validated before architectural state changes. An invalid image raises INVALID_CONTROL_IMAGE; the selected segment register remains unchanged when validation fails.

2.75in

Encodings

WRSEG Rn(d), SREG(s)

Format: Instruction format for WRSEG Rn(d), SREG(s)

Format: Instruction format for WRSEG Rn(d), SREG(s)