Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC Numerics / Part 3 - Appendixes
Appendix F - PowerPC Assembly-Language Numerics Reference


Floating-Point Status and Control Register
Table F-2 Bit assignments for FPSCR fields
FPSCR
field
BitMeaning if set
0 0Exception summary
  1Exception enable summary
  2Invalid-operation exception summary
  3Overflow exception
1 4Underflow exception
  5Divide-by-zero exception
  6Inexact exception
  7Invalid-operation exception; signaling NaN as input
2 8Invalid-operation exception; +-
  9Invalid-operation exception; /
 10Invalid-operation exception; 0/0
 11Invalid-operation exception;
312Invalid-operation exception; comparison operation
 13Fraction field rounded
 14Fraction field inexact
 15Class descriptor
416< or < 0
 17> or > 0
 18= or = 0
 19Unordered or NaN
520Reserved
 21Invalid-operation exception; software request (not implemented in MPC601)
 22Invalid-operation exception; square root (not implemented in MPC601)
 23Invalid-operation exception; convert-to-integer operation
 
624Invalid-operation exception enable/disable
 25Overflow exception enable/disable
 26Underflow exception enable/disable
 27Divide-by-zero exception enable/disable
728Inexact exception enable/disable
 29Reserved
 30Rounding direction
 31Rounding direction
Table F-3 Rounding direction bits in the FPSCR
ModesBits 
 3031 
To-nearest00 
Upward10 
Downward11 
Toward-zero01 
Table F-4 Class and sign inquiry bits in the FPSCR
Class/signBits 
 1516171819 
+000010 
-0 10010 
Positive normalized number00100 
Negative normalized number01000 
Positive denormalized number10100 
Negative denormalized number11000 
+ 00101 
- 01001 
Quiet NaN10001 


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996