Texas Instruments TMS320C28x Reference Manual page 498

Dsp cpu and instruction set
Table of Contents

Advertisement

SUBB SP,#7bit
SYNTAX OPTIONS
SUBB SP,#7bit
Operands
SP
#7bit
Description
Flags and
Modes
Repeat
Example
FuncA:
ADDB
SUBB
LRETR
Stack pointer
7-bit immediate constant value
Subtract a 7-bit unsigned constant to SP and store the result in SP:
SP = SP − 0:7bit;
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
SP,#N
.
.
.
SP,#N
OPCODE
1111 1110 1CCC CCCC
; Function with local variables on
; stack.
; Reserve N 16−bit words of space for
; local variables on stack:
; Deallocate reserved stack space.
; Return from function.
SUBB SP,#7bit
OBJMODE
RPT
CYC
X
1
6-341

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