section .text
global _start
_start:
%macro disp_macro 2;creating function for displaying message
mov rax, 1
mov rdi, 1
mov rsi, %1
mov rdx, %2
syscall
%endm
disp_macro msg,len;calling disp_macro
disp_macro msg1,len1
disp_macro msg2,len2
%macro exit 0;creating function for exit
mov rax, 60
mov rdi, 0
syscall
%endm;calling exit
;displaying array
disp_macro msg3,len3
section .data
msg db "Hello world!", 0ah
len equ $-msg
msg1 db "I am Avinash", 0ah
len1 equ $-msg1
msg2 db "I am future computer Engineer", 0ah
len2 equ $-msg2
msg3 db "displaying array", 0ah
len3 equ $-msg3
section .bss
disparr resb 64
To embed this project on your website, copy the following code and paste it into your website's HTML: