EasyManua.ls Logo

Texas Instruments TMS320C28x - Page 411

Texas Instruments TMS320C28x
695 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
Loading...
NORM ACC,XARn++/āˆ’āˆ’
6-254
Example
; Normalize the contents of VarA,
; XAR2 will contain shift value at the end of the operation:
MOVL ACC,@VarA ; ACC = VarA
MOVB XAR2,#0 ; Initialize XAR2 to zero
SBF Skip,EQ ; Skip if ACC value is zero
RPT #31 ; Repeat next operation 32 times
||NORM ACC,XAR2++ ; Normalize contents of ACC
Skip:

Table of Contents

Related product manuals