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 #305 background imageLoading...
Page #305 background image
Program Control
BANZ Loop Control Example
len
len
.set 5
.set 5
x
x
.
.
usect
usect
“samp”,6
“samp”,6
y
y
.set (x+
.set (x+
len
len
)
)
.sect “code”
.sect “code”
MOVL XAR2,#x
MOVL XAR2,#x
MOV AR3,#len
MOV AR3,#len
-
-
2
2
MOV AL,*XAR2++
MOV AL,*XAR2++
sum:
sum:
ADD AL,*XAR2++
ADD AL,*XAR2++
BANZ
BANZ
sum,AR3
sum,AR3
--
--
MOV *(0:y),AL
MOV *(0:y),AL
AR3
AR3
COUNT
COUNT
Data
Data
x0
x0
x1
x1
x2
x2
x3
x3
x4
x4
x
x
y
y
XAR2
XAR2
=
=
4
0n
n
xy
Auxliary
Auxliary
register used as loop counter
register used as loop counter
Branch if
Branch if
Auxilary
Auxilary
Register not zero
Register not zero
Test performed on lower 16
Test performed on lower 16
-
-
bits of
bits of
XARx
XARx
only
only
C28x - Appendix C - Assembly Programming C - 5

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