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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AMD64 Technology 24594 Rev. 3.10 February 2005INTOInterrupt to Overflow VectorChecks the overflow flag (OF) in the rFLAGS register <strong>and</strong> calls the overflow exception(#OF) h<strong>and</strong>ler if the OF flag is set to 1. This instruction has no effect if the OF flag iscleared to 0. The INTO instruction detects overflow in signed number addition. SeeAMD64 Architecture Programmer’s Manual <strong>Volume</strong> 1: Application Programming for moreinformation on the OF flag.Using this instruction in 64-bit mode generates an invalid-opcode exception.For detailed descriptions of the steps performed by INT instructions, see thefollowing:• Legacy-Mode Interrupts: “Legacy Protected-Mode Interrupt Control Transfers” in<strong>Volume</strong> 2.• Long-Mode Interrupts: “Long-Mode Interrupt Control Transfers” in <strong>Volume</strong> 2.Mnemonic Opcode DescriptionINTOCECall overflow exception if the overflow flag is set.(Invalid in 64-bit mode.)ActionIF (64BIT_MODE)EXCEPTION[#UD]IF (RFLAGS.OF = 1)EXCEPTION [#OF]EXIT// #OF is a trap, <strong>and</strong> pushes the rIP of the instruction// following INTO.Related <strong>Instructions</strong>INT, INT 3, BOUNDrFLAGS AffectedNone.ExceptionsException RealVirtual8086 Protected Cause of ExceptionOverflow, #OF X X X The INTO instruction was executed with 0F set to 1.Invalid opcode, #UD X Instruction was executed in 64-bit mode.164 INTO

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

Saved successfully!

Ooh no, something went wrong!