%macro scall 4
    mov rax,%1
    mov rdi,%2
    mov rsi,%3
    mov rdx,%4
    syscall
%endmacro

section .bss
    buf resb 4

section .data
    m1 db "Enter a 64 bit number:",10d,13d
    l1 equ $-m1

    m2 db "The 64 bit number is:",10d,13d
    l2 equ $-m2

section .text
    global _start

_start:
    scall 1,1,m1,l1
    scall 0,0,buf,17

    scall 1,1,m2,l2
    scall 1,1,buf,16

    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: