I am a newbie to assembly language. I am trying to add two numbers using this code; the values are hardcoded. I am using "nasm", and I am successfully building the executable. When I run it, it gives no output. I came to know that if the value is an integer like in this case sum of two numbers, we need to convert it to string to write it using sys_write. If it's the only thing that needs to be taken care of, how should I do it? If not, why am I not able to see the output on stdout even when I can see the output in the registers using gdb?
global _start
section .text
_start:
mov eax,0x3
mov ebx,0x5
add eax,ebx
mov ecx,eax
mov eax,0x4
mov ebx,0x1
mov edx,0x1
int 0x80
mov eax,0x1
mov ebx,0x0
int 0x80
segment .data
sum db 0x00