section .data
    mensaje db "Hola mundo", 10, "desde ensamblador", 10

section .text
    global _start

_start:
    mov rax, 1 ;sys_write
    mov rdi, 1 ; salida en pantalla
    mov rsi, mensaje ;lo que quiero imprimir
    mov rdx, 32 ;longitud de bytes de la impresion
    syscall ;llamada al sisema

    ; Liberar el sistema
    mov rax, 60 ; sys_exit
    mov rdi, 0 ; sin errores
    syscall

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: