Dmitry Telenkov
hace 3 días
Se han
modificado 1 ficheros con
10 adiciones y
2 borrados
-
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
|
|
|
|