首页 > 代码库 > 汇编写hello world

汇编写hello world

  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

 

汇编写hello world