section .data
msg db "El resultado es: "
len equ $ - msg
res db 0
section .text
global _start
_start:
mov rax, 3
mov rbx, 2
add rax,rbx
;convertimos a Ascii
add rax, '0'
;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-----IMPORTANTE
mov rax, 60
xor rdi, rdi
syscall
To embed this project on your website, copy the following code and paste it into your website's HTML: