dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 438

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
CLR.W
Operation:
0 → D
Description: Set a word in memory or in an ALU register to zero. If an accumulator register or an AGU address
Example:
Explanation of Example:
Condition Codes Affected:
Note:
Instruction Fields:
A-94
Operation
CLR.W
Before Execution
Addresses
(no parallel move)
Word
register is specified, the entire register is cleared.
CLR.W
The word value in X memory at the address $3000 is cleared.
The condition codes are not affected by this instruction.
This instruction should be used instead of the CLR instruction for clearing accumulator registers in all
new programs.
$2FFF
$3002
$3001
$3000
X:$3000
X:(Rn+xxxxxx)
X:(Rn+xxxx)
15
Operands
X:(Rn+N)
X:(Rn)+N
X:xxxxxx
DDDDD
X:(Rn)+
X:(Rn)–
X:<<pp
X:(Rn)
X:xxxx
X:aa
X Memory
4444
3333
2222
1111
DSP56800E Core Reference Manual
0
Clear Word
; set word at (word) address $3000 to zero
C
1
1
1
1
2
1
2
3
1
1
2
3
Assembler Syntax:
CLR.W
W
1
1
1
1
1
1
2
3
1
1
2
3
Clear a register. The instruction clears an entire accu-
mulator when FF is specified, and it clears an entire
AGU register when Rn is specified.
Clear a word in memory.
After Execution
Addresses
Word
D
$2FFF
$3002
$3001
$3000
(no parallel move)
Comments
15
Freescale Semiconductor
X Memory
4444
3333
0000
1111
CLR.W
0

Related parts for dsp56800e