dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 650

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
TSTA.L
Operation:
S – 0
Description: Compare the contents of an AGU address register with zero, and set the condition codes accordingly.
Example:
Explanation of Example:
Condition Codes Affected:
Instruction Fields:
Instruction Opcodes:
Timing:
Memory:
A-306
TSTA.L Rn
Operation
TSTA.L
Before Execution
R1
(no parallel move)
The N, Z, V, and C condition codes are calculated based on the 24-bit result. The source operand is not
modified.
TSTA.L R1
Prior to execution, the R1 address register contains the value $008AF3, and the 16-bit SR contains the
value $0338. The execution of the TSTA.L R1 instruction compares the value in 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 23 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
0338
P2
12
MR
Test Long in AGU Register
DSP56800E Core Reference Manual
P1
11
15
P0
1
10
C
1
0
;set condition codes for the byte value in R1
I1
W
9
1
0
Assembler Syntax:
TSTA.L
Test long 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
0330
Freescale Semiconductor
1
V
1
1
4
C
0
TSTA.L
R
3
1
R
R
0

Related parts for dsp56800e