Volume 3: General-Purpose and System Instructions - Stanford ...

Volume 3: General-Purpose and System Instructions - Stanford ... Volume 3: General-Purpose and System Instructions - Stanford ...

scs.stanford.edu
from scs.stanford.edu More from this publisher
13.07.2015 Views

AMD64 Technology 24594 Rev. 3.10 February 2005ExceptionGeneral protection,#GPRealVirtual8086 Protected Cause of ExceptionX X XA memory address exceeded a data segment limit or was noncanonical.XThe destination operand was in a non-writable segment.X A null data segment was used to reference memory.Page fault, #PF X X A page fault resulted from the execution of the instruction.Alignment check, #AC X X An unaligned memory reference was performed while alignmentchecking was enabled.344 SIDT

24594 Rev. 3.10 February 2005 AMD64 TechnologySLDTStore Local Descriptor Table RegisterStores the local descriptor table (LDT) selector to a register or memory destinationoperand.If the destination is a register, the selector is zero-extended into a 16-, 32-, or 64-bitgeneral purpose register, depending on operand size.If the destination operand is a memory location, the segment selector is written tomemory as a 16-bit value, regardless of operand size.This SLDT instruction can only be used in protected mode, but it can be executed atany privilege level.Mnemonic Opcode DescriptionSLDT reg16 0F 00 /0 Store the segment selector from the local descriptor tableregister to a 16-bit register.SLDT reg32 0F 00 /0 Store the segment selector from the local descriptor tableregister to a 32-bit register.SLDT reg64 0F 00 /0 Store the segment selector from the local descriptor tableregister to a 64-bit register.SLDT mem16 0F 00 /0 Store the segment selector from the local descriptor tableregister to a 16-bit memory location.Related InstructionsSIDT, SGDT, STR, LIDT, LGDT, LLDT, LTRrFLAGS AffectedNoneSLDT 345

24594 Rev. 3.10 February 2005 AMD64 TechnologySLDTStore Local Descriptor Table RegisterStores the local descriptor table (LDT) selector to a register or memory destinationoper<strong>and</strong>.If the destination is a register, the selector is zero-extended into a 16-, 32-, or 64-bitgeneral purpose register, depending on oper<strong>and</strong> size.If the destination oper<strong>and</strong> is a memory location, the segment selector is written tomemory as a 16-bit value, regardless of oper<strong>and</strong> size.This SLDT instruction can only be used in protected mode, but it can be executed atany privilege level.Mnemonic Opcode DescriptionSLDT reg16 0F 00 /0 Store the segment selector from the local descriptor tableregister to a 16-bit register.SLDT reg32 0F 00 /0 Store the segment selector from the local descriptor tableregister to a 32-bit register.SLDT reg64 0F 00 /0 Store the segment selector from the local descriptor tableregister to a 64-bit register.SLDT mem16 0F 00 /0 Store the segment selector from the local descriptor tableregister to a 16-bit memory location.Related <strong>Instructions</strong>SIDT, SGDT, STR, LIDT, LGDT, LLDT, LTRrFLAGS AffectedNoneSLDT 345

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!