summaryrefslogtreecommitdiff
path: root/asm-64/hello.asm
blob: 9a1f7120948632b0d325f6b950efe77fdc3aae68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
section .data
  message db  "Hello, World!"

section .text
  global _start
_start:
  mov     rax,  1
  mov     rdi,  1
  mov     rsi, message
  mov     rdx, 13
  syscall
  mov     rax, 60
  mov     rdi, 0
  syscall