XCALL pma,*,ARPn
SYNTAX OPTIONS
XCALL pma,*,ARPn
Operands
pma
ARPn
Description
Flags and
Modes
Repeat
Example
; Call FuncA and set ARP. Load ACC with pointer pointed to by ARP.
; This example only works for code located in upper 64K of program
; space:
XCALL
FuncA:
MOVL
XRETC
16-bit immediate program-memory address,
can only access high 64K of program space range (0x3F0000 to 0x3FFFFF)
3-bit auxiliary register pointer (ARP0 to ARP7)
Unconditional call with ARP modification. The lower 16 bits of the return
address are pushed onto the software stack. Then, the lower 16 bits of the
PC are loaded with the 16-bit immediate "pma" value and the upper 6 bits of
the PC are forced to 0x3F. Then, the 3-bit ARP pointer will be set to the
"ARPn" field value:
temp(21:0) = PC + 1;
[SP] = temp(15:0);
SP = SP + 1;
PC
= 0x3F:pma;
ARP
= n;
Note:
This instruction can only transfer program control to a location located in the upper 64K
range of program space (0x3F0000 to 0x3FFFFF). To return from a call made by
XCALL, the XRETC instruction must be used.
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
FuncA,*,ARP1
.
ACC,*
UNC
C2 x LP Source-Compatible Function Call
OPCODE
0011 1110 0110 1nnn
CCCC CCCC CCCC CCCC
; Call FuncA with ARP pointing to XAR1
; Function A:
; Load ACC with contents pointed to
; by XAR(ARP)
; Return unconditionally
XCALL pma,*,ARPn
OBJMODE
RPT
CYC
1
−
4
6-375
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?