DedSec Project

x86 64 Assembly NASM Linux — δείγμα κώδικα — DedSec Project

global _start section .data msg db "Hello, Ada!", 10 len equ $ - msg section .text _start: mov rax, 1 mov rdi, 1 mov rsi, msg mov rdx, len syscall mov rax, 60 xor rdi, rdi syscall

Αναφορά πηγαίου κώδικα

global _start
section .data
msg db "Hello, Ada!", 10
len equ $ - msg
section .text
_start:
  mov rax, 1
  mov rdi, 1
  mov rsi, msg
  mov rdx, len
  syscall
  mov rax, 60
  xor rdi, rdi
  syscall