dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 300

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Operation:
Description: Logically AND the 8-bit immediate operand (#xx) with the contents of the
destination control register D and store the result in the destination control register. The
condition codes are affected only when the condition code register (CCR) is specified as
the destination operand.
Restrictions: The ANDI #xx,MR instruction cannot be used immediately before an
ENDDO or RTI instruction and cannot be one of the last three instructions in a DO loop
(at LA-2, LA-1, or LA).
The ANDI #xx,CCR instruction cannot be used immediately before an RTI instruction.
Example:
Explanation of Example: Prior to execution, the 8-bit condition code register (CCR)
contains the value $31. The AND #$FE,CCR instruction logically ANDs the immediate 8-
bit value $FE with the contents of the condition code register and stores the result in the
condition code register.
A - 34
ANDI
#xx
where
AND #$FE,CCR
CCR
D D
:
:
denotes the logical AND operator
Before Execution
Freescale Semiconductor, Inc.
$31
For More Information On This Product,
AND Immediate with Control Register
INSTRUCTION DESCRIPTIONS
INSTRUCTION SET DETAILS
;clear carry bit C in cond. code register
Go to: www.freescale.com
CCR
Assembler Syntax:
AND(I) #xx,D
After Execution
$30
ANDI
MOTOROLA

Related parts for dsp56000