Download "TMS320C2x Fixed-Point DSP User's Guide"

Transcript
Memory Addressing Modes
Table 4–2 shows the bit fields, notation, and operation used for indirect addressing. For some instructions, the notation in Table 4–2 includes a shift
code: for example, *0+,8,3 where 8 is the shift code and Y = 3.
Table 4–2. Bit Fields for Indirect Addressing
Instruction Field Bits
15
–
8 7 6 5 4 3 2 1 0
Notation
Operation
← Opcode → 1 0 0 0 0 ← Y →
*
No manipulation of ARs/ARP
← Opcode → 1 0 0 0 1 ← Y →
*,Y
Y → ARP
← Opcode → 1 0 0 1 0 ← Y →
*–
AR(ARP) –1 → AR(ARP)
← Opcode → 1 0 0 1 1 ← Y →
*–,Y
AR(ARP) –1 → AR(ARP) Y → ARP
← Opcode → 1 0 1 0 0 ← Y →
*+
AR(ARP) +1 → AR(ARP)
← Opcode → 1 0 1 0 1 ← Y →
*+,Y
AR(ARP)+1 → AR(ARP) Y → ARP
← Opcode → 1 1 0 0 0 ← Y →
*BR0–
AR(ARP)–rcAR0 → AR(ARP)
← Opcode → 1 1 0 0 1 ← Y →
*BR0–,Y
AR(ARP)–rcAR0 → AR(ARP)
Y → ARP
← Opcode → 1 1 0 1 0 ← Y →
*0–
AR(ARP)–AR0 → AR(ARP)
← Opcode → 1 1 0 1 1 ← Y →
*0–,Y
AR(ARP)–AR0 → AR(ARP)
Y → RP
← Opcode → 1 1 1 0 0 ← Y →
*0+
AR(ARP)+AR0 → AR(ARP)
← Opcode → 1 1 1 0 1 ← Y →
*0+,Y
AR(ARP)+AR0 → AR(ARP)
Y → ARP
← Opcode → 1 1 1 1 0 ← Y →
*BR0+
AR(ARP)+rcAR0 → AR(ARP)
← Opcode → 1 1 1 1 1 ← Y →
*BR0+,Y
AR(ARP)+rcAR0 → AR(ARP)
Y → ARP
The CMPR (compare auxiliary register with AR0), and BBZ/BBNZ (branch if
TC bit equal/not equal to zero) instructions facilitate conditional branches
based on comparisons between the contents of AR0 and the contents of
AR(ARP).
The auxiliary registers may also be used for temporary storage via the load and
store auxiliary register instructions, LAR and SAR, respectively.
4-7