Load Pointer using GS                            

86/88

N

186

N

286

N

386

Y

486

Y

LGS destination, source

Ovfl

N

Dir

N

Int

N

Trap

N

Sign

N

Zero

N

Aux

N

Prty

N

Carry

N

    LGS loads into two registers the 32-bit pointer variable found in
    memory at source. LGS stores the segment value (the higher order word
    of source) in GS and the offset value (the lower order word of source)
    in the destination register. The destination register may be any any
    16-bit general register (that is, all registers except segment
    registers).

------------------------------------ Timing ----------------------------------

OpCode          Instruction             386     286     86
0F B5/r         LGS r16, m16:16         7       7
0F B5/r         LGS r32, m12:32         7

------------------------------------ Logic -----------------------------------

        GS = (Source + 2)
        destination = (source)

See Also LEA LDS LES LFS LSS LGDT Flags


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .