1 .global main 2 3 main: 4 mov ip, sp 5 stmfd sp!, {fp, ip, lr} 6 sub fp, ip, #4 7 8 ldr r0, =he 9 mov lr, pc 10 b printf 11 12 sub sp, fp, #8 13 ldmfd sp, {fp, sp, pc} 14 15 he: 16 .asciz "hello world\n" 17 .align 2
1 .global main 2 3 main: 4 mov ip, sp 5 stmfd sp!, {fp, ip, lr} 6 sub fp, ip, #4 7 8 ldr r0, =he 9 mov lr, pc 10 b printf 11 12 sub sp, fp, #8 13 ldmfd sp, {fp, sp, pc} 14 15 he: 16 .asciz "hello world\n" 17 .align 2
转载于:https://www.cnblogs.com/luoxiang/p/4059464.html