13.07.2015 Views

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

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

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

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24594 Rev. 3.10 February 2005 AMD64 TechnologyHLTHaltCauses the microprocessor to halt instruction execution <strong>and</strong> enter the HALT state.Entering the HALT state puts the processor in low-power mode. Execution resumeswhen an unmasked hardware interrupt (INTR), non-maskable interrupt (NMI), systemmanagement interrupt (SMI), RESET, or INIT occurs.If an INTR, NMI, or SMI is used to resume execution after a HLT instruction, the savedinstruction pointer points to the instruction following the HLT instruction.Before executing a HLT instruction, hardware interrupts should be enabled. IfrFLAGS.IF = 0, the system will remain in a HALT state until an NMI, SMI, RESET, orINIT occurs.If an SMI brings the processor out of the HALT state, the SMI h<strong>and</strong>ler can decidewhether to return to the HALT state or not. See <strong>Volume</strong> 2, <strong>System</strong> Programming, forinformation on SMIs.Current privilege level must be 0 to execute this instruction.Mnemonic Opcode DescriptionHLT F4 Halt instruction execution.Related <strong>Instructions</strong>STI, CLIrFLAGS AffectedNoneExceptionsException<strong>General</strong> protection,#GPRealVirtual8086 Protected Cause of ExceptionX X CPL was not 0.HLT 303

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

Saved successfully!

Ooh no, something went wrong!