汇编实现1-100累加 代码.text .globl _start _start: mov r0,#0 @summation mov r1,#0 @autoIncrement bl funadd funadd: cmp r1,#100 addccs r0,r1,r0 addccs r1,r1,#1 mov pc,lr stop: b stop .end 运行效果