Register Addressing Modes
5-27C28x Addressing Modes
AMODE ”loc16” Syntax Description
X @PH Access contents of 16-bit PH register.
PL register contents are un-affected.
Example(s):
MOV PL,@PH ; Load PL with contents of PH
ADD AL,@PH ; AL = AL + PH
MOV T,@PH ; Load T with contents of PH
AMODE ”loc16” Syntax Description
X
@TH
Access contents of 16-bit TH register.
TL register contents are unaffected.
Example(s):
MOV PL,@T ; Load PL with contents of T
ADD AL,@T ; AL = AL + T
MOVZ AR4,@T ; Load AR4 with contents of T, AR4H = 0
AMODE ”loc16” Syntax Description
X
@SP
Access contents of 16-bit SP register.
Example(s):
MOVZ AR4,@SP ; Load AR4 with contents of SP, AR4H = 0
MOV AL,@SP ; Load AL with contents of SP
MOV @SP,AH ; Load SP with contents of AH
AMODE ”loc16” Syntax Description
X
@ARn
Access contents of 16-bit AR0 to AR7 registers.
AR0H to AR7H register contents are unaffected.
Example(s):
MOVZ AR4,@AR2 ; Load AR4 with contents of AR2, AR4H = 0
MOV AL,@AR3 ; Load AL with contents of AR3
MOV @AR5,AH ; Load AR5 with contents of AH, AR5H = unchanged