%macro WRITE 02
mov rax,1
mov rdi,1
mov rsi,%1
mov rdx,%2
syscall
%endmacro

%macro READ 02
mov rax,0
mov rdi,0
mov rsi,%1
mov rdx,%2
syscall
%endmacro

%macro EXIT 00
mov rax, 60
mov rdi, 0
syscall
%endmacro

section .data
	msg1 db "Enter two number",10
	len1 equ $-msg1
	msg2 db "The addition is",10
	len2 equ $-msg2
 
section .bss
   a resb 1
   b resb 1
   c resb 1
 
section .text
global _start
_start:
	WRITE msg1,len1
	READ a,01
	READ b,01
	sub byte[a],30H
	sub byte[b],30H
 
	mov bl,byte[a]
	add bl,byte[b] 
	mov byte[c],bl
	add byte[c],30H
 
	WRITE msg2,len2
	WRITE c,01
	EXIT