This is my simpe "Hello world" program in ASM:
.global _start
_start:
adr r1, hello
b test
loop: ldr r12, =0x16000000
str r0, [r12]
test: ldrb r0, [r1], #1
cmp r0,#0
bne loop
@b loop
hello: .asciz "Hello world.\n\r"
在将b loop
注释掉后,我希望它只打印出一个“Hello world。”,但实际上它并没有停止,就像b loop
命令仍然存在一样。为什么?