Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7853845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:49:35+00:00 2026-06-02T19:49:35+00:00

I’ve got this instruction in a program: FSTENV (28-BYTE) PTR SS:[ESP-1C] What does it

  • 0

I’ve got this instruction in a program:

FSTENV (28-BYTE) PTR SS:[ESP-1C]

What does it do?

Which registers does it use and updates?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:49:38+00:00Added an answer on June 2, 2026 at 7:49 pm

    Jerry Coffins Answer is correct.
    In case you are wondering about the (28-BYTE) PTR SS:[ESP-1C]:
    This is the effective address where the FP environment is to be stored, it designates the 28-byte version of the the command and points to 28 (0x1c) bytes below the stack pointer in the stack segment.
    I just add the official description from Intel, which I found using a search engine.

    Description

    Saves the current FPU operating environment at the memory location
    specified with the destination operand, and then masks all
    floating-point exceptions. The FPU operating environment consists of
    the FPU control word, status word, tag word, instruction pointer, data
    pointer, and last opcode. Figures 7-13 through 7-16 in the IA-32
    Intel® Architecture Software Developer’s Manual, Volume 1, show the
    layout in memory of the stored environment, depending on the operating
    mode of the processor (protected or real) and the current operand-size
    attribute (16-bit or 32-bit). In virtual-8086 mode, the real mode
    layouts are used.

    The FSTENV instruction checks for and handles any pending unmasked
    floating-point exceptions before storing the FPU environment; the
    FNSTENV instruction does not. The saved image reflects the state of
    the FPU after all floating-point instructions preceding the
    FSTENV/FNSTENV instruction in the instruction stream have been
    executed.

    These instructions are often used by exception handlers because they
    provide access to the FPU instruction and data pointers. The
    environment is typically saved in the stack. Masking all exceptions
    after saving the environment prevents floating-point exceptions from
    interrupting the exception handler. Intel® Architecture Compatibility

    When operating a Pentium® or Intel486™ processor in MS-DOS* operating
    system compatibility mode, it is possible (under unusual
    circumstances) for an FNSTENV instruction to be interrupted prior to
    being executed to handle a pending FPU exception. See the section
    titled “No-Wait FPU Instructions Can Get FPU Interrupt in Window” in
    Appendix D of the IA-32 Intel® Architecture Software Developer’s
    Manual, Volume 1, for a description of these circumstances. An FNSTENV
    instruction cannot be interrupted in this way on a Pentium Pro
    processor.

    Operation

    DEST[FPUControlWord) <- FPUControlWord;

    DEST[FPUStatusWord) <- FPUStatusWord;

    DEST[FPUTagWord) <- FPUTagWord;

    DEST[FPUDataPointer) <- FPUDataPointer;

    DEST[FPUInstructionPointer) <- FPUInstructionPointer;

    DEST[FPULastInstructionOpcode) <- FPULastInstructionOpcode;

    FPU Flags Affected

    The C0, C1, C2, and C3 are undefined.

    Floating-Point Exceptions

    None.

    Protected Mode Exceptions

    GP(0) – If the destination is located in a nonwritable segment. If a memory operand effective address is outside the CS, DS, ES, FS, or GS
    segment limit. If the DS, ES, FS, or GS register is used to access
    memory and it contains a null segment selector.

    SS(0) – If a memory operand effective address is outside the SS segment limit.

    NM – EM or TS in CR0 is set.

    PF(fault-code) – If a page fault occurs.

    AC(0) – If alignment checking is enabled and an unaligned memory reference is made while the current privilege level is 3. Real-Address
    Mode Exceptions

    GP – If a memory operand effective address is outside the CS, DS, ES, FS, or GS segment limit.

    SS – If a memory operand effective address is outside the SS segment limit.

    NM – EM or TS in CR0 is set. Virtual-8086 Mode Exceptions

    GP(0) – If a memory operand effective address is outside the CS, DS, ES, FS, or GS segment limit.

    SS(0) – If a memory operand effective address is outside the SS segment limit.

    NM – EM or TS in CR0 is set.

    PF(fault-code) – If a page fault occurs.

    AC(0) – If alignment checking is enabled and an unaligned memory reference is made.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I've got a string that has curly quotes in it. I'd like to replace
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.