AMCC Proprietary 342
Revision 1.02 - September 10, 2007
PPC405 Processor
tw
Trap Word
Preliminary User’s Manual
If instruction bit 31 contains 1, the contents of CR[CR0] are undefined.
Registers Altered
•None
Invalid Instruction Forms
• Reserved fields
Programming Note
This instruction is inserted into the execution stream by a debugger to implement breakpoints, and is not typically
used by application code.
Architecture Note
This instruction is part of the PowerPC User Instruction Set Architecture.
Table 9-34. 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