section .data
msg db "El resultado es: "
len equ $ - msg
res db 0

section .text
    global _start

_start:
    mov rax, 4
    mov rbx, 7
    add rax, rbx
    
    ;convertimos a Ascll
    add rax, 30h
    
    ;Guardamos en la variable
    mov [res], al

    ;Imprimir mensaje
    mov rax, 1
    mov rdi, 1
    mov rsi, msg
    mov rdx, len
    syscall

    ;Imprimir resultado
    mov rax, 1
    mov rdi, 1
    mov rsi, res
    mov rdx, 1
    syscall

    ;salimos 
    mov rax, 60
    mov rdi, 0
    syscall
    
    

Embed on website

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