AN2491 Freescale Semiconductor / Motorola, AN2491 Datasheet - Page 12

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
1
2
Branch if condition false
Decrement CTR, branch if CTR
Decrement CTR, branch if CTR
Decrement CTR, branch if CTR
Decrement CTR, branch if CTR = 0
Decrement CTR, branch if CTR = 0 and condition true
Decrement CTR, branch if CTR = 0 and condition false bc 2,BI,target
Instructions for which B0 is either 12 (branch if condition true) or 4 (branch if condition false) do not depend on the CTR value
and can be alternately coded by incorporating the condition specified by the BI field, as described in Section 4.6, "Simplified
Mnemonics that Incorporate CR Conditions (Eliminates BO and Replaces BI with crS).”
Simplified mnemonics for branch instructions that do not test CR bits should specify only a target. Otherwise a programming
error may occur.
Branch Instruction Simplified Mnemonics
Branch Instruction Simplified Mnemonics
Table 13 lists simplified mnemonics and syntax for bclr and bcctr without LR updating.
12
1
2
Branch unconditionally
Branch if condition true
Branch if condition false
Decrement CTR, branch if CTR
Decrement CTR, branch if CTR
Decrement CTR, branch if CTR
Decrement CTR, branch if CTR = 0
Decrement CTR, branch if CTR = 0 and condition true
Decrement CTR, branch if CTR = 0 and condition false
Simplified mnemonics for branch instructions that do not test a CR bit should not specify one; a programming error
may occur.
Instructions for which B0 is 12 (branch if condition true) or 4 (branch if condition false) do not depend on a CTR
value and can be alternately coded by incorporating the condition specified by the BI field. See Section 4.6,
"Simplified Mnemonics that Incorporate CR Conditions (Eliminates BO and Replaces BI with crS).”
Table 12. Simplified Mnemonics for bc and bca without LR Update (continued)
Branch Semantics
Table 13. Simplified Mnemonics for bclr and bcctr without LR Update
1
Branch Semantics
2
2
Simplified Mnemonics for PowerPC™ Instructions
0
0 and condition true
0 and condition false bc 0,BI,target bdnzf BI,target
Freescale Semiconductor, Inc.
For More Information On This Product,
0
0 and condition true
0 and condition false
Go to: www.freescale.com
bc 10,BI,target bdzt BI,target
bc 16,0,target
bc 18,0,target
bc 4,BI,target
bc 8,BI,target bdnzt BI,target
bc
bclr 12,BI
bclr 16,BI
bclr 20,0
bclr 18,0
bclr 4,BI
bclr 8,BI
bclr 0,BI
bclr 8,BI
bclr 2,BI
bclr
bdnz target
bdzf BI,target
bf BI,target
bdz target
Mnemonic
Simplified
Mnemonic
Simplified
bdnztlr BI
bdnzflr BI
bdnztlr BI
bdnzlr BI
bdzflr BI
btlr BI
bflr BI
bdzlr
blr
2
2
1
1
bca 10,BI,target
bca 16,0,target
bca 18,0,target
bca 4,BI,target
bca 8,BI,target
bca 0,BI,target
bca 2,BI,target
bcctr 12,BI
bcctr 20,0
bcctr 4,BI
bca
bcctr
MOTOROLA
Mnemonic
Simplified
bdnzfa BI,target
bdnzta BI,target
bdzta BI,target
bdzfa BI,target
bdnza target
btctr BI
bfctr BI
bfa BI,target
bdza target
bctr
Mnemonic
Simplified
1
2
2

Related parts for AN2491