HP Pascal/iX Programmer's Guide (31502-90023)

11- 15
1.
Status
(word #5) contains the value in the status register of the
IEEE floating-point coprocessor. Any change in this field is
reflected in the value of the status register when the program
resumes execution.
2.
Operation
(word #6) contains one of the following codes, which
tells the type of floating-point operation that caused the trap.
Value Type of Operation
3 ABS
4 SQRT
5 RND
8 CNVFF
9 CNVXF
10 CNVFX
16 CMP
24 ADD
25 SUB
26 MPY
27 DIV
28 REM
3.
Format
(word #7) contains the type of the operands (single,
double, or quadruple). If the operation was CONVERT (CNV
xx
), then
the following values are returned:
Value Types of Operands
1 Source is single, result is double
3 Source is single, result is quadruple
4 Source is double, result is quadruple
If the operation was NOT a CONVERT (CNV
xx
), then the following
values are returned:
Value Type of Operand
0 Single
1 Double
3 Quadruple
4.
source_op1_ptr
(word #8) contains the address of the first
operand, which can be a single-, double- or quadruple-word
floating-point number, depending on the operation and the format.
5.
source_op2_ptr
(word #9) contains the address of the second
operand, which can be a single-, double-, or quadruple-word
floating-point number, depending on the operation and the format.
6.
result_ptr
(word #10) contains the address of the result of the
operation, which can be a single-, double-, or quadruple-word
floating-point number depending on the operation and the format.