dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 500

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
INC.W
Operation:
D + 1 → D
D + 1 → D
Description: Increment a 16-bit destination by one. If the destination is an accumulator, only the EXT and MSP por-
Usage:
Example:
Explanation of Example:
Condition Codes Affected:
Note:
A-156
Before Execution
A2
0
tions of the accumulator are used and the LSP remain unchanged. The condition codes are calculated
based on the 16-bit result (or on the 20-bit result for accumulators).
This instruction is typically used when integer data is processed.
INC.W
Prior to execution, the 36-bit A accumulator contains the value $0:FFFF:0033. Execution of the
INC.W instruction increments by one the upper 20 bits of the A accumulator and sets the E and U bits
in the CCR. A new value is read in parallel and stored in register X0; the address register R0 is post-in-
cremented.
SZ — Set according to the standard definition of the SZ bit (parallel move)
L
E
U
N
Z
V
C
When the destination is one of the four accumulators, condition code calculations follow the rules for
20-bit arithmetic; otherwise, the rules for 16-bit arithmetic apply.
LF
15
— Set if limiting (parallel move) or overflow has occurred in result
— Set if the extension portion of the result is in use
— Set if result is unnormalized
— Set if MSB of the result is set
— Set if the result is zero (20 MSB for accumulator destinations)
— Set if overflow has occurred in result
— Set if a carry (or borrow) occurs from bit 15 of the result (bit 35 for accumulators)
(one parallel move)
(no parallel move)
FFFF
P4
14
A1
A
13
P3
SR
P2
12
MR
DSP56800E Core Reference Manual
P1
11
X:(R0)+,X0
0033
0300
A0
P0
10
Increment Word
I1
9
INC.W
Assembler Syntax:
INC.W
I0
8
; Increment the 20 MSBs of A and
; update X0 and R0
SZ
7
After Execution
6
L
A2
1
5
E
D
D
U
4
CCR
0000
A1
N
3
(one parallel move)
(no parallel move)
SR
2
Z
Freescale Semiconductor
V
1
0033
0330
C
0
A0
INC.W

Related parts for dsp56800e