Bound program access |
---|
|
Description:
The right-most byte of selector specifies the computational
attributes
to retrieve. The format of this byte is as follows:
Bit | Definition |
---|---|
0-3 | Reserved (must be 0) |
4 | Exception mask |
5 | Decimal floating-point rounding mode |
6 | Exception occurrence |
7 | Binary floating-point rounding mode |
All other bytes of selector are reserved (must be 0).
The value returned by RETCA has the following structure:
Bit | Meaning |
---|---|
0-1 | Reserved (binary 0) |
2 | Floating-point overflow |
3 | Floating-point underflow |
4 | Floating-point zero divide |
5 | Floating-point inexact result |
6 | Floating-point invalid operand |
7 | Reserved (binary 0) |
Bit | Meaning |
---|---|
0-1 | Reserved (binary 0) |
2 | Floating-point overflow |
3 | Floating-point underflow |
4 | Floating-point zero divide |
5 | Floating-point inexact result |
6 | Floating-point invalid operand |
7 | Reserved (binary 0) |
Bit | Meaning |
---|---|
0 | Reserved (binary 0) |
1-2 |
Binary floating-point rounding mode
|
3-4 | Reserved (binary 0) |
5-7 | Decimal floating-point rounding mode
|
Note: Any floating-point operations currently on the value stack will be computed prior to retrieving the computational attributes. Therefore, the effect of such floating-point operations on the exception occurrence byte, for example, will be reflected in the value returned by the function.