Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>fnstenv store environment (no-wait) exception flags: none</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FNSTENV           Store Environment (No-wait)    Exception Flags: None

FNSTENV memory location

       Logic:      [memory location] . environment

     FNSTENV is the no-wait form of FSTENV. It stores the environment
     starting at memory location. For the 8087, 80287, and 80387 in
     16-bit format, that information includes:

                                Bits ------.
                           15                   0   Bytes
                          +---------------------+
                          |      Control Word   |0   |
                          |---------------------|    |
                          |      Status Word    |4   |
                          |---------------------|    |
                          |      Tag Word       |8   V
                          |---------------------|
                          | Instruction Pointer |12
                          |---------------------|
                          | IP bits 16-19       |16
                          |---------------------|
                          | Operand pointer     |20
                          |---------------------|
                          | OP bits 16-19       |24
                          +---------------------+
                              16 Bit Format

     For the 80387 in 32-bit format, the environment looks like this:

                         Bits ------.
     31                 16 15                   0   Bytes
     +------------------------------------------+
     |     Reserved       |      Control Word   |0   |
     |--------------------+---------------------|    |
     |     Reserved       |      Status Word    |4   |
     |--------------------+---------------------|    |
     |     Reserved       |      Tag Word       |8   V
     |------------------------------------------|
     |              Error Offset (EIP)          |12
     |------------------------------------------|
     |     Reserved       |      CS             |16
     |------------------------------------------|
     |              Data Operand Offset         |20
     |------------------------------------------|
     |     Reserved       |      DS             |24
     +------------------------------------------+
                       32 Bit Format

  --------------------------------------------------------------------------
   Operands            Clocks         Bytes           Example
   FNSTENV mem_pointer 40-50+EA         4             FNSTENV ENV_AREA
  --------------------------------------------------------------------------

        Note:          You should use this no-wait form of the instruction
                       only when there is a danger of generating an infinite
                       wait condition.

See Also: FSTENV

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson