0
저는 초보자 인 ARM 프로그래머로서 루프에서 숫자를 출력하는 방법에 대해 궁금해하고있었습니다. 이것은 지금까지ARM을 사용하여 루프에서 숫자 인쇄
mov r3, #0
loop:
add r6, r6, #1
push {ip, lr}
ldr r0, =string
mov r1, r6
bl printf ; how do i get back to the rest of the loop after calling this?
pop {ip, pc}
cmp r6, #10
ble loop
.data
string: .asciz "number: %d\n"
왜 루프 안에'pc'가 터지고 있습니까? – Michael