string
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
.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
|
||||
Reference in New Issue
Block a user