ia-32_instruction-set-ref_a-m

M16int and pop register stack store st0 in m32int and

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: f a memory operand effective address is outside the SS segment limit. CR0.EM[bit 2] or CR0.TS[bit 3] = 1. If a page fault occurs. If alignment checking is enabled and an unaligned memory reference is made while the current privilege level is 3. Real-Address Mode Exceptions #GP #SS #NM If a memory operand effective address is outside the CS, DS, ES, FS, or GS segment limit. If a memory operand effective address is outside the SS segment limit. CR0.EM[bit 2] or CR0.TS[bit 3] = 1. Virtual-8086 Mode Exceptions #GP(0) #SS(0) #NM #PF(fault-code) #AC(0) If a memory operand effective address is outside the CS, DS, ES, FS, or GS segment limit. If a memory operand effective address is outside the SS segment limit. CR0.EM[bit 2] or CR0.TS[bit 3] = 1. If a page fault occurs. If alignment checking is enabled and an unaligned memory reference is made. Compatibility Mode Exceptions Same exceptions as in Protected Mode. 3-334 Vol. 2 INSTRUCTION SET REFERENCE, A-M 64-Bit Mode Exceptions #SS(0) #GP(0) #NM #MF #PF(fault-code) #AC(0) If a memory address referencing the SS segment is in a noncanonical form. If the memory address is in a non-canonical form. CR0.EM[bit 2] or CR0.TS[bit 3] = 1. If there is a pending x87 FPU exception. If a page fault occurs. If alignment checking is enabled and an unaligned memory reference is made while the current privilege level is 3. Vol. 2 3-335 INSTRUCTION SET REFERENCE, A-M FISTTP--Store Integer with Truncation Opcode DF /1 DB /1 DD /1 Instruction FISTTP m16int FISTTP m32int FISTTP m64int 64-Bit Mode Valid Valid Valid Compat/ Leg Mode Valid Valid Valid Description Store ST(0) in m16int with truncation. Store ST(0) in m32int with truncation. Store ST(0) in m64int with truncation. Description FISTTP converts the value in ST into a signed integer using truncation (chop) as rounding mode, transfers the result to the destination, and pop ST. FISTTP accepts word, short integer, and long integer destinations. The following table shows the results obtained when storing various classes of numbers in integer format. Table 3-33. FISTTP Results ST(0) - or Value Too Large for DEST Format F -1 DEST - - 1 < F < +1 F +1 + or Value Too Large for DEST Format NaN NOTES: F Means finite floating-point value. Means integer. Indicates floating-point invalid-operation (#IA) exception. 0 + This instruction's operation is the same in non-64-bit modes and 64-bit mode. Operation DEST ST; pop ST; Flags Affected C1 is cleared; C0, C2, C3 undefined. 3-336 Vol. 2 INSTRUCTION SET REFERENCE, A-M Numeric Exceptions Invalid, Stack Invalid (stack underflow), Precision. Protected Mode Exceptions #GP(0) If the destination is in a nonwritable segment. For an illegal memory operand effective address in the CS, DS, ES, FS or GS segments. #SS(0) #PF(fault-code) #AC(0) #NM #UD For an illegal address in the SS segment. For a page fault. If alignment checking is enabled and an unaligned memory reference is made while the current privilege level is 3. If CR0.EM[bit 2] = 1....
View Full Document

This note was uploaded on 10/01/2013 for the course CPE 103 taught by Professor Watlins during the Winter '11 term at Mississippi State.

Ask a homework question - tutors are online