Addressing Modes For "Loc16" Or "Loc32; Addressing Modes Select Bit (Amode) - Texas Instruments TMS320C28x Reference Manual

Dsp cpu and instruction set
Table of Contents

Advertisement

Addressing Modes Select Bit (AMODE)

5.2 Addressing Modes Select Bit (AMODE)
Table 5−1. Addressing Modes for "loc16" or "loc32"
AMODE = 0
8-Bit Decode
Direct Addressing Modes (DP):
0 0 III III
Stack Addressing Modes (SP):
0 1 III III
1 0 111 101
1 0 111 110
C28x Indirect Addressing Modes (XAR0 to XAR7):
1 0 000 AAA
1 0 001 AAA
1 0 010 AAA
1 0 011 AAA
1 1 III AAA
5-4
To accommodate various types of addressing modes, an addressing mode bit
(AMODE) selects the decoding of the 8-bit field (loc16/loc32). This bit is found
in Status Register 1 (ST1). The addressing modes have been broadly classi-
fied as follows:
AMODE = 0
-
This is the default mode on reset and is the mode used by the C28x C/C++
compiler. This mode is not fully compatible to the C2xLP CPU addressing
modes. The data page pointer offset is 6-bits (it is 7-bits on the C2xLP) and
not all of the indirect addressing modes are supported.
AMODE = 1
-
This mode contains addressing modes that are fully compatible to the
C2xLP device. The data page pointer offset is increased to 7-bits and all of
the indirect addressing modes available on the C2xLP are supported.
The available addressing modes, for the "loc16" or "loc32" field, are summa-
rized in Table 5−1.
"loc16/loc32" Syntax
@6bit
*−SP[6bit]
*SP++
*−−SP
*XARn++
*−−XARn
*+XARn[AR0]
*+XARn[AR1]
*+XARn[3bit]
AMODE = 1
8-Bit Decode
0 I III III
1 0 111 101
1 0 111 110
1 0 000 AAA
1 0 001 AAA
1 0 010 AAA
1 0 011 AAA
"loc16/loc32" Syntax
@@7bit
*SP++
*−−SP
*XARn++
*−−XARn
*+XARn[AR0]
*+XARn[AR1]

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?

Table of Contents

Save PDF