Outils pour utilisateurs

Outils du site


back2root:ibm-pc-ms-dos:instr:lgs

LGS (386+)

LGS - Load Pointer Using GS (386+ only)

Loads 32-bit pointer from memory source to destination register and GS.

The offset is placed in the destination register and the segment is placed in GS.

To use this instruction the word at the lower memory address must contain the offset and the word at the higher address must contain the segment.

This simplifies the loading of far pointers from the stack and the interrupt vector table.

Usage:

	LGDT	dest,src	;

Modifies flags:

none

Clocks Size
Operands 808x 286 386 486 Bytes
reg,mem - - 7 6 5-7
reg,mem (PM) - - 22 12 5-7
back2root/ibm-pc-ms-dos/instr/lgs.txt · Dernière modification : 2023/03/03 23:55 de 127.0.0.1