x86-64helloworld/src/HelloWorld.asm

18 lines
238 B
NASM
Raw Normal View History

2016-06-03 02:16:13 +02:00
.section .data
hello:
.ascii "Hello, World.\n"
.section .text
.global _start
_start:
mov $1, %rax
mov $1, %rdi
mov $hello, %rsi
mov $14, %rdx
syscall
mov $60, %rax
xor %rdi, %rdi
syscall