Texas Instruments TMS320C28x Reference Manual page 526

Dsp cpu and instruction set
Table of Contents

Advertisement

XB pma,*,ARPn
SYNTAX OPTIONS
XB pma,*,ARPn
Operands
pma
ARPn
Description
Flags and
Modes
Repeat
Example
; Branch to SubA and set ARP. Load ACC with pointer pointed to
; by ARP and return to. This example only works for code
; located in upper 64K of program space:
XB
SubReturn:
SubA:
MOVL
XB
C2xLP Source-Compatible Branch with ARP Modification
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 branch with ARP modification by loading the low 16 bits of PC
with the 16-bit immediate value "pma" and forcing the upper 6 bits of the PC
to 0x3F. Also, change the auxiliary register pointer as specified by the
"ARPn" operand:
PC = 0x3F:pma;
ARP = n;
Note:
This branch instruction can only branch to a location located in the upper 64K range of
program space (0x3F0000 to 0x3FFFFF).
None
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
SubA,*,ARP1
.
ACC,*
SubReturn,UNC
OPCODE
0011 1110 0111 0nnn
CCCC CCCC CCCC CCCC
; Branch to SubA with ARP pointing
; to XAR1
; Subroutine A:
; Load ACC with contents
; pointed to by XAR(ARP)
; Return unconditionally
XB pma,*,ARPn
OBJMODE
RPT
CYC
1
4
6-369

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