SUB ACC,loc16 <<T
Example
; Calculate signed value: ACC = (VarA << SB) − (VarB << SB)
SETC
MOV
MOV
MOV
SUB
6-336
SXM
T,@SA
ACC,@VarA << T
T,@SB
ACC,@VarB << T
; Turn sign extension mode on
; Load T with shift value in SA
; Load in ACC shifted contents of VarA
; Load T with shift value in SB
; Subtract from ACC shifted contents
; of VarB
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?