32 lines
390 B
ArmAsm
32 lines
390 B
ArmAsm
.data
|
|
.balign 8
|
|
fstr:
|
|
.ascii "%s"
|
|
.byte 0
|
|
/* end data */
|
|
|
|
.data
|
|
.balign 8
|
|
str:
|
|
.ascii "안녕하세요"
|
|
.byte 0
|
|
/* end data */
|
|
|
|
.text
|
|
.globl main
|
|
main:
|
|
pushq %rbp
|
|
movq %rsp, %rbp
|
|
leaq str(%rip), %rsi
|
|
leaq fstr(%rip), %rdi
|
|
movl $0, %eax
|
|
callq printf
|
|
movl $0, %eax
|
|
leave
|
|
ret
|
|
.type main, @function
|
|
.size main, .-main
|
|
/* end function main */
|
|
|
|
.section .note.GNU-stack,"",@progbits
|