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
Need help?
Do you have a question about the TMS320C28x and is the answer not in the manual?