Purpose
Trap Doubleword, Trap Word
Compares parameter a with parameter b. This comparison results in five conditions which are ANDed with a
5-bit constant TO. If the result is not 0 the system
trap handler is invoked.
Prototype
void __tdw ( long a, long b, unsigned
int TO);
void __tw (int a, int b, unsigned int TO);
Parameters
- TO
- A value of 0 to 31 inclusive. Each bit position, if set, indicates one
or more of the following possible conditions:
- 0 (high-order bit)
- a is less than b, using
signed comparison.
- 1
- a is greater than b,
using signed comparison.
- 2
- a is equal to b
- 3
- a is less than b, using
unsigned comparison.
- 4 (low-order bit)
- a is greater than b,
using unsigned comparison.
Usage
__tdw is valid only in 64-bit mode.