dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 644

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
TST.L
Operation:
S – 0
Description: Compare a long word in a register, or a long word that is located in memory, with zero, and set the
Example:
Explanation of Example:
Condition Codes Affected:
A-300
Before Execution
A2
8
(no parallel move)
condition codes accordingly. If the source operand is a register, the long word is sign extended to
36 bits before the comparison is performed. The N, Z, V, and C condition codes are calculated based
on the 32-bit result. If the source operand is a register, the E and U condition codes are also calculated,
but using the 36-bit result. The source operand is not modified. The result is not affected by the state
of the saturation bit (SA).
TST.L
Prior to execution, the 36-bit A accumulator contains the value $8:0283:0000, and the 16-bit SR con-
tains the value $0330. Execution of the TST.L instruction compares the value in A10 with zero and
updates the CCR accordingly. The contents of the A accumulator are not affected.
E
U
N
Z
V
C
LF
15
— Set if the extension portion of the 36-bit result is in use
— Set if the 36-bit result is unnormalized
— Set if bit 31 of the result is set
— Set if all bits in the result are zero
— Always cleared
— Always cleared
0283
P4
14
A1
A
13
P3
SR
P2
12
MR
DSP56800E Core Reference Manual
P1
11
0000
0330
A0
P0
10
;set condition codes for the long value in A10
I1
9
Test Long
Assembler Syntax:
TST.L
I0
8
SZ
7
After Execution
6
L
A2
8
5
E
S
U
4
CCR
0283
A1
N
3
(no parallel move)
SR
2
Z
Freescale Semiconductor
V
1
0000
0310
C
0
A0
TST.L

Related parts for dsp56800e