lgs

Load Far Pointer using GS

LGS r, m

Loads pointer into GS and register.

Details

The Load Far Pointer using GS instruction loads pointer into GS and register.

Pseudocode Operation

// Loads pointer into GS and register

Example

LGS rax, [rbp-8]

Encoding

Binary Layout
0F
+0
B5
+1
 
Format Legacy
Opcode 0F B5
Extension Base

Operands

  • dest
    General-purpose register
  • src
    Memory operand