dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 651

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
TSTA.W
Operation:
S – 0
Description: Compare the low-order 16 bits of an AGU address register with zero, and set the condition codes ac-
Example:
Explanation of Example:
Condition Codes Affected:
Instruction Fields:
Instruction Opcodes:
Timing:
Memory:
Freescale Semiconductor
TSTA.W Rn
Operation
TSTA.W
Before Execution
R1
(no parallel move)
cordingly. The N, Z, V, and C condition codes are calculated based on the 16-bit result. The source
operand is not modified.
TSTA.W R1
Prior to execution, the R1 address register contains the value $008AF3, and the 16-bit SR contains the
value $0330. Execution of the TSTA.W instruction compares the low-order 16 bits of R1 with zero
and updates the CCR accordingly. The contents of R1 are not affected.
N
Z
V
C
1 oscillator clock cycle
1 program word
LF
15
— Set if bit 15 of the result is set
— Set if all bits in the result are zero
— Always cleared
— Always cleared
SR
P4
14
Operands
008AF3
Rn
13
P3
0330
P2
12
Test Word in AGU Register
MR
P1
11
15
P0
1
10
C
1
Instruction Set Details
0
;set condition codes for the byte value in R1
I1
W
9
1
0
Assembler Syntax:
TSTA.W
Test word portion of an AGU register
I0
8
12
0
SZ
7
11
0
After Execution
6
L
R1
1
5
E
0
S
SR
U
4
CCR
0
8
008AF3
Comments
N
3
7
0
(no parallel move)
0
2
Z
0338
1
V
1
1
4
TSTA.W
C
0
R
3
0
R
A-307
R
0

Related parts for dsp56800e