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 2005ELSE...IF ((FOO && BAR) || (CONE && HEAD)).../////////////////////////////////////////////////////////////////////////////////// Exceptions/////////////////////////////////////////////////////////////////////////////////EXCEPTION [#GP(0)]EXCEPTION [#UD]// error code in parenthesis// if no error codepossible exception types:#DE // Divide-By-Zero-Error Exception (Vector 0)#DB // Debug Exception (Vector 1)#BP // INT3 Breakpoint Exception (Vector 3)#OF // INTO Overflow Exception (Vector 4)#BR // Bound-Range Exception (Vector 5)#UD // Invalid-Opcode Exception (Vector 6)#NM // Device-Not-Available Exception (Vector 7)#DF // Double-Fault Exception (Vector 8)#TS // Invalid-TSS Exception (Vector 10)#NP // Segment-Not-Present Exception (Vector 11)#SS // Stack Exception (Vector 12)#GP // <strong>General</strong>-Protection Exception (Vector 13)#PF // Page-Fault Exception (Vector 14)#MF // x87 Floating-Point Exception-Pending (Vector 16)#AC // Alignment-Check Exception (Vector 17)#MC // Machine-Check Exception (Vector 18)#XF // SIMD Floating-Point Exception (Vector 19)/////////////////////////////////////////////////////////////////////////////////// READ_MEM// <strong>General</strong> memory read. This zero-extends the data to 64 bits <strong>and</strong> returns it./////////////////////////////////////////////////////////////////////////////////usage:temp = READ_MEM.x [seg:offset] // where x is one of {v, z, b, w, d, q}// <strong>and</strong> denotes the size of the memory readdefinition:IF ((seg AND 0xFFFC) = NULL)EXCEPTION [#GP(0)]// GP fault for using a null segment to// reference memoryIF ((seg=CS) || (seg=DS) || (seg=ES) || (seg=FS) || (seg=GS))52 Chapter 2: Instruction Overview

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

Saved successfully!

Ooh no, something went wrong!