EasyManuals Logo

Texas Instruments C28 Series Student Guide

Texas Instruments C28 Series
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #294 background imageLoading...
Page #294 background image
Indirect Addressing
Indirect Addressing
Indirect Addressing
Example
Example
Stack Relative
Stack Relative
.sect “.code”
.sect “.code”
x2 = x1 + x3
x2 = x1 + x3
MOV
MOV
*
*
-
-
SP[2],AL
SP[2],AL
ADD
ADD
AL,*
AL,*
-
-
SP[3]
SP[3]
MOV
MOV
AL,*
AL,*
-
-
SP[1]
SP[1]
Accumulator
Accumulator
0 0 0 0 0 2 0 0
0 0 0 0 0 2 0 0
0 0 0 0 0 3 2 0
0 0 0 0 0 3 2 0
0 1 2 0
0 1 2 0
0 0 5 0
0 0 5 0
0 2 0 0
0 2 0 0
empty
empty
empty
empty
Data Memory
Data Memory
-
-
SP
SP
-
-
x2
x2
x1
x1
x3
x3
? ? ? ?
? ? ? ?
0 3 2 0
0 3 2 0
Instr. 1
Instr. 2
Instr. 3
Useful for stack based operations
Indirect Addressing
Indirect Addressing
Example
Example
Circular
Circular
(AR1 Low is set to buffer size – 1)
AR1 Low (16)
AR1 Low (16)
end of buffer
---- ----
start of buffer
(align on 256 word boundary)
AAAA AAAA
AAAA … AAAA
SECTIONS
{ Buf_Mem: align(256) { } > RAM PAGE 1
. . .
}
LINKER.CMD
circular
buffer
range
Element 0
Element N-1
Buffer Size N
XAR6 (32)
XAR6 (32)
access pointer
AAAA AAAA
AAAA … AAAA
xxxx xxxx
N-1
0000 0000
MAC P,
MAC P,
*AR6%++
*AR6%++
,*XAR7++
,*XAR7++
B - 12 C28x - Appendix B - Addressing Modes

Table of Contents

Other manuals for Texas Instruments C28 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C28 Series and is the answer not in the manual?

Texas Instruments C28 Series Specifications

General IconGeneral
BrandTexas Instruments
ModelC28 Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals