Texas Instruments TMS320C28x Reference Manual page 235

Dsp cpu and instruction set
Table of Contents

Advertisement

CMP64 ACC:P
Example
; If 64-bit VarA > 64-bit VarB, branch:
CMP64 ACC:P
MOVL P,@VarA+0
MOVL ACC,@VarA+2
SUBUL P,@VarB+0
SUBBL ACC,@VarB+2
CMP64 ACC:P
SB
Dest,GT
6-78
; Clear V flag
; Load P with low 32 bits of VarA
; Load ACC with high 32 bits of VarA
; Sub from P unsigned low 32 bits of VarB
; Sub from ACC with borrow high 32 bits of VarB
; Set Z,N flags appropriately for ACC:P
; branch if VarA > VarB

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Table of Contents

Save PDF