Register Addressing Modes
5-25C28x 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.