Dmitry Telenkov 5 天之前
父節點
當前提交
d5554eafc5
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      asm/test_7.asm

+ 10 - 2
asm/test_7.asm

@@ -1,13 +1,21 @@
     .file "test_7.asm"
     .data
 str:
-    .ascii "test"
+    .ascii "hello "
+    .ascii "world!"
+    .byte 0x0a
     .text
     .global _start
 _start:
 
+    movq $1, %rax
+    movq $1, %rdi
+    leaq str(%rip), %rsi
+    movq $13, %rdx
+    syscall
+
     //exit
     movq $60, %rax
     movq $0, %rdi
-
+    syscall