Vous êtes sur la page 1sur 1

hello2.

asm 1 ¿¿¿

BITS 64

SECTION .data
hello db 'hello, world', 10
hellolen equ $ é hello

SECTION .text
global main

main:
mov rax, 0x2000004 ; sys_write
mov rdi, 1 ; stdout
mov rsi, qword hello ; string
mov rdx, hellolen ; length
syscall
mov rax, 0x2000001 ; sys_exit
xor rdi, rdi ; exit code
syscall

Vous aimerez peut-être aussi