AN2491 Freescale Semiconductor / Motorola, AN2491 Datasheet - Page 20

no-image

AN2491

Manufacturer Part Number
AN2491
Description
Simplified Mnemonics for PowerPC Instructions
Manufacturer
Freescale Semiconductor / Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN2491NFHP
Manufacturer:
PANASON
Quantity:
5 510
Part Number:
AN2491NFHP
Manufacturer:
MAXIM
Quantity:
5 510
Trap Instructions Simplified Mnemonics
Trap Instructions Simplified Mnemonics
The mnemonics in Table 26 are variations of trap instructions, with the most useful TO values represented
in the mnemonic rather than specified as a numeric operand.
The following examples use the trap mnemonics shown in Table 26:
20
1
2
1. Trap if rA is not zero.
2. Trap if rA is not equal to rB.
3. Trap if rA is logically greater than 0x7FF.
Code
The symbol ‘<U’ indicates an unsigned less-than evaluation is performed.
The symbol ‘>U’ indicates an unsigned greater-than evaluation is performed.
lge
lng
lgt
lnl
twnei rA,0
twne rA,rB
twlgti rA,0x7FF
Logically greater than or equal
Logically greater than
Logically not less than
Logically not greater than
Unconditional
Table 25. Standard Codes for Trap Instructions (continued)
Description
Trap unconditionally
Trap if less than
Trap if less than or equal
Trap if equal
Trap if greater than or equal
Trap if greater than
Trap if not less than
Trap if not equal
Trap if not greater than
Trap if logically less than
Trap if logically less than or equal
Trap if logically greater than or equal
Trap if logically greater than
Trap if logically not less than
Trap if logically not greater than
Simplified Mnemonics for PowerPC™ Instructions
Freescale Semiconductor, Inc.
For More Information On This Product,
Trap Semantics
Table 26. Trap Simplified Mnemonics
Go to: www.freescale.com
equivalent to
equivalent to
equivalent to
TO Encoding
31
5
1
5
6
twi Immediate tw Register
twlgei
twlngi
32-Bit Comparison
tweqi
twgei
twnei
twngi
twlgti
twlnli
twllei
twgti
twnli
twllti
twlei
twlti
<
0
0
0
0
1
twi 24,rA,0
tw 24,rA,rB
twi 1,rA,0x7FF
>
0
0
0
0
1
twlge
twlng
tweq
twge
twne
twng
twlgt
twlnl
twlle
twgt
twnl
twllt
trap
twle
twlt
=
1
0
1
1
1
<U
0
0
0
1
1
1
MOTOROLA
>U
1
1
1
0
1
2

Related parts for AN2491