EasyManua.ls Logo

Texas Instruments TMS320C28x - Page 491

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...
SUB ACC,loc16 << #0...16
6-334
Repeat If the operation is repeatable, then the instruction will be executed N+1
times. The state of the Z, N, C flags will reflect the final result. The V flag will
be set if an intermediate overflow occurs. The OVC flag will count
intermediate overflows, if overflow mode is disabled. If the operation is not
repeatable, the instruction will execute only once.
Example ; Calculate signed value: ACC = (VarA << 10) − (VarB << 6);
SETC SXM ; Turn sign extension mode on
MOV ACC,@VarA << #10 ; Load ACC with VarA left shifted by 10
SUB ACC,@VarB << #6 ; Subtract VarB left shifted by 6 to ACC0

Table of Contents

Related product manuals