Condition Register Logical Instructions; Trap Instructions - Freescale Semiconductor MPC850 User Manual

Mpc850 family integrated communications microprocessor
Table of Contents

Advertisement

Instruction Set Summary
Branch
Branch Conditional
Branch Conditional to Link Register
Branch Conditional to Count Register

5.2.4.3.3 Condition Register Logical Instructions

Condition register logical instructions, shown in Table 5-13, and the Move Condition
Register Field (mcrf) instruction are also defined as flow control instructions.
Table 5-13. Condition Register Logical Instructions
Condition Register AND
Condition Register OR
Condition Register XOR
Condition Register NAND
Condition Register NOR
Condition Register Equivalent
Condition Register AND with Complement
Condition Register OR with Complement
Move Condition Register Field
Note that if the LR update option is enabled for any of these instructions, these forms of the
instructions are invalid in the MPC850.

5.2.4.4 Trap Instructions

The trap instructions shown in Table 5-14 are provided to test for a specified set of
conditions. If any of the conditions tested by a trap instruction are met, the system trap
handler is invoked. If the tested conditions are not met, instruction execution continues
normally.
Trap Word Immediate
Trap Word
See Appendix F, "Simplified Mnemonics," in The Programming Environments Manual for
a complete set of simplified mnemonics.
Table 5-12. Branch Instructions
Name
b (bablbla)
bc (bcabclbcla)
bclr (bclrl)
bcctr (bcctrl)
Name
Table 5-14. Trap Instructions
Name
MPC850 Family User's Manual
Mnemonic
target_addr
BO,BI,target_addr
BO,BI
BO,BI
Mnemonic
crand
crbD,crbA,crbB
cror
crbD,crbA,crbB
crxor
crbD,crbA,crbB
crnand
crbD,crbA,crbB
crnor
crbD,crbA,crbB
creqv
crbD,crbA,crbB
crandc
crbD,crbA,crbB
crorc
crbD,crbA,crbB
mcrf
crfD,crfS
Mnemonic
twi
TO,rA,SIMM
tw
TO,rA,rB
Syntax
Syntax
Syntax

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc850deMpc850dslMpc850sr

Table of Contents