Register Addressing Modes - Texas Instruments TMS320C28x Reference Manual

Dsp cpu and instruction set
Table of Contents

Advertisement

5.7 Register Addressing Modes

5.7.1
32-Bit Register Addressing Modes
AMODE
"loc32" Syntax
X
@ACC
Example(s):
MOVL
XAR6,@ACC
MOVL
@ACC,XT
ADDL
ACC,@ACC
AMODE
"loc32" Syntax
X
@P
Example(s):
MOVL
XAR6,@P
MOVL
@P,XT
ADDL
ACC,@P
AMODE
"loc32" Syntax
X
@XT
Example(s):
MOVL
XAR6,@XT
MOVL
P,@XT
ADDL
ACC,@XT
AMODE
"loc32" Syntax
X
@XARn
Example(s):
MOVL
XAR6,@XAR2
MOVL
P,@XAR2
ADDL
ACC,@XAR2
Note: When writing assembly code, the "@" symbol in front of the register is optional. For example: "MOVL ACC,@P" or
"MOVL ACC,P". The disassembler will use the @ to indicate operands that are "loc16" or "loc32". For example,
MOVL ACC, @P is the MOVL ACC, loc32 instruction and MOVL @ACC, P is the MOVL loc32, P instruction.
This section includes register addressing modes for 32-bit and 16-bit registers.
Description
Access contents of 32-bit ACC register.
When the "@ACC" register is the destination operand, this may affect
the Z,N,V,C,OVC flags.
; Load XAR6 with contents of ACC
; Load ACC with contents of XT register
; ACC = ACC + ACC
Description
Access contents of 32-bit P register.
; Load XAR6 with contents of P
; Load P with contents of XT register
; ACC = ACC + P
Description
Access contents of 32-bit XT register.
; Load XAR6 with contents of XT
; Load P with contents of XT register
; ACC = ACC + XT
Description
Access contents of 32-bit XARn registers.
; Load XAR6 with contents of XAR2
; Load P with contents of XAR2 register
; ACC = ACC + XAR2
Register Addressing Modes
C28x Addressing Modes
5-25

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?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF