刚开始学习写线性汇编,编译时出错了,错误信息:
INTERNAL ERROR: Invalid pair
This may be a serious problem. Please contact customer support with a
description of this problem and a sample of the source files that caused this
INTERNAL ERROR message to appear.
出错的那行有一句b loop 跳转语句
下面是我的代码,希望各位大侠帮我看看,谢谢了!!!
.global _integral
_integral: .cproc dsize_w,dsize_h,sum,sum_step,src,srcstep,x_ofs,y_ofs
.reg sum0:sum1,s1:s0
.reg tsrc,x,y,flag,index0,index1,index2,t
; zero x
zero y
loop: cmpeq y,dsize_h,flag
[flag] b outloop
zero s1:s0
zero index2
stw s0,*-sum[1]
ldw *+y_ofs[y],t
mpy srcstep,t,t
add t,src,tsrc
zero x
inloop:
sub x,sum_step,index0
ldw *+x_ofs[x],index1
ldw *+tsrc[index1],s0
add s1,s0,s0
add x,1,x
ldw *+x_ofs[x],index1
ldw *+tsrc[index1],s1
add s0,s1,s1
lddw *index0,sum1:sum0
add s0,sum0,sum0
add s1,sum1,sum1
stdw sum1:sum0,*+sum[index2]
add index2,1,index2
cmpeq x,dsize_w,flag
[!flag] b inloop
add sum,sum_step,sum
add y,1,y
b loop ;这句出的错
outloop:
.endproc |