•  Back 
  •  Assembler 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : Pure Assembler Documentation
Author      : John Kormylo
Version     : PASM.HYP 1.0
Subject     : Documentation/Pure Assembler
Nodes       : 740
Index Size  : 20262
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Floating Point Control Register ]

... controls floating point exceptions and rounding.  It can be set
using the FMOVE (Control Register) instruction.

Bits 8-15 enable a floating point exception (vectors 48-54) when the
          corresponding bits are set in the status register
          (Exception Status Byte):

Bit   | 15  | 14  | 13  | 12  | 11  | 10  |  9  |  8  |
------+-----+-----+-----+-----+-----+-----+-----+-----+
Flag  |BSUN |SNAN |OPERR|OVFL |UNFL | DZ  |INEX2|INEX1|
------+-----+-----+-----+-----+-----+-----+-----+-----+
vector| 48  | 54  | 52  | 53  | 51  | 50  | 49  | 49  |

Bits 6-7 Control the rounding precision:
         0 = Extended
         1 = Single
         2 = Double
         3 = reserved

Bits 4-5 Control the rounding mode:
         0 = Round to nearest.
         1 = Round to zero (truncate).
         2 = Round to minus infinity.
         3 = Round to positive infinity.

See also FPSR, FPU and Exceptions.