hello all:
Recently,I find a strange problem about this cmd:
MOVL *+XAR4[AR0],ACC
follow is my code:
MOVL XAR4, #_calResults ; calibration pointer to XAR4,calResults is array of unsigned int
MOVL XAR5, #_nv.caldb.calFactors ;//another array of long int.
MOV AR0,#8
MOV T, *+XAR5[AR0]
MPY ACC,T,*+XAR3[0] ;
SFR ACC,#5
MOV AR0,#10 ;
ADDL ACC, *+XAR5[AR0];
MOVL *XAR4++,ACC; this is work normally
;MOVB XAR0,#0
;MOVL *+XAR4[AR0],ACC ;and this is not work
MOV AR0,#12
MOV T, *+XAR5[AR0]
MPY ACC,T,*+XAR3[1] ;
SFR ACC,#5
MOV AR0,#14 ;
ADDL ACC, *+XAR5[AR0]
MOVL *XAR4,ACC
;MOVB XAR0,#1
;MOVL *+XAR4[AR0],ACC ; this is not work normally,
the results is the different results of ACC are both storage in calResults[0] .
mangui zhang:Related applications
e2echina.ti.com/…/116534