[an error occurred while processing this directive]
|
В spru430 (TMS320C28x DSP CPU and Instruction Set Reference Guide) на странице 6-348 есть несколько примеров испоьльзования :
; Calculate unsigned: Quot32 = Num32/Den32, Rem32 = Num32%Den32
MOVB ACC,#0 ; Zero ACC
MOVL P,@Num32 ; Load P register with Num32
RPT #31 ; Repeat operation 32 times
||SUBCUL ACC,@Den32 ; Conditional subtract with Den32
MOVL @Rem32,ACC ; Store remainder in Rem32
MOVL @Quot32,P ; Store quotient in Quot32
PS: C c28x не работал, объясняю по аналогии с c55x