SUB ACC,loc16 << #0...16
Repeat
Example
; Calculate signed value: ACC = (VarA << 10) − (VarB << 6);
SETC
MOV
SUB
6-334
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.
SXM
ACC,@VarA << #10
ACC,@VarB << #6
; Turn sign extension mode on
; Load ACC with VarA left shifted by 10
; Subtract VarB left shifted by 6 to ACC0
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?