tw
Trap Word
Preliminary PPC440x5 CPU Core User’s Manual
instrset.fm.
September 12, 2002 Page 441 of 589
The enabling of trap debug events may affect the interrupt type caused by the execution of tw instruction.
Specifically, trap instructions may be enabled to cause Debug interrupts instead of Program interrupts. See
Trap (TRAP) Debug Event on page 234 for more details.
Table 9-31. Extended Mnemonics for tw
Mnemonic Operands Function
Other Registers
Altered
trap
Trap unconditionally.
Extended mnemonic for
tw 31,0,0
tweq
RA, RB
Trap if (RA) equal to (RB).
Extended mnemonic for
tw 4,RA,RB
twge
RA, RB
Trap if (RA) greater than or equal to (RB).
Extended mnemonic for
tw 12,RA,RB
twgt
RA, RB
Trap if (RA) greater than (RB).
Extended mnemonic for
tw 8,RA,RB
twle
RA, RB
Trap if (RA) less than or equal to (RB).
Extended mnemonic for
tw 20,RA,RB
twlge
RA, RB
Trap if (RA) logically greater than or equal to (RB).
Extended mnemonic for
tw 5,RA,RB
twlgt
RA, RB
Trap if (RA) logically greater than (RB).
Extended mnemonic for
tw 1,RA,RB
twlle
RA, RB
Trap if (RA) logically less than or equal to (RB).
Extended mnemonic for
tw 6,RA,RB
twllt
RA, RB
Trap if (RA) logically less than (RB).
Extended mnemonic for
tw 2,RA,RB
twlng
RA, RB
Trap if (RA) logically not greater than (RB).
Extended mnemonic for
tw 6,RA,RB
twlnl
RA, RB
Trap if (RA) logically not less than (RB).
Extended mnemonic for
tw 5,RA,RB
twlt
RA, RB
Trap if (RA) less than (RB).
Extended mnemonic for
tw 16,RA,RB
twne
RA, RB
Trap if (RA) not equal to (RB).
Extended mnemonic for
tw 24,RA,RB