section .data msg db "Enter your name: ",10 msglen equ $-msg newline db 10 section .bss name resb 1 temp resb 1 section .text global _start _start: mov rax,1 ;display message mov rdi,1 mov rsi,msg mov rdx,msglen syscall mov rax,0 ;accept message mov rdi,0 mov rsi,name mov rdx,15 syscall mov rax,1 ;display new line mov rdi,1 mov rsi,newline mov rdx,1 syscall mov rax,1 ;code to display message mov rdi,1 mov rsi,name mov rdx,15 syscall mov rax,1 ;display new line mov rdi,1 mov rsi,newline mov rdx,1 syscall mov rax,60 ;exit code mov rdi,0 syscall
To embed this project on your website, copy the following code and paste it into your website's HTML: