section .data                         ;Data section to declare constants , messages
    m1 db 10,"Hello world!"           ;messge declaration with define byte(dp) 10 for new line
    l1 equ $- m1                      ;length of the message(l1)    

section .text                         ;main program section
    global _start

_start:

;-----------------------------Print message code ----------------------
    mov rax, 1                       ;system call for write (rax = 64 bit registrer)
    mov rdi, 1                       ;file handle 1 is stdout
    mov rsi, m1                      ;address of string to output
    mov rdx, l1                      ;number of bytes
    syscall                          ;invoke operating system to do the write
    
;-----------------------------Exit code ----------------------------    

    mov rax, 60                      ;system call fro exit
    mov rdi, 0                       ;exit code 0
    syscall                          ;invokie operating systemto exit

Embed on website

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