td
Trap Doubleword
Traps if condition (comparison of doublewords) is met.
Details
The Trap Doubleword instruction compares the contents of register RA with the contents of register RB. If any bit in the TO field is set to 1 and its corresponding condition (less than, greater than, equal, less than unsigned, or greater than unsigned) is met by the result of the comparison, the system trap handler is invoked.
Pseudocode Operation
Programming Note
Generates a program exception (System Call or Trap type) when the trap condition is true. The condition codes in TO select which comparisons trigger the trap: bit 0 = LT, bit 1 = GT, bit 2 = EQ, bit 3 = LU (unsigned), bit 4 = GU (unsigned). TO=31 (all bits set) always traps.
Example
Encoding
Operands
-
TO
Options -
RA
Src A -
RB
Src B