dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 642

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
TST.BP
Operation:
S – 0
Description: Compare a byte that is located in memory with zero, and set the condition codes accordingly. The
Example:
Explanation of Example:
Condition Codes Affected:
A-298
Before Execution
Addresses
(no parallel move)
Byte
source operand is not modified. The result is not affected by the state of the saturation bit (SA).
TST.BP X:$3065
Prior to execution, the byte located at the (byte) address $3065 contains the value $C6, and the SR con-
tains the value $0300. Execution of the TST.BP instruction compares the byte in memory with zero
and updates the CCR accordingly. Note that this address is equivalent to the upper byte of word address
$1832.
N
Z
V
C
LF
15
— Set if bit 7 of the result is set
— Set if all bits in the result are zero
— Always cleared
— Always cleared
$3066
$3064
$3062
$3068
P4
14
SR
13
P3
7
C6
X Memory
88
66
22
P2
12
MR
0300
DSP56800E Core Reference Manual
0
Test Byte (Byte Pointer)
P1
11
7
77
55
33
11
P0
10
0
;set condition codes for the byte at $3065
I1
9
Assembler Syntax:
TST.BP
I0
8
Addresses
Addresses
SZ
7
Byte
Byte
After Execution
6
L
5
E
$3066
$3066
$3064
$3064
$3062
$3062
$3068
$3068
S
SR
U
4
CCR
7
7
N
3
(no parallel move)
C6
88
88
66
66
06
22
22
X Memory
X Memory
0308
2
Z
0
0
7
7
Freescale Semiconductor
V
1
77
77
55
55
33
33
11
11
0
0
C
0
TST.BP

Related parts for dsp56800e