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 6-33
ADRK #8bit Add 8-bit constant to current auxiliary register 6-42
CMPR 0/1/2/3 Compare auxiliary registers 6-82
MOV AR6/7,loc16 Load auxiliary register 6-160
MOV loc16,ARn Store 16-bit auxiliary register 6-168
MOV XARn,PC Save the current program counter 6-182
MOVB XARn,#8bit Load auxiliary register with 8-bit value 6-200
MOVB AR6/7,#8bit Load auxiliary register with an 8-bit constant 6-188
MOVL XARn,loc32 Load 32-bit auxiliary register 6-214
MOVL loc32,XARn Store 32-bit auxiliary register 6-210
MOVL XARn,#22bit Load 32-bit auxiliary register with constant value 6-215
MOVZ ARn,loc16 Load lower half of XARn and clear upper half 6-225
SBRK #8bit Subtract 8-bit constant from current auxiliary register 6-319
SUBB XARn,#7bit Subtract 7-bit constant from auxiliary register 6-342
DP Register Operations
MOV DP,#10bit Load data-page pointer 6-162
MOVW DP,#16bit Load the entire data page 6-223
MOVZ DP,#10bit Load data page and clear high bits 6-226
SP Register Operations
ADDB SP,#7bit Add 7-bit constant to stack pointer 6-32
POP ACC Pop ACC register from stack 6-267
POP AR1:AR0 Pop AR1 & AR0 registers from stack 6-268
POP
AR1H:AR0H Pop AR1H & AR0H registers from stack 6-269