Texas Instruments TMS320C28x Reference Manual page 270

Dsp cpu and instruction set
Table of Contents

Advertisement

INC loc16
SYNTAX OPTIONS
INC loc16
Operands
loc16
Description
Flags and
N
Modes
Z
C
V
Repeat
Example
; VarA = VarA + 1;
INC
Addressing mode (see Chapter 5)
Add 1 to the signed content of the location pointed to by the "loc16"
addressing mode:
[loc16] = [loc16] + 1;
After the operation if bit 15 of [loc16] 1, set N; otherwise, clear N.
After the operation if [loc16] is zero, set Z; otherwise, clear Z.
If the addition generates a carry, C is set; otherwise C is cleared.
If an overflow occurs, V is set; otherwise V is not affected.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
@VarA
OPCODE
0000 1010 LLLL LLLL
; Increment contents of VarA
INC loc16
Increment by 1
OBJMODE
RPT
CYC
X
1
6-113

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Table of Contents

Save PDF