MPE/iX Intrinsics Reference Manual (32650-90905)

348 Chapter7
Command Definitions (HP32208-HPLOACNMPROC)
HPENBLTRAP
HPENBLTRAP
NM callable only.
Selectively enables or disables arithmetic traps.
Syntax
I32V I32
HPENBLTRAP(
mask,oldmask
);
Parameters
mask
32-bit signed integer by value (required)
Passes a value indicating which arithmetic traps are enabled and which
are not:
If a bit is on (=1), the corresponding trap is enabled.
If a bit is off (=0), the corresponding trap is disabled.
The bits and their associated arithmetic errors are
Bits Value/Meaning
31:1 3000 mode floating-point divide by zero
30:1 Integer divide by zero
29:1 3000 mode floating-point underflow
28:1 3000 mode floating-point overflow
27:1 Integer overflow
26:1 3000 mode double-precision overflow
25:1 3000 mode double-precision underflow
24:1 3000 mode double-precision divide by zero
23:1 Decimal overflow
22:1 Invalid ASCII digit
21:1 Invalid decimal digit
19:2 Reserved for the operating system
18:1 Decimal divide by zero
17:1 IEEE floating-point, inexact result
16:1 IEEE floating-point underflow
15:1 IEEE floating-point overflow
14:1 IEEE floating-point divide by zero