.section .data
.int 1,2,3,4
.section .text
.global main
main:
push {r0,r1,r2,lr} @压栈,保存寄存器
mov r0, #1 @输出到终端,fd=1
adr r1, hello @字符串地址
add r1,r1,#1 @
mov r2, #4 @字符串长度
bl write @调用write
pop {r0,r1,r2,pc} @压栈,恢复寄存器
hello:
.if 0 @条件编译
.string "hello"
.else
.string "xxxxx"
.endif
.end