1.大小比较(循环)
start:
/*mov r0,#0x9mov r1,#0xfb LoopLoop:cmp r0,r1beq stopsubhi r0,r0,r1subcc r1,r1,r0b Loop
stop:b stop.end
仿真图
2. 1到100之和
start:mov r0,#0x1mov r1,#0x0b sum
sum:add r1,r1,r0add r0,r0,#0x1cmp r0,#0x65beq stopb sumstop:b stop.end
仿真图
思维导图