打印

CCS下编译出错

[复制链接]
959|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
yybj|  楼主 | 2012-1-6 18:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
刚开始学习写线性汇编,编译时出错了,错误信息:

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

相关帖子

沙发
gxgclg| | 2012-1-6 18:50 | 只看该作者
表示不太懂汇编

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

175

主题

2496

帖子

1

粉丝