Register Operations
6-4
6.2 Register Operations
Note:
The examples in this chapter assume that the device is already operating in
C28x Mode (OBJMODE == 1, AMODE == 0). To put the device into C28x mode
following a reset, you must first set the OBJMODE bit in ST1 by executing the
“C28OBJ” (or “SETC OBJMODE”) instruction.
Table 6
−
2. Register Operations
Mnemonic
Description
Page
XARn Register Operations (XAR0
−
XAR7)
ADDB
XARn,#7bit
Add 7-bit constant to auxiliary register
ADRK
#8bit
Add 8-bit constant to current auxiliary register
CMPR
0/1/2/3
Compare auxiliary registers
MOV
AR6/7,loc16
Load auxiliary register
MOV
loc16,ARn
Store 16-bit auxiliary register
MOV
XARn,PC
Save the current program counter
MOVB
XARn,#8bit
Load auxiliary register with 8-bit value
MOVB
AR6/7,#8bit
Load auxiliary register with an 8-bit constant
MOVL
XARn,loc32
Load 32-bit auxiliary register
MOVL
loc32,XARn
Store 32-bit auxiliary register
MOVL
XARn,#22bit
Load 32-bit auxiliary register with constant value
MOVZ
ARn,loc16
Load lower half of XARn and clear upper half
SBRK
#8bit
Subtract 8-bit constant from current auxiliary register
SUBB
XARn,#7bit
Subtract 7-bit constant from auxiliary register
DP Register Operations
MOV
DP,#10bit
Load data-page pointer
MOVW
DP,#16bit
Load the entire data page
MOVZ
DP,#10bit
Load data page and clear high bits
SP Register Operations
ADDB
SP,#7bit
Add 7-bit constant to stack pointer
POP
ACC
Pop ACC register from stack
POP
AR1:AR0
Pop AR1 & AR0 registers from stack
POP
AR1H:AR0H
Pop AR1H & AR0H registers from stack
Содержание TMS320C28x
Страница 30: ...1 12...
Страница 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Страница 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Страница 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Страница 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Страница 585: ...This page intentionally left blank 7 32 This page intentionally left blank...