Register Addressing Modes
5-25
C28x Addressing Modes
5.7 Register Addressing Modes
This section includes register addressing modes for 32-bit and 16-bit registers.
5.7.1 32-Bit Register Addressing Modes
AMODE
”loc32” Syntax
Description
X
@ACC
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.
Example(s):
MOVL XAR6,@ACC ; Load XAR6 with contents of ACC
MOVL @ACC,XT ; Load ACC with contents of XT register
ADDL ACC,@ACC ; ACC = ACC + ACC
AMODE
”loc32” Syntax
Description
X
@P
Access contents of 32-bit P register.
Example(s):
MOVL XAR6,@P ; Load XAR6 with contents of P
MOVL @P,XT ; Load P with contents of XT register
ADDL ACC,@P ; ACC = ACC + P
AMODE
”loc32” Syntax
Description
X
@XT
Access contents of 32-bit XT register.
Example(s):
MOVL XAR6,@XT ; Load XAR6 with contents of XT
MOVL P,@XT ; Load P with contents of XT register
ADDL ACC,@XT ; ACC = ACC + XT
AMODE
”loc32” Syntax
Description
X
@XARn
Access contents of 32-bit XARn registers.
Example(s):
MOVL XAR6,@XAR2 ; Load XAR6 with contents of XAR2
MOVL P,@XAR2 ; Load P with contents of XAR2 register
ADDL ACC,@XAR2 ; ACC = 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.
Summary of Contents for TMS320C28x
Page 30: ...1 12...
Page 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Page 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Page 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Page 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...
Page 585: ...This page intentionally left blank 7 32 This page intentionally left blank...